public class MasterController extends Object
Run a hydra test by first selecting a configuration file. To override hydra configuration parameters set in the file, create a "local.conf" file in the directory where the master will be run.
Usage:
java -server -DJTESTS=<path_to_test_classes>
-Dgemfire.home=<path_to_gemfire_product_tree>
-DconfigFileName=<absolute_path_to_hydra_configuration_file>
[optional_test_specific_system_properties]
hydra.MasterController
Example:
java -server
-classpath $GEMFIRE/lib/gemfire.jar:$JTESTS:$JTESTS/junit.jar
-DJTESTS=$JTESTS
-Dgemfire.home=$GEMFIRE
-DconfigFileName=$JTESTS/hydra/samples/connclient.bt
-DscalingFactorForMyTest=20
hydra.MasterController
Test-specific system properties must be specified for all system
properties used in the test configuration file, if any. See
hydra_grammar.txt,
batterytest_grammar.txt,
and BatteryTest for more details.
The test will generate log files in the directory where the master controller was started. Master*.log is the primary log for the master. During the actual test execution it logs to taskmaster*.log. At the end of the test, the Master*.log will indicate whether the test passed or failed.
See BatteryTest for a convenient alternative for
running suites of hydra tests.
| Modifier and Type | Field and Description |
|---|---|
static com.gemstone.gemfire.LogWriter |
log
Log for this vm
|
static String |
RMI_HOST_PROPERTY |
static String |
RMI_NAME |
static String |
RMI_PORT_PROPERTY |
| Constructor and Description |
|---|
MasterController() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
dumpStacks() |
protected static void |
dumpStacks(int times) |
protected static void |
dumpStacksOnError(int times) |
protected static String |
getNameFor(int vmid,
int tid,
String clientName,
String host,
int pid)
Used to name log files and threads.
|
static Object |
invoke(String classname,
String methodname)
Invokes the specified method on an instance of the specified class.
|
static Object |
invoke(String classname,
String methodname,
Class[] types,
Object[] args)
Invokes the specified method on an instance of the specified class.
|
static void |
main(String[] ignore) |
static void |
sleepForMs(int msToSleep)
Sleep "soundly" for msToSleep milliseconds.
|
public static final String RMI_NAME
public static final String RMI_HOST_PROPERTY
public static final String RMI_PORT_PROPERTY
public static com.gemstone.gemfire.LogWriter log
public static void sleepForMs(int msToSleep)
protected static String getNameFor(int vmid, int tid, String clientName, String host, int pid)
public static Object invoke(String classname, String methodname)
public static Object invoke(String classname, String methodname, Class[] types, Object[] args)
protected static void dumpStacksOnError(int times)
protected static void dumpStacks(int times)
protected static void dumpStacks()
public static void main(String[] ignore)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.