public class StatGroup extends Object implements Serializable
| Constructor and Description |
|---|
StatGroup(String groupName,
String groupDescription) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(StatGroup other)
Add all the stats from the other group into this group.
|
void |
addToTipMap(Map<String,String> tips) |
void |
clear()
Clear all stats in a StatGroup.
|
StatGroup |
cloneGroup(boolean clear) |
StatGroup |
computeInterval(StatGroup baseGroup)
The caller must make sure that no stats are added to or removed from
this stat group while this method is being called.
|
TransactionStats.Active[] |
getActiveTxnArray(StatDefinition definition) |
Long |
getAtomicLong(StatDefinition definition) |
AtomicLongStat |
getAtomicLongStat(StatDefinition definition) |
boolean |
getBoolean(StatDefinition definition) |
String |
getCSVData()
Return a string suitable for using as the data for a .csv file.
|
String |
getCSVHeader()
Return a string suitable for using as the header for a .csv file.
|
String |
getDescription() |
float |
getFloat(StatDefinition definition) |
int |
getInt(StatDefinition definition) |
IntegralLongAvgStat |
getIntegralLongAvgStat(StatDefinition definition) |
long |
getLong(StatDefinition definition) |
long[] |
getLongArray(StatDefinition definition) |
LongMaxStat |
getLongMaxStat(StatDefinition definition) |
LongMinStat |
getLongMinStat(StatDefinition definition) |
LongStat |
getLongStat(StatDefinition definition) |
<V> SortedMap<String,V> |
getMap(StatDefinition definition) |
String |
getName() |
Stat<?> |
getStat(StatDefinition definition)
Return the stat associated with the specified definition, or null if not
found.
|
Map<StatDefinition,Stat<?>> |
getStats()
Returns a synchronized, unmodifiable view of the stats in this group.
|
String |
getString(StatDefinition definition) |
void |
negate()
Negates all stats in a StatGroup.
|
String |
toString() |
String |
toStringConcise()
Only print values that are not null or zero.
|
String |
toStringVerbose()
Includes the per-stat description in the output string.
|
public Map<StatDefinition,Stat<?>> getStats()
public void addAll(StatGroup other)
ConcurrentModificationException - if the addition or removal of
stats in the argument is detectedpublic StatGroup computeInterval(StatGroup baseGroup)
ConcurrentModificationException - if the addition or removal of
stats in this group is detectedpublic void clear()
public void negate()
public String getName()
public String getDescription()
public StatGroup cloneGroup(boolean clear)
public Stat<?> getStat(StatDefinition definition)
public int getInt(StatDefinition definition)
public LongStat getLongStat(StatDefinition definition)
public long getLong(StatDefinition definition)
public IntegralLongAvgStat getIntegralLongAvgStat(StatDefinition definition)
public LongMinStat getLongMinStat(StatDefinition definition)
public LongMaxStat getLongMaxStat(StatDefinition definition)
public AtomicLongStat getAtomicLongStat(StatDefinition definition)
public Long getAtomicLong(StatDefinition definition)
public TransactionStats.Active[] getActiveTxnArray(StatDefinition definition)
public long[] getLongArray(StatDefinition definition)
public float getFloat(StatDefinition definition)
public boolean getBoolean(StatDefinition definition)
public String getString(StatDefinition definition)
public <V> SortedMap<String,V> getMap(StatDefinition definition)
public String toStringVerbose()
public String toStringConcise()
public String getCSVHeader()
public String getCSVData()
Copyright © 2024. All rights reserved.