NumberStatisticImplpublic final class NumberStatisticImpl extends com.sun.appserv.management.j2ee.statistics.StatisticImpl implements NumberStatistic, Serializable
Fields Summary |
---|
static final long | serialVersionUID | private Number | Current |
Constructors Summary |
---|
public NumberStatisticImpl(CompositeData compositeData)
this( OpenMBeanUtil.compositeDataToMap( compositeData ) );
| public NumberStatisticImpl(Map m)
this( new MapStatisticImpl( m ) );
| public NumberStatisticImpl(NumberStatistic n)
super( n );
Current = n.getCurrent();
| public NumberStatisticImpl(MapStatistic m)
super( m );
Current = (Number)m.getValue( "Current" );
| public NumberStatisticImpl(String name, String description, String unit, long startTime, long lastSampleTime, Number current)
super( name, description, unit, startTime, lastSampleTime );
this.Current = current;
|
Methods Summary |
---|
public java.lang.Number | getCurrent()
return( Current );
| public void | setNumber(java.lang.Number c)
this.Current = c;
this.mLastSampleTime = System.currentTimeMillis();
|
|