public class ClusterCommandContext extends EntryCommandContext
| Modifier and Type | Field and Description |
|---|---|
protected String |
cluster
Name of the cluster in context
|
protected static String |
CMD_BACK |
protected static String |
CMD_CREATE |
protected static String |
CMD_EDIT_PROPERTIES |
protected static String |
CMD_RM |
protected static String |
CMD_SHOW_LOADED |
protected static String |
CMD_SHOW_PROPERTIES |
protected static String |
CMD_SHOW_SERVERS |
protected static String |
CMD_STOP_SERVER |
CMD_LS, CMD_USE, configService, ctx, zkPath, zkUrlCMD_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| Modifier | Constructor and Description |
|---|---|
protected |
ClusterCommandContext(ClusterCommandContext clusterCommandContext)
Copy constructor using an existing instance
|
|
ClusterCommandContext(EntryCommandContext entryCommandContext,
String cluster) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPathElementsLocation(List<String> pathElements)
Help build path elements.
|
protected CommandContext |
createTest(String test) |
protected CommandContext |
deleteTest(String test) |
protected void |
editClusterProperties() |
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 Properties |
getClusterProperties() |
protected TreeMap<String,String> |
getCommands()
Override to provide a set of available commands
|
protected Set<String> |
getLoadedTestRuns() |
protected void |
showClusterProperties() |
protected void |
showLoaded() |
protected void |
showServers() |
protected void |
showTests() |
protected CommandContext |
stopServer(String server) |
protected CommandContext |
useTest(String test) |
getCurrentDir, getLocation, getOrderedProperties, setCurrentDirprotected static final String CMD_BACK
protected static final String CMD_CREATE
protected static final String CMD_RM
protected static final String CMD_SHOW_PROPERTIES
protected static final String CMD_EDIT_PROPERTIES
protected static final String CMD_SHOW_SERVERS
protected static final String CMD_STOP_SERVER
protected static final String CMD_SHOW_LOADED
protected final String cluster
protected ClusterCommandContext(ClusterCommandContext clusterCommandContext)
public ClusterCommandContext(EntryCommandContext entryCommandContext, String cluster)
entryCommandContext - the entry point contextcluster - the name of the cluster being usedprotected TreeMap<String,String> getCommands()
AbstractCommandContextgetCommands in class EntryCommandContextprotected void addPathElementsLocation(List<String> pathElements)
AbstractCommandContextaddPathElementsLocation in class EntryCommandContextpathElements - elements to append topublic CommandContext executeCommand(String command)
AbstractCommandContextexecuteCommand in interface CommandContextexecuteCommand in class EntryCommandContextcommand - the command to executeprotected final Properties getClusterProperties()
protected final void showClusterProperties()
protected final void editClusterProperties()
protected void showServers()
protected CommandContext stopServer(String server)
protected void showTests()
protected CommandContext createTest(String test)
protected CommandContext useTest(String test)
protected CommandContext deleteTest(String test)
protected Set<String> getLoadedTestRuns()
protected void showLoaded()
Copyright © 2013. All Rights Reserved.