- 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 IntervalTimerSupplier
aggregate(List<? extends StatisticSupplier> values)
Performs timer aggregation per the aggregation rules specified onIntervalTimerSupplier
.IntervalTimerSupplier
cast(StatisticSupplier value)
Casts theStatisticSupplier
to this definition, substituting a default value for null.IntervalTimerDefinition
category(String category)
Sets the categoryIntervalTimerDefinition
nonPartitioned(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:StatisticDefinition
Sets the category- Specified by:
category
in 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:
aggregate
in classStatisticDefinition<IntervalTimerSupplier>
- Parameters:
values
- the values to aggregate- Returns:
- the aggregated value
-
cast
public IntervalTimerSupplier cast(StatisticSupplier value)
Description copied from class:StatisticDefinition
Casts theStatisticSupplier
to this definition, substituting a default value for null.- Specified by:
cast
in classStatisticDefinition<IntervalTimerSupplier>
- Parameters:
value
- the value- Returns:
- a casted value or default if null.
-
nonPartitioned
public IntervalTimerDefinition nonPartitioned(boolean nonPartitioned)
Description copied from class:StatisticDefinition
Indicates that this statistic refers to a concept that is inherently non-parallel. An example would be planning statistics.- Specified by:
nonPartitioned
in classStatisticDefinition<IntervalTimerSupplier>
- Parameters:
nonPartitioned
- whether this statistic refers to a non-partitioned concept- Returns:
- a newly-created
StatisticDefinition
.
-
-