- java.lang.Object
-
- com.pervasive.datarush.monitoring.StatisticDefinition<AccumulatedTimerSupplier>
-
- com.pervasive.datarush.monitoring.AccumulatedTimerDefinition
-
- All Implemented Interfaces:
Serializable
public final class AccumulatedTimerDefinition extends StatisticDefinition<AccumulatedTimerSupplier>
Definition associated with aIntervalTimerSupplier.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.pervasive.datarush.monitoring.StatisticDefinition
CATEGORY_GENERAL, CATEGORY_IO
-
-
Constructor Summary
Constructors Constructor Description AccumulatedTimerDefinition(String id, String displayName)Defines a timer statistic
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccumulatedTimerSupplieraggregate(List<? extends StatisticSupplier> values)Performs timer aggregation per the aggregation rules specified onIntervalTimerSupplier.AccumulatedTimerSuppliercast(StatisticSupplier value)Casts theStatisticSupplierto this definition, substituting a default value for null.AccumulatedTimerDefinitioncategory(String category)Sets the categoryAccumulatedTimerDefinitionnonPartitioned(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
-
-
-
-
Method Detail
-
category
public AccumulatedTimerDefinition category(String category)
Description copied from class:StatisticDefinitionSets the category- Specified by:
categoryin classStatisticDefinition<AccumulatedTimerSupplier>- Parameters:
category- the category- Returns:
- a newly-created
StatisticDefinition.
-
aggregate
public AccumulatedTimerSupplier aggregate(List<? extends StatisticSupplier> values)
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
public AccumulatedTimerSupplier cast(StatisticSupplier value)
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
public AccumulatedTimerDefinition nonPartitioned(boolean 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.
-
-