- java.lang.Object
-
- com.pervasive.datarush.monitoring.StatisticDefinition<IntervalTimerSupplier>
-
- com.pervasive.datarush.monitoring.IntervalTimerDefinition
-
- All Implemented Interfaces:
Serializable
public class IntervalTimerDefinition extends StatisticDefinition<IntervalTimerSupplier>
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 IntervalTimerDefinition(String id, String displayName)Defines a timer statistic
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntervalTimerSupplieraggregate(List<? extends StatisticSupplier> values)Performs timer aggregation per the aggregation rules specified onIntervalTimerSupplier.IntervalTimerSuppliercast(StatisticSupplier value)Casts theStatisticSupplierto this definition, substituting a default value for null.IntervalTimerDefinitioncategory(String category)Sets the categoryIntervalTimerDefinitionnonPartitioned(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 IntervalTimerDefinition category(String category)
Description copied from class:StatisticDefinitionSets the category- Specified by:
categoryin classStatisticDefinition<IntervalTimerSupplier>- Parameters:
category- the category- Returns:
- a newly-created
StatisticDefinition.
-
aggregate
public IntervalTimerSupplier aggregate(List<? extends StatisticSupplier> values)
Performs timer aggregation per the aggregation rules specified onIntervalTimerSupplier.- Specified by:
aggregatein classStatisticDefinition<IntervalTimerSupplier>- Parameters:
values- the values to aggregate- Returns:
- the aggregated value
-
cast
public IntervalTimerSupplier cast(StatisticSupplier value)
Description copied from class:StatisticDefinitionCasts theStatisticSupplierto this definition, substituting a default value for null.- Specified by:
castin classStatisticDefinition<IntervalTimerSupplier>- Parameters:
value- the value- Returns:
- a casted value or default if null.
-
nonPartitioned
public IntervalTimerDefinition 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<IntervalTimerSupplier>- Parameters:
nonPartitioned- whether this statistic refers to a non-partitioned concept- Returns:
- a newly-created
StatisticDefinition.
-
-