public static class ControlledMetricAccum.AccumValue extends Object implements MetricValue<Long,ControlledMetricAccum.AccumValue>
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isResetNext()
Returns true if the next adjustment causes a metric reset.
|
ControlledMetricAccum.AccumValue |
makeAdjusted(Long newValue)
Make a new entry adjusted by the value parameter.
|
ControlledMetricAccum.AccumValue |
makeResetNext()
Make an entry that will be reset next time around.
|
public ControlledMetricAccum.AccumValue makeResetNext()
MetricValue
makeResetNext
in interface MetricValue<Long,ControlledMetricAccum.AccumValue>
public ControlledMetricAccum.AccumValue makeAdjusted(Long newValue)
MetricValue
makeAdjusted
in interface MetricValue<Long,ControlledMetricAccum.AccumValue>
public boolean isResetNext()
MetricValue
isResetNext
in interface MetricValue<Long,ControlledMetricAccum.AccumValue>
MetricValue.makeResetNext()
public Number getValue()
MetricValue
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.