Package org.apache.cassandra.metrics
Class ScalingReservoir
java.lang.Object
org.apache.cassandra.metrics.ScalingReservoir
- All Implemented Interfaces:
com.codahale.metrics.Reservoir,SnapshottingReservoir
A reservoir that scales the values before updating.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceScale the input value. -
Constructor Summary
ConstructorsConstructorDescriptionScalingReservoir(SnapshottingReservoir reservoir, ScalingReservoir.ScaleFunction scaleFunc) -
Method Summary
-
Constructor Details
-
ScalingReservoir
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfacecom.codahale.metrics.Reservoir
-
update
public void update(long value) - Specified by:
updatein interfacecom.codahale.metrics.Reservoir
-
getSnapshot
public com.codahale.metrics.Snapshot getSnapshot()- Specified by:
getSnapshotin interfacecom.codahale.metrics.Reservoir
-
getPercentileSnapshot
public com.codahale.metrics.Snapshot getPercentileSnapshot()- Specified by:
getPercentileSnapshotin interfaceSnapshottingReservoir
-