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

BoundaryStatisticImpl

public class BoundaryStatisticImpl extends StatisticImpl implements Serializable, javax.management.j2ee.statistics.BoundaryStatistic
Serializable implementation of a BoundaryStatistic

Fields Summary
static final long
serialVersionUID
private long
LowerBound
private long
UpperBound
Constructors Summary
public BoundaryStatisticImpl(String name, String description, String unit, long startTime, long lastSampleTime, long lower, long upper)

	
	
		
	
		 	
		 	
		 	
		 		
		 		
		 		
		 		 
	
		super( name, description, unit, startTime, lastSampleTime );
		
		if ( LowerBound > UpperBound )
		{
			throw new IllegalArgumentException();
		}
		
		LowerBound	= lower;
		UpperBound	= upper;
	
public BoundaryStatisticImpl(CompositeData compositeData)
Base the Statistic on the {@link CompositeData}

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

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

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

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

		return( LowerBound );
	
public longgetUpperBound()

		return( UpperBound );