@InterfaceAudience.Private @InterfaceStability.Evolving public final class MetaRecoveryContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MetaRecoveryContext.RequestStopException
Exception thrown when the user has requested processing to stop.
|
Modifier and Type | Field and Description |
---|---|
static int |
FORCE_ALL |
static int |
FORCE_FIRST_CHOICE |
static int |
FORCE_NONE |
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
MetaRecoveryContext(int force) |
Modifier and Type | Method and Description |
---|---|
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,
String contStr) |
int |
getForce() |
void |
quit()
Log a message and quit
|
void |
setForce(int force) |
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 displaydefault
- First choice (will be taken if autoChooseDefault is
true)choices
- Other choiesIOException
public static void editLogLoaderPrompt(String prompt, MetaRecoveryContext recovery, String contStr) throws IOException, MetaRecoveryContext.RequestStopException
public void quit()
public int getForce()
public void setForce(int force)
Copyright © 2013 Apache Software Foundation. All rights reserved.