TimeStatisticImplpublic 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 long | getCount()
return( Count );
| public long | getMaxTime()
return( MaxTime );
| public long | getMinTime()
return( MinTime );
| public long | getTotalTime()
return( TotalTime );
|
|