|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.perf4j.helpers.StatsValueRetriever
public abstract class StatsValueRetriever
The StatsValueRetriever is used to enable retrieval of any of the statistics on the TimingStatistics object by name. In addition, retrieval of a transactions per second statistic is supported.
| Field Summary | |
|---|---|
static StatsValueRetriever |
COUNT_VALUE_RETRIEVER
|
static Map<String,StatsValueRetriever> |
DEFAULT_RETRIEVERS
Default unmodifiable Map of statistic name to the corresponding StatsValueRetriever object that retrieves that statistic. |
static StatsValueRetriever |
MAX_VALUE_RETRIEVER
|
static StatsValueRetriever |
MEAN_VALUE_RETRIEVER
|
static StatsValueRetriever |
MIN_VALUE_RETRIEVER
|
static StatsValueRetriever |
STD_DEV_VALUE_RETRIEVER
|
static StatsValueRetriever |
TPS_VALUE_RETRIEVER
|
| Constructor Summary | |
|---|---|
StatsValueRetriever()
|
|
| Method Summary | |
|---|---|
abstract Number |
getStatsValue(TimingStatistics timingStats,
long windowLength)
Retrieves a single statistic value from the specified TimingStatistics object. |
abstract Class |
getValueClass()
Gets the class of the object returned by getStatsValue(org.perf4j.TimingStatistics, long). |
abstract String |
getValueName()
Returns the name of the value, such as "Mean" or "Max". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StatsValueRetriever MEAN_VALUE_RETRIEVER
public static final StatsValueRetriever STD_DEV_VALUE_RETRIEVER
public static final StatsValueRetriever MIN_VALUE_RETRIEVER
public static final StatsValueRetriever MAX_VALUE_RETRIEVER
public static final StatsValueRetriever COUNT_VALUE_RETRIEVER
public static final StatsValueRetriever TPS_VALUE_RETRIEVER
public static final Map<String,StatsValueRetriever> DEFAULT_RETRIEVERS
| Constructor Detail |
|---|
public StatsValueRetriever()
| Method Detail |
|---|
public abstract Number getStatsValue(TimingStatistics timingStats,
long windowLength)
timingStats - The TimingStatistics object containing the data to be retrieved.
May be null, if so 0 is returned.windowLength - The length of time, in milliseconds, of the data window represented by the TimingStatistics.
public abstract Class getValueClass()
getStatsValue(org.perf4j.TimingStatistics, long).
public abstract String getValueName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||