public class IntervalTimerDefinition extends StatisticDefinition<IntervalTimerSupplier>
IntervalTimerSupplier
.CATEGORY_GENERAL, CATEGORY_IO
Constructor and Description |
---|
IntervalTimerDefinition(String id,
String displayName)
Defines a timer statistic
|
Modifier and Type | Method and Description |
---|---|
IntervalTimerSupplier |
aggregate(List<? extends StatisticSupplier> values)
Performs timer aggregation per the aggregation rules specified on
IntervalTimerSupplier . |
IntervalTimerSupplier |
cast(StatisticSupplier value)
Casts the
StatisticSupplier to this definition, substituting
a default value for null. |
IntervalTimerDefinition |
category(String category)
Sets the category
|
IntervalTimerDefinition |
nonPartitioned(boolean nonPartitioned)
Indicates that this statistic refers to a concept that is inherently
non-parallel.
|
category, cpuTime, displayName, duration, equals, finalSnapshot, hashCode, id, ioBytes, ioCount, nonPartitioned, toString
public IntervalTimerDefinition category(String category)
StatisticDefinition
category
in class StatisticDefinition<IntervalTimerSupplier>
category
- the categoryStatisticDefinition
.public IntervalTimerSupplier aggregate(List<? extends StatisticSupplier> values)
IntervalTimerSupplier
.aggregate
in class StatisticDefinition<IntervalTimerSupplier>
values
- the values to aggregatepublic IntervalTimerSupplier cast(StatisticSupplier value)
StatisticDefinition
StatisticSupplier
to this definition, substituting
a default value for null.cast
in class StatisticDefinition<IntervalTimerSupplier>
value
- the valuepublic IntervalTimerDefinition nonPartitioned(boolean nonPartitioned)
StatisticDefinition
nonPartitioned
in class StatisticDefinition<IntervalTimerSupplier>
nonPartitioned
- whether this statistic refers to a non-partitioned conceptStatisticDefinition
.Copyright © 2020 Actian Corporation. All rights reserved.