com.ibm.websphere.pmi.stat
Class StatisticImpl

java.lang.Object
  extended by com.ibm.websphere.pmi.stat.StatisticImpl
All Implemented Interfaces:
com.ibm.websphere.management.statistics.Statistic, java.io.Serializable
Direct Known Subclasses:
BoundaryStatisticImpl, CountStatisticImpl, DoubleStatisticImpl, RangeStatisticImpl, TimeStatisticImpl

Deprecated. As of 6.0, replaced with WSStatistic

public abstract class StatisticImpl
extends java.lang.Object
implements Statistic, java.io.Serializable

The StatisticImpl is an abstract class. It is the base class for all the XXXStatisticImpl classes.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Deprecated.  
 
Constructor Summary
StatisticImpl(int id)
          Deprecated.  
StatisticImpl(int id, java.lang.String name, java.lang.String unit, java.lang.String description, long startTime, long lastSampleTime)
          Deprecated.  
 
Method Summary
abstract  void combine(Statistic data)
          Deprecated. Aggregate the value of parameter data to this data
abstract  Statistic delta(Statistic data)
          Deprecated.  
 void disable()
          Deprecated. Server side API only: Set the data disabled
 void enable(int level)
          Deprecated. Server side API only: Set the data enabled and reset the value and createTime
 com.ibm.websphere.pmi.PmiDataInfo getDataInfo()
          Deprecated.  
 java.lang.String getDescription()
          Deprecated.  
 int getId()
          Deprecated.  
 long getLastSampleTime()
          Deprecated.  
 java.lang.String getName()
          Deprecated.  
 long getStartTime()
          Deprecated.  
 java.lang.String getUnit()
          Deprecated.  
 boolean isEnabled()
          Deprecated. return if the data is enabled
 void reset()
          Deprecated. Reset the createTime
abstract  void resetOnClient(Statistic data)
          Deprecated. Reset the data value to zero on client side.
 void setDataInfo(com.ibm.websphere.pmi.PmiDataInfo info)
          Deprecated.  
 void setDataInfo(com.ibm.websphere.pmi.PmiModuleConfig config)
          Deprecated.  
 void setLastSampleTime(long lastSampleTime)
          Deprecated.  
 void setStartTime(long startTime)
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
 java.lang.String toString(java.lang.String indent)
          Deprecated.  
 java.lang.String toXML()
          Deprecated.  
abstract  void update(Statistic data)
          Deprecated. Update itself with the new value in data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

StatisticImpl

public StatisticImpl(int id)
Deprecated. 

StatisticImpl

public StatisticImpl(int id,
                     java.lang.String name,
                     java.lang.String unit,
                     java.lang.String description,
                     long startTime,
                     long lastSampleTime)
Deprecated. 
Method Detail

getName

public java.lang.String getName()
Deprecated. 
Specified by:
getName in interface com.ibm.websphere.management.statistics.Statistic

getUnit

public java.lang.String getUnit()
Deprecated. 
Specified by:
getUnit in interface com.ibm.websphere.management.statistics.Statistic

getDescription

public java.lang.String getDescription()
Deprecated. 
Specified by:
getDescription in interface com.ibm.websphere.management.statistics.Statistic

getStartTime

public long getStartTime()
Deprecated. 
Specified by:
getStartTime in interface com.ibm.websphere.management.statistics.Statistic
Returns:
the time when the data is started

getLastSampleTime

public long getLastSampleTime()
Deprecated. 
Specified by:
getLastSampleTime in interface com.ibm.websphere.management.statistics.Statistic

enable

public void enable(int level)
Deprecated. 
Server side API only: Set the data enabled and reset the value and createTime


disable

public void disable()
Deprecated. 
Server side API only: Set the data disabled


isEnabled

public boolean isEnabled()
Deprecated. 
return if the data is enabled


reset

public void reset()
Deprecated. 
Reset the createTime


setDataInfo

public void setDataInfo(com.ibm.websphere.pmi.PmiModuleConfig config)
Deprecated. 

setDataInfo

public void setDataInfo(com.ibm.websphere.pmi.PmiDataInfo info)
Deprecated. 

setLastSampleTime

public void setLastSampleTime(long lastSampleTime)
Deprecated. 

setStartTime

public void setStartTime(long startTime)
Deprecated. 

getId

public int getId()
Deprecated. 

getDataInfo

public com.ibm.websphere.pmi.PmiDataInfo getDataInfo()
Deprecated. 

toXML

public java.lang.String toXML()
Deprecated. 

toString

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

toString

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

update

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

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

delta

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

combine

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

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

resetOnClient

public abstract void resetOnClient(Statistic data)
Deprecated. 
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