- 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 AccumulatedTimerSupplier
aggregate(List<? extends StatisticSupplier> values)
Performs timer aggregation per the aggregation rules specified onIntervalTimerSupplier
.AccumulatedTimerSupplier
cast(StatisticSupplier value)
Casts theStatisticSupplier
to this definition, substituting a default value for null.AccumulatedTimerDefinition
category(String category)
Sets the categoryAccumulatedTimerDefinition
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 AccumulatedTimerDefinition category(String category)
Description copied from class:StatisticDefinition
Sets the category- Specified by:
category
in 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:
aggregate
in classStatisticDefinition<AccumulatedTimerSupplier>
- Parameters:
values
- the values to aggregate- Returns:
- the aggregated value
-
cast
public AccumulatedTimerSupplier cast(StatisticSupplier value)
Description copied from class:StatisticDefinition
Casts theStatisticSupplier
to this definition, substituting a default value for null.- Specified by:
cast
in classStatisticDefinition<AccumulatedTimerSupplier>
- Parameters:
value
- the value- Returns:
- a casted value or default if null.
-
nonPartitioned
public AccumulatedTimerDefinition 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<AccumulatedTimerSupplier>
- Parameters:
nonPartitioned
- whether this statistic refers to a non-partitioned concept- Returns:
- a newly-created
StatisticDefinition
.
-
-