public final class CounterDefinition extends StatisticDefinition<CounterSupplier>
CounterSupplier.
Counters may aggregate by either CounterAggregator.SUM,
CounterAggregator.MIN, or CounterAggregator.MAX.CATEGORY_GENERAL, CATEGORY_IO| Constructor and Description |
|---|
CounterDefinition(String id,
String displayName)
Creates a definition with default values.
|
| Modifier and Type | Method and Description |
|---|---|
CounterSupplier |
aggregate(List<? extends StatisticSupplier> values)
Performs aggregation across statistics.
|
CounterAggregator |
aggregator()
Returns the aggregator to use for counter aggregation.
|
CounterDefinition |
aggregator(CounterAggregator aggregator)
Sets the aggregator to use for aggregation
|
CounterSupplier |
cast(StatisticSupplier value)
Casts the
StatisticSupplier to this definition, substituting
a default value for null. |
CounterDefinition |
category(String category)
Sets the category
|
CounterSupplier |
doFinalSnapshot(StatisticSupplier supplier) |
CounterDefinition |
nonPartitioned(boolean nonPartitioned)
Indicates that this statistic refers to a concept that is inherently
non-parallel.
|
String |
shortName()
Returns a shortened name that can be used in some ui display contexts.
|
CounterDefinition |
shortName(String shortName)
Sets a shortened name that can be used in some ui display contexts.
|
UnitOfMeasure |
unitOfMeasure()
Returns the unit of measure.
|
CounterDefinition |
unitOfMeasure(UnitOfMeasure unitOfMeasure)
Sets the unit of measure.
|
category, cpuTime, displayName, duration, equals, finalSnapshot, hashCode, id, ioBytes, ioCount, nonPartitioned, toStringpublic CounterDefinition(String id, String displayName)
CounterAggregator.SUM and an
unspecified unit of measure.id - the id for the statisticdisplayName - the display name of this statisticpublic CounterAggregator aggregator()
public UnitOfMeasure unitOfMeasure()
public String shortName()
StatisticDefinition.displayName().public CounterDefinition category(String category)
StatisticDefinitioncategory in class StatisticDefinition<CounterSupplier>category - the categoryStatisticDefinition.public CounterDefinition unitOfMeasure(UnitOfMeasure unitOfMeasure)
unitOfMeasure - the unit of measureCounterStatisticDefinition.public CounterDefinition shortName(String shortName)
StatisticDefinition.displayName().shortName - a short nameCounterStatisticDefinition.public CounterDefinition aggregator(CounterAggregator aggregator)
aggregator - the aggregatorCounterStatisticDefinition.public CounterSupplier aggregate(List<? extends StatisticSupplier> values)
StatisticDefinitionaggregate in class StatisticDefinition<CounterSupplier>values - the values to aggregatepublic CounterSupplier doFinalSnapshot(StatisticSupplier supplier)
public CounterSupplier cast(StatisticSupplier value)
StatisticDefinitionStatisticSupplier to this definition, substituting
a default value for null.cast in class StatisticDefinition<CounterSupplier>value - the valuepublic CounterDefinition nonPartitioned(boolean nonPartitioned)
StatisticDefinitionnonPartitioned in class StatisticDefinition<CounterSupplier>nonPartitioned - whether this statistic refers to a non-partitioned conceptStatisticDefinition.Copyright © 2024 Actian Corporation. All rights reserved.