public static class ControlledMetricAccum.AccumValue extends Object implements MetricValue<Long,ControlledMetricAccum.AccumValue>
Modifier and Type | Method and Description |
---|---|
static ControlledMetricAccum.AccumValue |
createInitialValue() |
Number |
getMax()
Get the maximum value of the metric since the last persist.
|
Number |
getMin()
Get the minimum value of the metric since the last persist.
|
int |
getNumSamples()
Get the number of samples from the metric value.
|
Number |
getValue()
Get the number value from this metric value.
|
ControlledMetricAccum.AccumValue |
makeAdjusted(Long newValue)
Make a new entry adjusted by the value parameter.
|
ControlledMetricAccum.AccumValue |
makePersisted()
Make an entry that is suitable for persisting.
|
public static ControlledMetricAccum.AccumValue createInitialValue()
public ControlledMetricAccum.AccumValue makePersisted()
MetricValue
makePersisted
in interface MetricValue<Long,ControlledMetricAccum.AccumValue>
public ControlledMetricAccum.AccumValue makeAdjusted(Long newValue)
MetricValue
makeAdjusted
in interface MetricValue<Long,ControlledMetricAccum.AccumValue>
public Number getValue()
MetricValue
MetricValue.makePersisted()
if you want to save the value to disk.getValue
in interface MetricValue<Long,ControlledMetricAccum.AccumValue>
public int getNumSamples()
MetricValue
getNumSamples
in interface MetricValue<Long,ControlledMetricAccum.AccumValue>
public Number getMin()
MetricValue
getMin
in interface MetricValue<Long,ControlledMetricAccum.AccumValue>
public Number getMax()
MetricValue
getMax
in interface MetricValue<Long,ControlledMetricAccum.AccumValue>
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.