RangeStatisticImplpublic class RangeStatisticImpl extends StatisticImpl implements Serializable, javax.management.j2ee.statistics.RangeStatistic
Fields Summary |
---|
static final long | serialVersionUID | private final long | Current | private final long | HighWaterMark | private final long | LowWaterMark |
Constructors Summary |
---|
public RangeStatisticImpl(String name, String description, String unit, long startTime, long lastSampleTime, long low, long current, long high)
super( name, description, unit, startTime, lastSampleTime );
if ( current < low || current > high )
{
throw new IllegalArgumentException();
}
Current = current;
HighWaterMark = high;
LowWaterMark = low;
| public RangeStatisticImpl(CompositeData compositeData)
this( OpenMBeanUtil.compositeDataToMap( compositeData ) );
| public RangeStatisticImpl(Map m)
this( new MapStatisticImpl( m ) );
| public RangeStatisticImpl(javax.management.j2ee.statistics.RangeStatistic s)
super( s );
Current = s.getCurrent();
LowWaterMark = s.getHighWaterMark();
HighWaterMark = s.getLowWaterMark();
| public RangeStatisticImpl(MapStatistic s)
super( s );
Current = s.getlong( "Current" );
LowWaterMark = s.getlong( "LowWaterMark" );
HighWaterMark = s.getlong( "HighWaterMark" );
|
Methods Summary |
---|
public long | getCurrent()
return( Current );
| public long | getHighWaterMark()
return( HighWaterMark );
| public long | getLowWaterMark()
return( LowWaterMark );
|
|