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

NumberStatisticImpl

public 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.NumbergetCurrent()

        return( Current );
    
public voidsetNumber(java.lang.Number c)

          this.Current = c;
          this.mLastSampleTime = System.currentTimeMillis();