public class ConfirmCommandContext extends AbstractCommandContext
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConfirmCommandContext.ConfirmCommandHandler
Callback for yes/no handling
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
action |
protected static String |
CMD_NO |
protected static String |
CMD_YES |
protected CommandContext |
originalCommandContext |
protected ConfirmCommandContext.ConfirmCommandHandler |
yesNoHandler |
CMD_EXIT, CMD_HELP, CMD_HELP_SHORTDEFAULT_RUNSTATE, DEFAULT_SERVER_ID, EXT_JAR, EXT_PROPERTIES, EXT_XML, PATH_CLASSES, PATH_CLUSTER_PROPERTIES, PATH_CLUSTERS, PATH_CONFIG, PATH_JARS, PATH_LOADED, PATH_RUN_PROPERTIES, PATH_RUNS, PATH_SERVER, PATH_SERVERS, PATH_TEST_CONTEXT, PATH_TEST_PROPERTIES, PATH_TESTS, PROP_CLUSTER, PROP_CONTROL_RUN_STATE, PROP_EVENTS_THREAD_COUNT, PROP_EVENTS_THREAD_EVENTSPERSECONDPERTHREAD, PROP_EVENTS_THREAD_WAITFORCOMPLETION, PROP_HTTP_CONNECTION_MAX, PROP_HTTP_CONNECTION_TIMEOUT_MS, PROP_HTTP_SOCKET_TIMEOUT_MS, PROP_HTTP_SOCKET_TTL_MS, PROP_MONGO_AUTOCONNECTRETRY, PROP_MONGO_CONNECTIONSPERHOST, PROP_MONGO_SOCKETTIMEOUT, PROP_MONGO_URI, PROP_MONGO_WRITENUMBER, PROP_SERVER_ID, PROP_TEST_NAME, PROP_TEST_RUN_FQN, PROP_TEST_RUN_NAME, SEPARATOR| Constructor and Description |
|---|
ConfirmCommandContext(CommandContext originalCommandContext,
String action,
ConfirmCommandContext.ConfirmCommandHandler yesNoHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPathElementsLocation(List<String> pathElements)
Should never be called
|
CommandContext |
executeCommand(String command)
For this to have been called, we have to assume that the command has
not been recognized further down the hierarchy.
|
protected TreeMap<String,String> |
getCommands()
Override to provide a set of available commands
|
String |
getLocation()
Overrides the call to defer to the original command context
|
getCurrentDir, getOrderedProperties, setCurrentDirprotected static final String CMD_YES
protected static final String CMD_NO
protected final CommandContext originalCommandContext
protected final String action
protected final ConfirmCommandContext.ConfirmCommandHandler yesNoHandler
public ConfirmCommandContext(CommandContext originalCommandContext, String action, ConfirmCommandContext.ConfirmCommandHandler yesNoHandler)
originalCommandContext - the originator of the queryaction - the action to take e.g. "Delete server 'abc'"protected TreeMap<String,String> getCommands()
AbstractCommandContextgetCommands in class AbstractCommandContextpublic String getLocation()
getLocation in interface CommandContextgetLocation in class AbstractCommandContextprotected void addPathElementsLocation(List<String> pathElements)
addPathElementsLocation in class AbstractCommandContextpathElements - elements to append topublic final CommandContext executeCommand(String command)
AbstractCommandContextexecuteCommand in interface CommandContextexecuteCommand in class AbstractCommandContextcommand - the command to executeCopyright © 2013. All Rights Reserved.