public class StatMonitor
extends java.lang.Object
implements java.lang.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 java.lang.String |
DUMP
Action: Do stack dumps on the test when condition is violated.
|
static java.lang.String |
HALT
Action: Halt the test when condition is violated.
|
static java.lang.String |
HAS_CHANGED_BY_LESS_THAN
Op: The current value and the initial value differ by less than the amount
|
static java.lang.String |
IS_EQUAL_TO
Op: The current value is equal to the amount
|
static java.lang.String |
IS_GREATER_THAN
Op: The current value is greater than the amount
|
static java.lang.String |
IS_LESS_THAN
Op: The current value is less than the amount
|
static java.lang.String |
IS_UNCHANGED
Op: The current value and the initial value do not differ (the amount is ignored)
|
static java.lang.String |
WARN
Action: Warn the test when condition is violated.
|
| Constructor and Description |
|---|
StatMonitor(java.util.Vector conditions,
HostDescription hd,
MasterProxyIF master,
TestConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.Vector |
parseConditions(java.util.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 java.lang.String HAS_CHANGED_BY_LESS_THAN
public static final java.lang.String IS_UNCHANGED
public static final java.lang.String IS_LESS_THAN
public static final java.lang.String IS_GREATER_THAN
public static final java.lang.String IS_EQUAL_TO
public static final java.lang.String HALT
public static final java.lang.String DUMP
public static final java.lang.String WARN
public StatMonitor(java.util.Vector conditions,
HostDescription hd,
MasterProxyIF master,
TestConfig config)
public void run()
run in interface java.lang.Runnableprotected static java.util.Vector parseConditions(java.util.Vector conditionsIn)
public static void start(HostDescription hd, MasterProxyIF master, TestConfig tc)
public static void stop()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.