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

TimeStatisticImpl

public final class TimeStatisticImpl extends StatisticImpl implements Serializable, javax.management.j2ee.statistics.TimeStatistic

Fields Summary
static final long
serialVersionUID
private final long
Count
private final long
MinTime
private final long
MaxTime
private final long
TotalTime
Constructors Summary
public TimeStatisticImpl(CompositeData compositeData)

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

		this( new MapStatisticImpl( m ) );
	
public TimeStatisticImpl(javax.management.j2ee.statistics.TimeStatistic s)

		super( s );
		
		Count		= s.getCount();
		MinTime		= s.getMinTime();
		MaxTime		= s.getMaxTime();
		TotalTime	= s.getTotalTime();
	
public TimeStatisticImpl(MapStatistic s)

		super( s );
		
		Count		= s.getlong( "Count" );
		MinTime		= s.getlong( "MinTime" );
		MaxTime		= s.getlong( "MaxTime" );
		TotalTime	= s.getlong( "TotalTime" );
	
public TimeStatisticImpl(String name, String description, String unit, long startTime, long lastSampleTime, long count, long maxTime, long minTime, long totalTime)

		super( name, description, unit, startTime, lastSampleTime );
		Count		= count;
		MaxTime		= maxTime;
		MinTime		= minTime;
		TotalTime	= totalTime;
	
Methods Summary
public longgetCount()

 		return( Count );
 	
public longgetMaxTime()

 		return( MaxTime );
 	
public longgetMinTime()

 		return( MinTime );
 	
public longgetTotalTime()

 		return( TotalTime );