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

BoundedRangeStatisticImpl

public class BoundedRangeStatisticImpl extends RangeStatisticImpl implements Serializable, javax.management.j2ee.statistics.BoundedRangeStatistic
Serializable implementation of a BoundedRangeStatistic

Fields Summary
static final long
serialVersionUID
private long
LowerBound
private long
UpperBound
Constructors Summary
public BoundedRangeStatisticImpl(String name, String description, String unit, long startTime, long lastSampleTime, long low, long current, long high, long lowerBound, long upperBound)

	
	
		
	
		 	
		 	
		 	
		 		
		 		
		 		
		 		
		 		
		 		
		 		 
	
		super( name, description, unit, startTime, lastSampleTime, low, current, high );
		
		if ( lowerBound > upperBound )
		{
			throw new IllegalArgumentException();
		}
		
		this.LowerBound	= lowerBound;
		this.UpperBound	= upperBound;
	
public BoundedRangeStatisticImpl(CompositeData compositeData)

		this( OpenMBeanUtil.compositeDataToMap( compositeData ) );
	
public BoundedRangeStatisticImpl(Map m)

		this( new MapStatisticImpl( m ) );
	
public BoundedRangeStatisticImpl(MapStatistic s)

		super( s );
		
		LowerBound	= s.getlong( "LowerBound" );
		UpperBound	= s.getlong( "UpperBound" );
	
public BoundedRangeStatisticImpl(javax.management.j2ee.statistics.BoundedRangeStatistic s)

		super( s );
		
		LowerBound	= s.getLowerBound();
		UpperBound	= s.getUpperBound();
	
Methods Summary
public longgetLowerBound()

		return( LowerBound );
	
public longgetUpperBound()

		return( UpperBound );