java.lang.Object
com.pervasive.datarush.monitoring.StatisticDefinition<AccumulatedTimerSupplier>
com.pervasive.datarush.monitoring.AccumulatedTimerDefinition
- All Implemented Interfaces:
Serializable
Definition associated with a
IntervalTimerSupplier.- See Also:
-
Field Summary
Fields inherited from class com.pervasive.datarush.monitoring.StatisticDefinition
CATEGORY_GENERAL, CATEGORY_IO -
Constructor Summary
ConstructorsConstructorDescriptionAccumulatedTimerDefinition(String id, String displayName) Defines a timer statistic -
Method Summary
Modifier and TypeMethodDescriptionaggregate(List<? extends StatisticSupplier> values) Performs timer aggregation per the aggregation rules specified onIntervalTimerSupplier.cast(StatisticSupplier value) Casts theStatisticSupplierto this definition, substituting a default value for null.Sets the categorynonPartitioned(boolean nonPartitioned) Indicates that this statistic refers to a concept that is inherently non-parallel.Methods inherited from class com.pervasive.datarush.monitoring.StatisticDefinition
category, cpuTime, displayName, duration, equals, finalSnapshot, hashCode, id, ioBytes, ioCount, nonPartitioned, toString
-
Constructor Details
-
AccumulatedTimerDefinition
Defines a timer statistic- Parameters:
id- the unique name for the statisticdisplayName- the display name of this statistic
-
-
Method Details
-
category
Description copied from class:StatisticDefinitionSets the category- Specified by:
categoryin classStatisticDefinition<AccumulatedTimerSupplier>- Parameters:
category- the category- Returns:
- a newly-created
StatisticDefinition.
-
aggregate
Performs timer aggregation per the aggregation rules specified onIntervalTimerSupplier.- Specified by:
aggregatein classStatisticDefinition<AccumulatedTimerSupplier>- Parameters:
values- the values to aggregate- Returns:
- the aggregated value
-
cast
Description copied from class:StatisticDefinitionCasts theStatisticSupplierto this definition, substituting a default value for null.- Specified by:
castin classStatisticDefinition<AccumulatedTimerSupplier>- Parameters:
value- the value- Returns:
- a casted value or default if null.
-
nonPartitioned
Description copied from class:StatisticDefinitionIndicates that this statistic refers to a concept that is inherently non-parallel. An example would be planning statistics.- Specified by:
nonPartitionedin classStatisticDefinition<AccumulatedTimerSupplier>- Parameters:
nonPartitioned- whether this statistic refers to a non-partitioned concept- Returns:
- a newly-created
StatisticDefinition.
-