FileDocCategorySizeDatePackage
RangeStatisticImpl.javaAPI DocGlassfish v2 API4111Fri May 04 22:30:52 BST 2007com.sun.appserv.management.j2ee.statistics

RangeStatisticImpl

public 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 longgetCurrent()

 		return( Current );
 	
public longgetHighWaterMark()

 		return( HighWaterMark );
 	
public longgetLowWaterMark()

 		return( LowWaterMark );