public final class MetaRecoveryContext extends Object
限定符和类型 | 字段和说明 |
---|---|
static int |
FORCE_ALL |
static int |
FORCE_FIRST_CHOICE |
static int |
FORCE_NONE |
static org.apache.commons.logging.Log |
LOG |
构造器和说明 |
---|
MetaRecoveryContext(int force) |
限定符和类型 | 方法和说明 |
---|---|
String |
ask(String prompt,
String firstChoice,
String... choices)
Display a prompt to the user and get his or her choice.
|
static void |
editLogLoaderPrompt(String prompt,
MetaRecoveryContext recovery) |
void |
quit()
Log a message and quit
|
public static final org.apache.commons.logging.Log LOG
public static final int FORCE_NONE
public static final int FORCE_FIRST_CHOICE
public static final int FORCE_ALL
public String ask(String prompt, String firstChoice, String... choices) throws IOException
prompt
- The prompt to displayc1
- Choice 1choices
- Other choiesIOException
public void quit()
public static void editLogLoaderPrompt(String prompt, MetaRecoveryContext recovery) throws IOException
IOException
Copyright © 2009 The Apache Software Foundation