@Private
@Evolving
public final class MetaRecoveryContext
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
MetaRecoveryContext.RequestStopException |
Exception thrown when the user has requested processing to stop.
|
| Modifier and Type | Field | Description |
|---|---|---|
static int |
FORCE_ALL |
|
static int |
FORCE_FIRST_CHOICE |
|
static int |
FORCE_NONE |
|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
MetaRecoveryContext(int force) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
ask(java.lang.String prompt,
java.lang.String firstChoice,
java.lang.String... choices) |
Display a prompt to the user and get his or her choice.
|
static void |
editLogLoaderPrompt(java.lang.String prompt,
MetaRecoveryContext recovery,
java.lang.String contStr) |
|
int |
getForce() |
|
void |
quit() |
Log a message and quit
|
void |
setForce(int force) |
public static final org.slf4j.Logger LOG
public static final int FORCE_NONE
public static final int FORCE_FIRST_CHOICE
public static final int FORCE_ALL
public java.lang.String ask(java.lang.String prompt,
java.lang.String firstChoice,
java.lang.String... choices)
throws java.io.IOException
prompt - The prompt to displayfirstChoice - First choice (will be taken if autoChooseDefault is
true)choices - Other choiesjava.io.IOExceptionpublic static void editLogLoaderPrompt(java.lang.String prompt,
MetaRecoveryContext recovery,
java.lang.String contStr)
throws java.io.IOException,
MetaRecoveryContext.RequestStopException
java.io.IOExceptionMetaRecoveryContext.RequestStopExceptionpublic void quit()
public int getForce()
public void setForce(int force)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.