Module datarush.commons
Class RuntimeStatistic<T extends StatisticSupplier>
java.lang.Object
com.pervasive.datarush.monitoring.RuntimeStatistic<T>
- Type Parameters:
T- the type of statistic supplier
- All Implemented Interfaces:
Serializable
public final class RuntimeStatistic<T extends StatisticSupplier>
extends Object
implements Serializable
Pairing of a
StatisticDefinition and its StatisticSupplier.-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeStatistic(StatisticDefinition<T> definition, T supplier) Create a new statistic -
Method Summary
-
Constructor Details
-
RuntimeStatistic
Create a new statistic- Parameters:
definition- the definitionsupplier- the supplier
-
-
Method Details
-
definition
Return the definition of this statistic- Returns:
- the definition
-
supplier
Returns the supplier of this statistic- Returns:
- the supplier
-
snapshot
Creates a snapshot of this statistic- Returns:
- a snapshot
-
finalSnapshot
Creates a final snapshot of this statistic- Returns:
- a snapshot
-