public class BMTestRun extends Object implements org.alfresco.config.ConfigDataListener, org.alfresco.config.ConfigClassesListener, org.alfresco.config.ConfigChildListener, ConfigConstants
Modifier and Type | Class and Description |
---|---|
static class |
BMTestRun.Key
The key that represents the unique data defining a specific test run
i.e.
|
ConfigConstants.RunState
DEFAULT_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 |
---|
BMTestRun(BMServer server,
BMTestRun.Key testRunKey)
Consructor containing enough data for the object to go off and start itself
Initially, values are retrieved without data watches
|
Modifier and Type | Method and Description |
---|---|
void |
checkForRestart()
Forces a check for
restart requests. |
void |
childrenChanged(String path) |
void |
classesChanged(String path) |
static void |
createTestStructure(org.alfresco.config.ConfigService configService,
String cluster,
String testName,
String testRunName)
Creates necessary configuration nodes, avoiding any concurrency conditions when running
multiple servers in the same cluster configuration.
|
void |
dataChanged(String path,
boolean deleted) |
boolean |
equals(Object obj)
Equality is based on the test and run names.
|
BMTestRun.Key |
getKey() |
int |
hashCode()
Equality is based on the test and run names.
|
void |
start()
Explicit call to start the test run application.
|
void |
stop()
Explicit call to stop the test run application
|
String |
toString() |
public BMTestRun(BMServer server, BMTestRun.Key testRunKey)
server
- the server constructing the test runtestRunKey
- the unique test run keyconfigService
- the configuration loaderpublic int hashCode()
public boolean equals(Object obj)
public BMTestRun.Key getKey()
public void checkForRestart()
restart
requests.public void start()
public void stop()
public void classesChanged(String path)
classesChanged
in interface org.alfresco.config.ConfigClassesListener
public void dataChanged(String path, boolean deleted)
dataChanged
in interface org.alfresco.config.ConfigDataListener
public void childrenChanged(String path)
childrenChanged
in interface org.alfresco.config.ConfigChildListener
public static void createTestStructure(org.alfresco.config.ConfigService configService, String cluster, String testName, String testRunName)
configService
- the configuration service rooted in the correct locationCopyright © 2014. All rights reserved.