java.lang.Object
com.pervasive.datarush.monitoring.CounterSnapshot
- All Implemented Interfaces:
CounterSupplier,StatisticSupplier,Serializable
A snapshot that reflects a point-in-time of a
CounterSupplier.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CounterSnapshotConstant that corresponds to a snapshot of a counter in theStatisticState.UNAVAILABLEstate. -
Constructor Summary
ConstructorsConstructorDescriptionCounterSnapshot(CounterSupplier source) Create a snapshot of the given counter.CounterSnapshot(StatisticState state, long count) Create a snapshot with the specified values -
Method Summary
-
Field Details
-
UNAVAILABLE
Constant that corresponds to a snapshot of a counter in theStatisticState.UNAVAILABLEstate.
-
-
Constructor Details
-
CounterSnapshot
Create a snapshot of the given counter.- Parameters:
source- the counter
-
CounterSnapshot
Create a snapshot with the specified values- Parameters:
state- the state of the countercount- the count of the counter
-
-
Method Details
-
snapshot
Description copied from interface:StatisticSupplierReturns a snapshot of this statistic.- Specified by:
snapshotin interfaceCounterSupplier- Specified by:
snapshotin interfaceStatisticSupplier- Returns:
- a snapshot of this statistic.
-
getState
Description copied from interface:StatisticSupplierReturns the current state of the supplier.- Specified by:
getStatein interfaceStatisticSupplier- Returns:
- the state of the supplier
-
getCount
public long getCount()Description copied from interface:CounterSupplierThis will return the value of the counter or an undefined value if never started.- Specified by:
getCountin interfaceCounterSupplier- Returns:
- the value of the counter or an undefined value if never started.
-
equals
-
hashCode
public int hashCode() -
toString
-