com.sun.mfwk.cib.sdk.statistics
Class CIBCountStatisticImpl

java.lang.Object
  extended bycom.sun.mfwk.cib.sdk.statistics.CIBStatisticImpl
      extended bycom.sun.mfwk.cib.sdk.statistics.CIBCountStatisticImpl
All Implemented Interfaces:
CIBCountStatistic, CIBStatistic, javax.management.j2ee.statistics.CountStatistic, javax.management.j2ee.statistics.Statistic

public class CIBCountStatisticImpl
extends CIBStatisticImpl
implements CIBCountStatistic

Provides a default implementation of a CIBCountStatistic


Constructor Summary
CIBCountStatisticImpl(java.lang.String name, java.lang.String description)
          Constructor
 
Method Summary
 CIBStatistic fromCompositeData(javax.management.openmbean.CompositeData data)
          Returns a CIBStatistic object from the composite data
 long getCount()
          Get the count of the statistic object
 void reset()
          Reset the statistic object
 void setCount(long count)
          Set the count of the statistic object
 javax.management.openmbean.CompositeData toCompositeData()
          Returns a compsoite data of the statistic object
 java.lang.String toString()
          Returns a printable statistic object
 
Methods inherited from class com.sun.mfwk.cib.sdk.statistics.CIBStatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, setLastSampleTime, setStartTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.j2ee.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Constructor Detail

CIBCountStatisticImpl

public CIBCountStatisticImpl(java.lang.String name,
                             java.lang.String description)
Constructor

Parameters:
name - String
description - String
Method Detail

setCount

public void setCount(long count)
Set the count of the statistic object

Parameters:
count - long

getCount

public long getCount()
Get the count of the statistic object

Specified by:
getCount in interface javax.management.j2ee.statistics.CountStatistic
Returns:
long

toCompositeData

public javax.management.openmbean.CompositeData toCompositeData()
                                                         throws javax.management.openmbean.OpenDataException
Returns a compsoite data of the statistic object

Specified by:
toCompositeData in interface CIBStatistic
Returns:
CompositeData
Throws:
javax.management.openmbean.OpenDataException

fromCompositeData

public CIBStatistic fromCompositeData(javax.management.openmbean.CompositeData data)
Returns a CIBStatistic object from the composite data

Specified by:
fromCompositeData in interface CIBStatistic
Returns:
CompositeData

reset

public void reset()
Reset the statistic object

Overrides:
reset in class CIBStatisticImpl

toString

public java.lang.String toString()
Returns a printable statistic object

Overrides:
toString in class CIBStatisticImpl
Returns:
String