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() |
String |
getDescription() |
long |
getHighWaterMark() |
long |
getLastSampleTime() |
long |
getLowWaterMark() |
String |
getName() |
long |
getStartTime() |
String |
getUnit() |
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()
getCurrent in interface javax.management.j2ee.statistics.RangeStatisticpublic String getDescription()
getDescription in interface javax.management.j2ee.statistics.Statisticpublic long getHighWaterMark()
getHighWaterMark in interface javax.management.j2ee.statistics.RangeStatisticpublic long getLastSampleTime()
getLastSampleTime in interface javax.management.j2ee.statistics.Statisticpublic long getLowWaterMark()
getLowWaterMark in interface javax.management.j2ee.statistics.RangeStatisticpublic String getName()
getName in interface javax.management.j2ee.statistics.Statisticpublic long getStartTime()
getStartTime in interface javax.management.j2ee.statistics.Statisticpublic String getUnit()
getUnit in interface javax.management.j2ee.statistics.Statisticpublic long getAverage()
getAverage in interface AverageRangeStatisticpublic void setDescription(String desc)
Copyright © 2019. All rights reserved.