com.ibm.websphere.pmi.stat
Class StatisticImpljava.lang.Object | +--com.ibm.websphere.pmi.stat.StatisticImpl
- All Implemented Interfaces:
- java.io.Serializable, Statistic, com.ibm.websphere.management.statistics.Statistic
- Direct Known Subclasses:
- BoundaryStatisticImpl, CountStatisticImpl, DoubleStatisticImpl, RangeStatisticImpl, TimeStatisticImpl
- 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
Constructor Summary StatisticImpl(int id)
StatisticImpl(int id, java.lang.String name, java.lang.String unit, java.lang.String description, long startTime, long lastSampleTime)
Method Summary abstract void combine(Statistic data)
Aggregate the value of parameter data to this dataabstract Statistic delta(Statistic data)
void disable()
Server side API only: Set the data disabledvoid enable(int level)
Server side API only: Set the data enabled and reset the value and createTimecom.ibm.websphere.pmi.PmiDataInfo getDataInfo()
Get config info for the data.java.lang.String getDescription()
int getId()
long getLastSampleTime()
DO NOT USE THIS METHOD.java.lang.String getName()
long getStartTime()
java.lang.String getUnit()
boolean isEnabled()
return if the data is enabledvoid reset()
Reset the createTimeabstract 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 onlyvoid setStartTime(long startTime)
Set start time - server side onlyjava.lang.String toString()
java.lang.String toString(java.lang.String indent)
java.lang.String toXML()
abstract void update(Statistic data)
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
- See Also:
- Constant Field Values
Constructor Detail StatisticImpl
public StatisticImpl(int id)
StatisticImpl
public StatisticImpl(int id, java.lang.String name, java.lang.String unit, java.lang.String description, long startTime, long lastSampleTime)
Method Detail enable
public void enable(int level)
- Server side API only: Set the data enabled and reset the value and createTime
disable
public void disable()
- Server side API only: Set the data disabled
isEnabled
public boolean isEnabled()
- return if the data is enabled
- Specified by:
- isEnabled in interface Statistic
reset
public void reset()
- Reset the createTime
- Specified by:
- reset in interface Statistic
setDataInfo
public void setDataInfo(com.ibm.websphere.pmi.PmiModuleConfig config)
- Description copied from interface: Statistic
- 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.
- Specified by:
- setDataInfo in interface Statistic
setDataInfo
public void setDataInfo(com.ibm.websphere.pmi.PmiDataInfo info)
- Description copied from interface: Statistic
- 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.
- Specified by:
- setDataInfo in interface Statistic
setLastSampleTime
public void setLastSampleTime(long lastSampleTime)
- Description copied from interface: Statistic
- Set last sample time - server side only
- Specified by:
- setLastSampleTime in interface Statistic
setStartTime
public void setStartTime(long startTime)
- Description copied from interface: Statistic
- Set start time - server side only
- Specified by:
- setStartTime in interface Statistic
getId
public int getId()
- Specified by:
- getId in interface Statistic
- Returns:
- data id
getStartTime
public long getStartTime()
- Specified by:
- getStartTime in interface com.ibm.websphere.management.statistics.Statistic
- Returns:
- the time when the data is started
getLastSampleTime
public long getLastSampleTime()
- DO NOT USE THIS METHOD.
This method is not implemented in WAS 5.0. The returned value is not meaningful.
- Specified by:
- getLastSampleTime in interface com.ibm.websphere.management.statistics.Statistic
getName
public java.lang.String getName()
- Specified by:
- getName in interface com.ibm.websphere.management.statistics.Statistic
getUnit
public java.lang.String getUnit()
- Specified by:
- getUnit in interface com.ibm.websphere.management.statistics.Statistic
getDescription
public java.lang.String getDescription()
- Specified by:
- getDescription in interface com.ibm.websphere.management.statistics.Statistic
getDataInfo
public com.ibm.websphere.pmi.PmiDataInfo getDataInfo()
- Description copied from interface: Statistic
- Get config info for the data.
- Specified by:
- getDataInfo in interface Statistic
toXML
public java.lang.String toXML()
toString
public java.lang.String toString()
- Specified by:
- toString in interface Statistic
- Overrides:
- toString in class java.lang.Object
toString
public java.lang.String toString(java.lang.String indent)
- Specified by:
- toString in interface Statistic
update
public abstract void update(Statistic data)
- Update itself with the new value in data.
- Specified by:
- update in interface Statistic
- Parameters:
- data - must have the same data ID and type
delta
public abstract Statistic delta(Statistic data)
- Specified by:
- delta in interface Statistic
- 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)
- Aggregate the value of parameter data to this data
- Specified by:
- combine in interface Statistic
- Parameters:
- data - must have the same data ID and type
resetOnClient
public abstract 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.
- Specified by:
- resetOnClient in interface Statistic
- Parameters:
- data - must have the same data ID and type
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.