public class TestCommandContext extends ClusterCommandContext
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CMD_DELETE_JAR |
protected static String |
CMD_LOAD |
protected static String |
CMD_SHOW_JARS |
protected static String |
CMD_UNLOAD |
protected static String |
CMD_UPLOAD_CONFIG |
protected static String |
CMD_UPLOAD_JAR |
protected String |
test
Name of the test in context
|
cluster, CMD_BACK, CMD_CREATE, CMD_EDIT_PROPERTIES, CMD_RM, CMD_SHOW_LOADED, CMD_SHOW_PROPERTIES, CMD_SHOW_SERVERS, CMD_STOP_SERVERCMD_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| Constructor and Description |
|---|
TestCommandContext(ClusterCommandContext clusterCommandContext,
String test) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPathElementsLocation(List<String> pathElements)
Help build path elements.
|
protected CommandContext |
createTestRun(String testRun) |
protected CommandContext |
deleteTestRuns(String testRunPattern) |
protected void |
editTestProperties() |
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
|
protected Properties |
getTestProperties() |
protected void |
loadTestRun(String testRun) |
protected void |
setRunState(String testRun,
org.alfresco.bm.server.ConfigConstants.RunState runState) |
protected void |
showTestProperties() |
protected void |
showTestRuns() |
protected void |
unloadTestRun(String testRun) |
protected CommandContext |
useTestRun(String testRun) |
createTest, deleteTest, editClusterProperties, getClusterProperties, getLoadedTestRuns, showClusterProperties, showLoaded, showServers, showTests, stopServer, useTestgetCurrentDir, getLocation, getOrderedProperties, setCurrentDirprotected static final String CMD_SHOW_JARS
protected static final String CMD_DELETE_JAR
protected static final String CMD_UPLOAD_JAR
protected static final String CMD_UPLOAD_CONFIG
protected static final String CMD_LOAD
protected static final String CMD_UNLOAD
protected final String test
public TestCommandContext(ClusterCommandContext clusterCommandContext, String test)
clusterCommandContext - the cluster contexttest - the test being usedprotected TreeMap<String,String> getCommands()
AbstractCommandContextgetCommands in class ClusterCommandContextprotected void addPathElementsLocation(List<String> pathElements)
AbstractCommandContextaddPathElementsLocation in class ClusterCommandContextpathElements - elements to append topublic CommandContext executeCommand(String command)
AbstractCommandContextexecuteCommand in interface CommandContextexecuteCommand in class ClusterCommandContextcommand - the command to executeprotected final Properties getTestProperties()
protected void showTestProperties()
protected void editTestProperties()
protected void showTestRuns()
protected CommandContext createTestRun(String testRun)
protected CommandContext deleteTestRuns(String testRunPattern)
protected final void loadTestRun(String testRun)
protected final void unloadTestRun(String testRun)
protected CommandContext useTestRun(String testRun)
protected final void setRunState(String testRun, org.alfresco.bm.server.ConfigConstants.RunState runState)
Copyright © 2013. All Rights Reserved.