public final class BoundedRangeStatisticImpl extends StatisticImpl implements javax.management.j2ee.statistics.BoundedRangeStatistic
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_BOUND
DEFAULT_UPPER_BOUND is maximum value Long can attain
|
static long |
DEFAULT_MIN_BOUND
DEFAULT_LOWER_BOUND is same as DEFAULT_VALUE i.e.
|
DEFAULT_UNIT, DEFAULT_VALUE, NEWLINE
Constructor and Description |
---|
BoundedRangeStatisticImpl(long curVal,
long highMark,
long lowMark,
long upper,
long lower,
String name,
String unit,
String desc,
long startTime,
long sampleTime)
Constructs an immutable instance of BoundedRangeStatisticImpl.
|
BoundedRangeStatisticImpl(String name)
A constructor that creates an instance of class.
|
BoundedRangeStatisticImpl(String name,
String unit)
A constructor that creates an instance of class.
|
BoundedRangeStatisticImpl(String name,
String unit,
long value)
A constructor that creates an instance of class.
|
BoundedRangeStatisticImpl(String name,
String unit,
long value,
long max,
long min)
A constructor that creates an instance of class.
|
BoundedRangeStatisticImpl(String name,
String unit,
long value,
long max,
long min,
long highMark,
long lowMark)
A constructor that creates an instance of class.
|
BoundedRangeStatisticImpl(String name,
String unit,
String desc,
long value,
long max,
long min)
A constructor that creates an instance of class.
|
Modifier and Type | Method and Description |
---|---|
long |
getCurrent()
Returns the current value of this statistic.
|
long |
getHighWaterMark()
Returns the highest value of this statistic, since measurement started.
|
long |
getLowerBound()
Return the lowest possible value, that this statistic is permitted to attain.
|
long |
getLowWaterMark()
Returns the lowest value of this statistic, since measurement started.
|
long |
getUpperBound()
Returns the highest possible value, that this statistic is permitted to attain.
|
String |
toString() |
getDescription, getLastSampleTime, getName, getStartTime, getUnit, setDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLastSampleTime, getName, getStartTime, getUnit
public static final long DEFAULT_MAX_BOUND
public static final long DEFAULT_MIN_BOUND
public BoundedRangeStatisticImpl(String name)
name
- String that indicates the name of this statisticpublic BoundedRangeStatisticImpl(String name, String unit)
name
- String that indicates the name of this statisticunit
- String that indicates the unit of this statisticpublic BoundedRangeStatisticImpl(String name, String unit, String desc, long value, long max, long min)
name
- String that indicates the name of this statisticunit
- String that indicates the unit of this statisticdesc
- A brief description of the statisticpublic BoundedRangeStatisticImpl(String name, String unit, long value)
name
- String that indicates the name of this statisticunit
- String that indicates the unit of this statisticpublic BoundedRangeStatisticImpl(String name, String unit, long value, long max, long min)
name
- String that indicates the name of this statisticunit
- String that indicates the unit of this statisticvalue
- long that indicates the initial value of this statisticmax
- long that indicates the maximum permissible value of this statisticmin
- long that indicates the minimum permissible value of this statisticpublic BoundedRangeStatisticImpl(String name, String unit, long value, long max, long min, long highMark, long lowMark)
name
- String that indicates the name of this statisticunit
- String that indicates the unit of this statisticvalue
- long that indicates the initial value of this statisticmax
- long that indicates the maximum permissible value of this statisticmin
- long that indicates the minimum permissible value of this statistichighMark
- long that indicates the high watermark value of this statisticlowMark
- long that indicates the low watermark value of this statisticpublic BoundedRangeStatisticImpl(long curVal, long highMark, long lowMark, long upper, long lower, String name, String unit, String desc, long startTime, long sampleTime)
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.public String toString()
toString
in class StatisticImpl
public long getCurrent()
getCurrent
in interface javax.management.j2ee.statistics.RangeStatistic
public long getHighWaterMark()
getHighWaterMark
in interface javax.management.j2ee.statistics.RangeStatistic
public long getLowWaterMark()
getLowWaterMark
in interface javax.management.j2ee.statistics.RangeStatistic
public long getLowerBound()
getLowerBound
in interface javax.management.j2ee.statistics.BoundaryStatistic
public long getUpperBound()
getUpperBound
in interface javax.management.j2ee.statistics.BoundaryStatistic
Copyright © 2019. All rights reserved.