public class StatMonitor extends Object implements Runnable
StatMonitorPrms.conditions
and halts the test if one of the conditions is violated. Hydra automatically
starts a monitor in each remote hostagent, plus the hydra master, which
serves as the local hostagent. See StatMonitorPrms for other
configuration options.
To start a monitor, invoke start(HostDescription,
MasterProxyIF, TestConfig). To stop the monitor, invoke stop().
StatMonitor is not suitable for use by hydra clients, since it connects to a distributed system outside the normal hydra channels. Also, all monitors, including those started automatically by hydra, share the same conditions. Speak up if you would like the monitor to be made suitable for clients.
| Modifier and Type | Field and Description |
|---|---|
static String |
DUMP
Action: Do stack dumps on the test when condition is violated.
|
static String |
HALT
Action: Halt the test when condition is violated.
|
static String |
HAS_CHANGED_BY_LESS_THAN
Op: The current value and the initial value differ by less than the amount
|
static String |
IS_EQUAL_TO
Op: The current value is equal to the amount
|
static String |
IS_GREATER_THAN
Op: The current value is greater than the amount
|
static String |
IS_LESS_THAN
Op: The current value is less than the amount
|
static String |
IS_UNCHANGED
Op: The current value and the initial value do not differ (the amount is ignored)
|
static String |
WARN
Action: Warn the test when condition is violated.
|
| Constructor and Description |
|---|
StatMonitor(Vector conditions,
HostDescription hd,
MasterProxyIF master,
TestConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected static Vector |
parseConditions(Vector conditionsIn) |
void |
run()
Runs the statistics monitor.
|
static void |
start(HostDescription hd,
MasterProxyIF master,
TestConfig tc)
Starts the statistics monitor in this VM, using the supplied master for
reporting violations.
|
static void |
stop()
Stops the statistics monitor in this VM.
|
public static final String HAS_CHANGED_BY_LESS_THAN
public static final String IS_UNCHANGED
public static final String IS_LESS_THAN
public static final String IS_GREATER_THAN
public static final String IS_EQUAL_TO
public static final String HALT
public static final String DUMP
public static final String WARN
public StatMonitor(Vector conditions, HostDescription hd, MasterProxyIF master, TestConfig config)
public static void start(HostDescription hd, MasterProxyIF master, TestConfig tc)
public static void stop()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.