public class StatMonitorPrms extends BasePrms
StatMonitor configuration
settings.| Modifier and Type | Field and Description |
|---|---|
static Long |
archiveStats
(boolean)
Whether to archive statistics in the VM running the statmonitor.
|
static Long |
conditions
(List of list(s))
Conditions for hostagents to monitor on behalf of the test, which, if
violated, should cause the test to take the specified action.
|
static int |
DEFAULT_SAMPLE_RATE_MS |
static Long |
sampleRateMs
(int)
Rate at which the monitor should sample statistics and check conditions,
in milliseconds.
|
static Long |
verbose
(boolean)
Whether to log monitoring information each time a condition check is
performed.
|
| Constructor and Description |
|---|
StatMonitorPrms() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
archiveStats(TestConfig tc) |
static Vector |
getConditions(TestConfig tc) |
static int |
getSampleRateMs(TestConfig tc) |
static void |
main(String[] args) |
static boolean |
verbose(TestConfig tc) |
dumpKeys, keyForName, nameForKey, setValues, tab, tasktabpublic static Long sampleRateMs
public static final int DEFAULT_SAMPLE_RATE_MS
public static Long conditions
BasePrms.NONE to turn off monitoring altogether.
A condition consists of five fields: type stat op amount action. Valid types
are those available to all VMs running the statistics monitor. Types
that include O/S names, such as LinuxSystemStats, should be given simply
as SystemStats, since the monitor prepends the appropriate O/S. Valid
stats are those available for the type. Valid ops are the constants seen
in the javadocs for StatMonitor. Valid amounts are any double.
Valid actions are "halt" (to halt the test) and "dump" (to print stacks).
For example, SystemStats pagesSwappedIn hasChangedByLessThan 5000 halt".
public static Long archiveStats
public static Long verbose
public static int getSampleRateMs(TestConfig tc)
public static Vector getConditions(TestConfig tc)
public static boolean archiveStats(TestConfig tc)
public static boolean verbose(TestConfig tc)
public static void main(String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.