public class StatConfig extends Object
Instances of this class are not available to hydra clients.
| Modifier and Type | Field and Description |
|---|---|
protected Map |
matchingArchiveCache
Cache of matching archives for specs (key is logical spec name,
val is list of archives)
|
| Modifier | Constructor and Description |
|---|---|
protected |
StatConfig(String testDir)
Creates a new
StatConfig for a test whose output
resides in the given directory. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStatSpec(StatSpec statspec)
Adds a
StatSpec to this StatConfig. |
protected void |
addSystemProperty(String key,
String val) |
protected void |
addTrimSpec(TrimSpec trimspec)
Adds a
TrimSpec for the test run represented by this
StatConfig. |
protected SortedMap |
distillStatSpecsForComparison()
Used by
PerfComparer to throw out stats
(StatSpecs) that will not be compared. |
protected String |
getBuildDate()
Returns the build date of the version of GemFire used by the test
that was run to generate this
StatConfig. |
protected String |
getBuildJDK()
Returns the version of JDK used by the build that was run to
generate this
StatConfig. |
protected String |
getBuildVersion()
Returns the version of GemFire used by the test that was run to
generate this
StatConfig. |
protected Map |
getExprInstances()
Returns all of the
Exprs from the test run from
which this StatConfig was created. |
protected String |
getJavaVMName()
Returns the Java VM name used by the test that was run to
generate this
StatConfig. |
protected Properties |
getLatestProperties()
Returns the properties from latest.prop for the test run from
which this
StatConfig was created. |
protected List |
getMatchingArchiveCache(String specname)
Returns a list of archives associated with the given spec.
|
protected String |
getNativeClientBuildVersion()
Returns the version of native client used by the test that was run to
generate this
StatConfig. |
protected String |
getNativeClientSourceRepository()
Returns the repository of native client source used by the test that was
run to generate this
StatConfig. |
protected String |
getNativeClientSourceRevision()
Returns the revision of C++ source used by the test that was run to
generate this
StatConfig. |
protected String |
getRuntimeJDK()
Returns the version of JDK used by the test that was run to
generate this
StatConfig. |
protected String |
getSourceDate()
Returns the date of GemFire source used by the test that was run to
generate this
StatConfig. |
protected String |
getSourceRepository()
Returns the repository of GemFire source used by the test that was run to
generate this
StatConfig. |
protected String |
getSourceRevision()
Returns the revision of GemFire source used by the test that was run to
generate this
StatConfig. |
protected SortedMap |
getStatisticArchives()
Returns all statistic archives for the test mapped by system name.
|
protected List |
getStatisticArchivesAsList()
Returns all statistic archives for the test in a single list.
|
protected StatSpec |
getStatSpec(String name)
Returns the
StatSpec with the given name. |
protected StatSpec |
getStatSpecByKey(String key)
Returns the
StatSpec with the given key. |
protected Map |
getStatSpecInstances()
Returns all of the
StatSpecs from the test run from
which this StatConfig was created. |
protected SortedMap |
getStatSpecs()
Returns all of the
StatSpecs from the test run from
which this StatConfig was created. |
protected Vector |
getStatSpecsWithId(StatSpecId id)
Returns the statistics spec with the given id.
|
protected Map |
getSystemProperties() |
protected String |
getTestDescription()
Returns the description of the test that was run to generate this
StatConfig. |
protected String |
getTestDir()
Returns the test output directory from which this
StatConfig was created. |
protected String |
getTestName()
Returns the name of the test that was run to generate this
StatConfig. |
protected Properties |
getTestProperties()
Returns the test properties (a.k.a.
|
protected TrimSpec |
getTrimSpec(String name)
Returns the
TrimSpec with the given name. |
protected SortedMap |
getTrimSpecs()
Returns all of the statistic
TrimSpecs for this test run. |
protected boolean |
isNativeClient()
Returns whether this is a native client test.
|
protected void |
resetStatSpecs()
Resets the stat of this
StatConfig |
protected void |
setLatestProperties(Properties p)
Sets the properties from latest.prop for the test run from which
this
StatConfig was created. |
protected void |
setMatchingArchiveCache(String specname,
List archives)
Associates the list of arhives with the given spec.
|
protected void |
setStatSpecs(SortedMap statspecs)
|
protected void |
setTestProperties(Properties p)
Returns the test properties (a.k.a.
|
String |
toString() |
protected Map matchingArchiveCache
protected StatConfig(String testDir)
StatConfig for a test whose output
resides in the given directory.protected String getTestName()
StatConfig.protected boolean isNativeClient()
protected String getTestDescription()
StatConfig.protected String getSourceRepository()
StatConfig.protected String getSourceRevision()
StatConfig.protected String getSourceDate()
StatConfig.protected String getBuildVersion()
StatConfig.protected String getBuildDate()
StatConfig.protected String getBuildJDK()
StatConfig.protected String getNativeClientSourceRepository()
StatConfig.protected String getNativeClientSourceRevision()
StatConfig.protected String getNativeClientBuildVersion()
StatConfig.protected String getRuntimeJDK()
StatConfig.protected String getJavaVMName()
StatConfig.protected String getTestDir()
StatConfig was created.protected void setLatestProperties(Properties p)
StatConfig was created.protected Properties getLatestProperties()
StatConfig was created.protected void setTestProperties(Properties p)
StatConfig was created.protected Properties getTestProperties()
StatConfig was created.protected Map getSystemProperties()
protected SortedMap getTrimSpecs()
TrimSpecs for this test run.
The keys of the map are the names of the trim specs and the
values are the TrimSpec objects.protected TrimSpec getTrimSpec(String name)
TrimSpec with the given name. If a
TrimSpec with that name does not exist, a new one
will be created.protected void addTrimSpec(TrimSpec trimspec)
TrimSpec for the test run represented by this
StatConfig.protected Vector getStatSpecsWithId(StatSpecId id)
protected StatSpec getStatSpec(String name)
StatSpec with the given name. If no
StatSpec with that name exists, then
null is returned.protected SortedMap getStatSpecs()
StatSpecs from the test run from
which this StatConfig was created.protected Map getStatSpecInstances()
StatSpecs from the test run from
which this StatConfig was created. Excludes Exprs.protected Map getExprInstances()
Exprs from the test run from
which this StatConfig was created. Excludes StatSpecs.protected void addStatSpec(StatSpec statspec)
StatSpec to this StatConfig.protected void setStatSpecs(SortedMap statspecs)
protected void resetStatSpecs()
StatConfigprotected List getMatchingArchiveCache(String specname)
protected void setMatchingArchiveCache(String specname, List archives)
protected SortedMap distillStatSpecsForComparison()
PerfComparer to throw out stats
(StatSpecs) that will not be compared.StatSpec.distill()protected List getStatisticArchivesAsList()
protected SortedMap getStatisticArchives()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.