public class StatTasks
extends java.lang.Object
| Constructor and Description |
|---|
StatTasks() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureStatIsNonNegative(java.lang.String archiveID,
java.lang.String statType,
java.lang.String statName,
java.lang.String individStatName,
java.lang.String statKind)
Check that the given stat is not negative.
|
static void |
ensureTxOccurredTask()
ENDTASK to throw a fit if no transactions occurred.
|
static java.util.List<PerfStatValue> |
getStatFromArchive(java.lang.String archiveID,
java.lang.String statType,
java.lang.String statName,
java.lang.String individStatName,
java.lang.String statKind)
Retrieve a stat from the archive, for example this is useful for getting min
or max stat values.
|
static void |
validateStats()
Validate stats in each archive in the current test run.
|
public static void ensureTxOccurredTask()
public static java.util.List<PerfStatValue> getStatFromArchive(java.lang.String archiveID, java.lang.String statType, java.lang.String statName, java.lang.String individStatName, java.lang.String statKind)
archiveID - The identifying name for the archive (currently you cannot specify
a specific archive file); this ID is typically the hydra client name.statType - A stat "Type" from vsdstatName - A stat "Name" from vsdindividStatName - The name of the stat to be obtained from statType.statNamestatKind - A value from StatSpecTokens, such as StatSpecTokens.MIN or StatExpecTokens.MAXpublic static void ensureStatIsNonNegative(java.lang.String archiveID,
java.lang.String statType,
java.lang.String statName,
java.lang.String individStatName,
java.lang.String statKind)
archiveID - The identifying name for the archive (currently you cannot specify
a specific archive file); this ID is typically the hydra client name.statType - A stat "Type" from vsdstatName - A stat "Name" from vsdindividStatName - The name of the stat to be obtained from statType.statNamestatKind - A value from StatSpecTokens, such as StatSpecTokens.MIN or StatExpecTokens.MAXpublic static void validateStats()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.