com.ibm.websphere.pmi.stat
Class StatisticImpl
- java.lang.Object
-
- com.ibm.websphere.pmi.stat.StatisticImpl
-
- All Implemented Interfaces:
- Statistic, java.io.Serializable
- Direct Known Subclasses:
- BoundaryStatisticImpl, CountStatisticImpl, DoubleStatisticImpl, RangeStatisticImpl, TimeStatisticImpl
Deprecated.As of 6.0, replaced withWSStatistic
public abstract class StatisticImpl extends java.lang.Object implements Statistic, java.io.Serializable
TheStatisticImplis an abstract class. It is the base class for all the XXXStatisticImpl classes.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static longserialVersionUIDDeprecated.
-
Constructor Summary
Constructors Constructor and Description 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
Methods Modifier and Type Method and Description abstract voidcombine(Statistic data)Deprecated.Aggregate the value of parameter data to this dataabstract Statisticdelta(Statistic data)Deprecated.voiddisable()Deprecated.Server side API only: Set the data disabledvoidenable(int level)Deprecated.Server side API only: Set the data enabled and reset the value and createTimePmiDataInfogetDataInfo()Deprecated.Get config info for the data.java.lang.StringgetDescription()Deprecated.intgetId()Deprecated.longgetLastSampleTime()Deprecated.java.lang.StringgetName()Deprecated.longgetStartTime()Deprecated.java.lang.StringgetUnit()Deprecated.booleanisEnabled()Deprecated.return if the data is enabledvoidreset()Deprecated.Reset the createTimeabstract voidresetOnClient(Statistic data)Deprecated.Reset the data value to zero on client side.voidsetDataInfo(PmiDataInfo info)Deprecated.Set the static info for this data.voidsetDataInfo(PmiModuleConfig config)Deprecated.Set the static info for this data.voidsetLastSampleTime(long lastSampleTime)Deprecated.Set last sample time - server side onlyvoidsetStartTime(long startTime)Deprecated.Set start time - server side onlyjava.lang.StringtoString()Deprecated.java.lang.StringtoString(java.lang.String indent)Deprecated.java.lang.StringtoXML()Deprecated.abstract voidupdate(Statistic data)Deprecated.Update itself with the new value in data.
-
-
-
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
-
getDescription
public java.lang.String getDescription()
Deprecated.- Specified by:
getDescriptionin interfaceStatistic
-
getStartTime
public long getStartTime()
Deprecated.- Specified by:
getStartTimein interfaceStatistic- Returns:
- the time when the data is started
-
getLastSampleTime
public long getLastSampleTime()
Deprecated.- Specified by:
getLastSampleTimein interfaceStatistic
-
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(PmiModuleConfig config)
Deprecated.Description copied from interface:StatisticSet 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(PmiDataInfo info)
Deprecated.Description copied from interface:StatisticSet 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)
Deprecated.Description copied from interface:StatisticSet last sample time - server side only
-
setStartTime
public void setStartTime(long startTime)
Deprecated.Description copied from interface:StatisticSet start time - server side only
-
getId
public int getId()
Deprecated.- Returns:
- data id
-
getDataInfo
public PmiDataInfo getDataInfo()
Deprecated.Description copied from interface:StatisticGet config info for the data.
-
toXML
public java.lang.String toXML()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.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
-
-