com.ibm.websphere.pmi.stat
Interface Statistic

All Superinterfaces:
com.ibm.websphere.management.statistics.Statistic
All Known Implementing Classes:
StatisticImpl

public interface Statistic
extends com.ibm.websphere.management.statistics.Statistic

The Statistic interface extends the JSR-077's Statistic interface.

Note that this Statistic interface is an extension of JSR77's Statistic interface. If you use PMI API, you will get objects of this interface.


Method Summary
 void combine(Statistic data)
          Aggregate the value of parameter data to this data
 Statistic delta(Statistic data)
           
 com.ibm.websphere.pmi.PmiDataInfo getDataInfo()
          Get config info for the data.
 int getId()
           
 boolean isEnabled()
           
 void reset()
          Called on the server side when the data is disabled due to level change
 void resetOnClient(Statistic data)
          Reset the data value to zero on client side.
 void setDataInfo(com.ibm.websphere.pmi.PmiDataInfo info)
          Set the static info for this data.
 void setDataInfo(com.ibm.websphere.pmi.PmiModuleConfig config)
          Set the static info for this data.
 void setLastSampleTime(long lastSampleTime)
          Set last sample time - server side only
 void setStartTime(long startTime)
          Set start time - server side only
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String indent)
           
 void update(Statistic data)
          Update itself with the new value in data.
 
Methods inherited from interface com.ibm.websphere.management.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Method Detail

reset

public void reset()
Called on the server side when the data is disabled due to level change


setDataInfo

public void setDataInfo(com.ibm.websphere.pmi.PmiModuleConfig config)
Set the static info for this data. This should be called on client side when using JMX interface directly. No need to call it if you use PmiClient API.


setDataInfo

public void setDataInfo(com.ibm.websphere.pmi.PmiDataInfo info)
Set the static info for this data. This should be called on client side when using JMX interface directly. No need to call it if you use PmiClient API.


setLastSampleTime

public void setLastSampleTime(long lastSampleTime)
Set last sample time - server side only


setStartTime

public void setStartTime(long startTime)
Set start time - server side only


getId

public int getId()
Returns:
data id

getDataInfo

public com.ibm.websphere.pmi.PmiDataInfo getDataInfo()
Get config info for the data.


update

public void update(Statistic data)
Update itself with the new value in data.

Parameters:
data - must have the same data ID and type

delta

public Statistic delta(Statistic data)
Parameters:
data - must have the same data ID and type
Returns:
an Statistic object whose value is the difference of (this - data)

combine

public void combine(Statistic data)
Aggregate the value of parameter data to this data

Parameters:
data - must have the same data ID and type

resetOnClient

public void resetOnClient(Statistic data)
Reset the data value to zero on client side. When using update method, the value will always be the value since the last reset is called.

Parameters:
data - must have the same data ID and type

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String indent)

isEnabled

public boolean isEnabled()


 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.