public class AverageRangeStatisticImpl extends Object implements AverageRangeStatistic
Constructor and Description |
---|
AverageRangeStatisticImpl(BoundedRangeStatisticImpl stats,
long numberOfSamples,
long runningTotal)
Constructs an immutable instance of AverageRangeStatisticImpl.
|
AverageRangeStatisticImpl(long curVal,
long highMark,
long lowMark,
long upper,
long lower,
String name,
String unit,
String desc,
long startTime,
long sampleTime,
long numberOfSamples,
long runningTotal)
Constructs an immutable instance of AverageRangeStatisticImpl.
|
Modifier and Type | Method and Description |
---|---|
long |
getAverage() |
long |
getCurrent()
The current value of this attribute.
|
String |
getDescription()
A human-readable description of the Statistic.
|
long |
getHighWaterMark()
The highest value this attribute has held since the beginning of the measurement.
|
long |
getLastSampleTime()
The time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
|
long |
getLowWaterMark()
The lowest value this attribute has held since the beginning of the measurement.
|
String |
getName()
The name of this Statistic.
|
long |
getStartTime()
The time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
|
String |
getUnit()
The unit of measurement for this Statistic.
|
void |
setDescription(String desc)
This is a hack.
|
public AverageRangeStatisticImpl(long curVal, long highMark, long lowMark, long upper, long lower, String name, String unit, String desc, long startTime, long sampleTime, long numberOfSamples, long runningTotal)
curVal
- The current value of this statistichighMark
- The highest value of this statistic, since measurement
startedlowMark
- The lowest value of this statistic, since measurement
startedupper
- The upper limit of this statisticlower
- The lower limit of this statisticname
- The name of the statisticunit
- The unit of measurement for this statisticdesc
- A brief description of the statisticstartTime
- Time in milliseconds at which the measurement was startedsampleTime
- Time at which the last measurement was done.numberOfSamples
- number of samples at presentrunningTotal
- running total of sampled data at presentpublic AverageRangeStatisticImpl(BoundedRangeStatisticImpl stats, long numberOfSamples, long runningTotal)
stats
- a BoundedRangeStatisticImplnumberOfSamples
- number of samples at presentrunningTotal
- running total of sampled data at presentpublic long getCurrent()
RangeStatistic
getCurrent
in interface RangeStatistic
public String getDescription()
Statistic
getDescription
in interface Statistic
public long getHighWaterMark()
RangeStatistic
getHighWaterMark
in interface RangeStatistic
public long getLastSampleTime()
Statistic
getLastSampleTime
in interface Statistic
public long getLowWaterMark()
RangeStatistic
getLowWaterMark
in interface RangeStatistic
public String getName()
Statistic
public long getStartTime()
Statistic
getStartTime
in interface Statistic
public String getUnit()
Statistic
public long getAverage()
getAverage
in interface AverageRangeStatistic
public void setDescription(String desc)
Copyright © 2018. All rights reserved.