public static class ControlledMetricRatio.RatioValue extends Object implements MetricValue<ControlledMetricRatio.NumeratorDenominator,ControlledMetricRatio.RatioValue>
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.
|
ControlledMetricRatio.RatioValue |
makeAdjusted(ControlledMetricRatio.NumeratorDenominator value)
Make a new entry adjusted by the value parameter.
|
ControlledMetricRatio.RatioValue |
makeResetNext()
Make an entry that will be reset next time around.
|
public ControlledMetricRatio.RatioValue makeResetNext()
MetricValue
makeResetNext
in interface MetricValue<ControlledMetricRatio.NumeratorDenominator,ControlledMetricRatio.RatioValue>
public ControlledMetricRatio.RatioValue makeAdjusted(ControlledMetricRatio.NumeratorDenominator value)
MetricValue
makeAdjusted
in interface MetricValue<ControlledMetricRatio.NumeratorDenominator,ControlledMetricRatio.RatioValue>
public boolean isResetNext()
MetricValue
isResetNext
in interface MetricValue<ControlledMetricRatio.NumeratorDenominator,ControlledMetricRatio.RatioValue>
MetricValue.makeResetNext()
public Number getValue()
MetricValue
getValue
in interface MetricValue<ControlledMetricRatio.NumeratorDenominator,ControlledMetricRatio.RatioValue>
public int getNumSamples()
MetricValue
getNumSamples
in interface MetricValue<ControlledMetricRatio.NumeratorDenominator,ControlledMetricRatio.RatioValue>
public Number getMin()
MetricValue
getMin
in interface MetricValue<ControlledMetricRatio.NumeratorDenominator,ControlledMetricRatio.RatioValue>
public Number getMax()
MetricValue
getMax
in interface MetricValue<ControlledMetricRatio.NumeratorDenominator,ControlledMetricRatio.RatioValue>
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.