public class MutableAverageRangeStatisticImpl extends Object implements AverageRangeStatistic, MutableCountStatistic
for an immutable implementation
,
Serialized FormModifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_BOUND
DEFAULT_UPPER_BOUND is maximum value Long can attain
|
Constructor and Description |
---|
MutableAverageRangeStatisticImpl(javax.management.j2ee.statistics.BoundedRangeStatistic initial)
Constructs an instance of MutableAverageRangeStatisticImpl that encapsulates the given Statistic.
|
Modifier and Type | Method and Description |
---|---|
long |
getAverage() |
long |
getCurrent() |
String |
getDescription() |
long |
getHighWaterMark() |
long |
getLastSampleTime() |
long |
getLowWaterMark() |
String |
getName() |
long |
getStartTime() |
String |
getUnit() |
javax.management.j2ee.statistics.Statistic |
modifiableView()
Returns an instance of Statistic whose state can be changed by the caller.
|
void |
reset()
Resets the encapsulated Statistic interface to its initial value.
|
void |
setCount(long current)
Provides the mutator to the only statistic in the implementing class that
changes - Count.
|
javax.management.j2ee.statistics.Statistic |
unmodifiableView()
Returns a read-only view of this Statistic.
|
public static final long DEFAULT_MAX_BOUND
public MutableAverageRangeStatisticImpl(javax.management.j2ee.statistics.BoundedRangeStatistic initial)
initial
- an instance of BoundedRangeStatistic that represents initial statepublic javax.management.j2ee.statistics.Statistic modifiableView()
MutableStatistic
modifiableView
in interface MutableStatistic
public javax.management.j2ee.statistics.Statistic unmodifiableView()
MutableStatistic
j2ee.statistic
and com.sun.enterprise.admin.monitor.stats
packages.unmodifiableView
in interface MutableStatistic
public void reset()
MutableStatistic
reset
in interface MutableStatistic
public void setCount(long current)
MutableCountStatistic
setCount
in interface MutableCountStatistic
current
- long that specifies the value when measured (sampled).public long getAverage()
getAverage
in interface AverageRangeStatistic
public long getCurrent()
getCurrent
in interface javax.management.j2ee.statistics.RangeStatistic
public String getDescription()
getDescription
in interface javax.management.j2ee.statistics.Statistic
public long getHighWaterMark()
getHighWaterMark
in interface javax.management.j2ee.statistics.RangeStatistic
public long getLastSampleTime()
getLastSampleTime
in interface javax.management.j2ee.statistics.Statistic
public long getLowWaterMark()
getLowWaterMark
in interface javax.management.j2ee.statistics.RangeStatistic
public String getName()
getName
in interface javax.management.j2ee.statistics.Statistic
public long getStartTime()
getStartTime
in interface javax.management.j2ee.statistics.Statistic
public String getUnit()
getUnit
in interface javax.management.j2ee.statistics.Statistic
Copyright © 2021. All rights reserved.