com.ibm.websphere.pmi.stat
Class StatsImpl

java.lang.Object
  extended by com.ibm.websphere.pmi.stat.StatsImpl
All Implemented Interfaces:
com.ibm.websphere.management.statistics.Stats, com.ibm.websphere.pmi.PmiConstants, com.ibm.ws.pmi.wire.WpdCollection, java.io.Serializable
Direct Known Subclasses:
EJBStatsImpl, JCAConnectionStatsImpl, JCAStatsImpl, JDBCConnectionStatsImpl, JDBCStatsImpl, JTAStatsImpl, JVMStatsImpl, ServletStatsImpl

Deprecated. As of 6.0, replaced with WSStats

public class StatsImpl
extends java.lang.Object
implements Stats, com.ibm.ws.pmi.wire.WpdCollection, com.ibm.websphere.pmi.PmiConstants, java.io.Serializable

Implements com.ibm.websphere.pmi.stat.Stats interface. It also implements WpdCollection for backward compatibility.

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList dataMembers
          Deprecated.  
protected  int instrumentationLevel
          Deprecated.  
protected  java.lang.String name
          Deprecated.  
protected  java.lang.String statsType
          Deprecated.  
protected  java.util.ArrayList subCollections
          Deprecated.  
protected  long time
          Deprecated.  
protected  int type
          Deprecated.  
 
Fields inherited from interface com.ibm.websphere.pmi.stat.Stats
UNIT_KB
 
Fields inherited from interface com.ibm.websphere.pmi.PmiConstants
AE_35, AE_40, AES_40, ALL_DATA, APPSERVER_MODULE, BEAN_METHODS_SUBMODULE, BEAN_MODULE, CACHE_MODULE, COLLECTION_DESC, CONNPOOL_MODULE, DEFAULT_MODULE_PREFIX, EJB_ENTITY, EJB_MESSAGEDRIVEN, EJB_STATEFUL, EJB_STATELESS, INITIALIZATION_FAILED, INITIALIZING, INTERCEPTOR_SUBMODULE, J2C_CF, J2C_DS, J2C_JMS_CONNECTIONS, J2C_MODULE, JAVA_TIME_CONVERT_RATIO, JVMPI_MODULE, LEVEL_DISABLE, LEVEL_ENABLE, LEVEL_FINEGRAIN, LEVEL_HIGH, LEVEL_HIGH_STRING, LEVEL_LOW, LEVEL_LOW_STRING, LEVEL_MAX, LEVEL_MAX_STRING, LEVEL_MEDIUM, LEVEL_MEDIUM_STRING, LEVEL_NONE, LEVEL_NONE_STRING, LEVEL_UNDEFINED, LOAD_AVG, LOST_CONTACT, METHODS_SUBMODULE_SHORTNAME, MSG_BUNDLE, NOT_IN_SUBMODULE, ORBPERF_MODULE, PLATFORM_ALL, PLATFORM_DISTRIBUTED, PLATFORM_ZOS, PMI_DISABLE_STRING, ROOT_DESC, ROOT_NAME, RUNNING, RUNTIME_MODULE, SERVLET_SUBMODULE, SERVLETS_SUBMODULE_SHORTNAME, SESSIONS_MODULE, STOPPED, SYSTEM_MODULE, TEMPLATE_SUBMODULE, TERMINATING, THREADPOOL_MODULE, TRAN_MODULE, TYPE_AVGSTAT, TYPE_CATEGORY, TYPE_COLLECTION, TYPE_DATA, TYPE_DOUBLE, TYPE_INSTANCE, TYPE_INT, TYPE_INVALID, TYPE_LOAD, TYPE_LONG, TYPE_MODULE, TYPE_MODULEROOT, TYPE_NODE, TYPE_RANGE, TYPE_ROOT, TYPE_SERVER, TYPE_STAT, TYPE_SUBINSTANCE, TYPE_SUBMODULE, TYPE_UNDEFINED, UNINITIALIZED, UNKNOWN_ID, WEBAPP_MODULE, WEBSERVICES_MODULE, WEBSERVICES_SUBMODULE, WLM_CLIENT_MODULE, WLM_MODULE, WLM_SERVER_MODULE, WSGW_MODULE, XML_COLLECTION, XML_COUNT, XML_CREATETIME, XML_DOUBLE, XML_ENDCOLLECTION, XML_ENDLINE, XML_ENDMODULE, XML_ENDNODE, XML_ENDSERVER, XML_ENDTAG, XML_ID, XML_INT, XML_INTEGRAL, XML_LASTVALUE, XML_LOAD, XML_LONG, XML_MODULE, XML_NAME, XML_NODE, XML_QUOTE, XML_SERVER, XML_START, XML_STAT, XML_SUMOFSQUARES, XML_TIME, XML_TOTAL, XML_VALUE, XML_VIEW
 
Constructor Summary
StatsImpl(java.lang.String name, int type)
          Deprecated.  
StatsImpl(java.lang.String name, int type, int level)
          Deprecated.  
StatsImpl(java.lang.String name, int type, int level, java.util.ArrayList dataMembers, java.util.ArrayList subCollections)
          Deprecated.  
StatsImpl(java.lang.String statsType, java.lang.String name, int type, int level, java.util.ArrayList dataMembers, java.util.ArrayList subCollections)
          Deprecated.  
 
Method Summary
 boolean add(Statistic newMember)
          Deprecated.  
 boolean add(Stats newMember)
          Deprecated.  
 boolean add(com.ibm.ws.pmi.wire.WpdCollection newMember)
          Deprecated.  
 boolean add(com.ibm.ws.pmi.wire.WpdData newMember)
          Deprecated.  
 java.util.ArrayList dataMembers()
          Deprecated.  
 com.ibm.ws.pmi.wire.WpdData getData(int dataId)
          Deprecated. This method is defunc'ed
 int getLevel()
          Deprecated. get the instrumentation level
 java.lang.String getName()
          Deprecated.  
 Statistic getStatistic(int dataId)
          Deprecated. get Statistic by data id
 com.ibm.websphere.management.statistics.Statistic getStatistic(java.lang.String name)
          Deprecated. Get Statistic object by name
 java.lang.String[] getStatisticNames()
          Deprecated. Get all Statistic names
 com.ibm.websphere.management.statistics.Statistic[] getStatistics()
          Deprecated. Get all Statistics
 Stats getStats(java.lang.String name)
          Deprecated.  
 java.lang.String getStatsType()
          Deprecated.  
 com.ibm.ws.pmi.wire.WpdCollection getSubcollection(java.lang.String name)
          Deprecated. This method is defunc'ed
 Stats[] getSubStats()
          Deprecated.  
 long getTime()
          Deprecated. Set query time - the time when the client request comes to server
 int getType()
          Deprecated.  
protected  void initPmiModuleConfig()
          Deprecated.  
 java.lang.String[] listStatisticNames()
          Deprecated.  
 Statistic[] listStatistics()
          Deprecated.  
 Stats[] listSubStats()
          Deprecated.  
 boolean remove(int dataId)
          Deprecated.  
 boolean remove(java.lang.String name)
          Deprecated.  
 void resetOnClient(boolean recursive)
          Deprecated.  
 void setConfig(com.ibm.websphere.pmi.PmiModuleConfig config)
          Deprecated.  
 void setDataMembers(java.util.ArrayList dataMembers)
          Deprecated.  
 void setLevel(int level)
          Deprecated. set the instrumentation level
 void setName(java.lang.String name)
          Deprecated.  
 void setStatistics(java.util.ArrayList dataMembers)
          Deprecated. set data members
 void setStatsType(java.lang.String modName)
          Deprecated.  
 void setSubcollections(java.util.ArrayList subCollections)
          Deprecated.  
 void setSubStats(java.util.ArrayList subCollections)
          Deprecated. set sub-stats
 java.util.ArrayList subCollections()
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
 java.lang.String toString(java.lang.String indent)
          Deprecated.  
 java.lang.String toXML()
          Deprecated.  
 void update(Stats newStats, boolean keepOld, boolean recursiveUpdate)
          Deprecated. Update this Stats using the newStats.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statsType

protected java.lang.String statsType
Deprecated. 

name

protected java.lang.String name
Deprecated. 

type

protected int type
Deprecated. 

instrumentationLevel

protected int instrumentationLevel
Deprecated. 

dataMembers

protected java.util.ArrayList dataMembers
Deprecated. 

subCollections

protected java.util.ArrayList subCollections
Deprecated. 

time

protected long time
Deprecated. 
Constructor Detail

StatsImpl

public StatsImpl(java.lang.String name,
                 int type)
Deprecated. 

StatsImpl

public StatsImpl(java.lang.String name,
                 int type,
                 int level)
Deprecated. 

StatsImpl

public StatsImpl(java.lang.String name,
                 int type,
                 int level,
                 java.util.ArrayList dataMembers,
                 java.util.ArrayList subCollections)
Deprecated. 

StatsImpl

public StatsImpl(java.lang.String statsType,
                 java.lang.String name,
                 int type,
                 int level,
                 java.util.ArrayList dataMembers,
                 java.util.ArrayList subCollections)
Deprecated. 
Method Detail

getName

public java.lang.String getName()
Deprecated. 
Specified by:
getName in interface com.ibm.ws.pmi.wire.WpdCollection

getStatsType

public java.lang.String getStatsType()
Deprecated. 

setName

public void setName(java.lang.String name)
Deprecated. 
Specified by:
setName in interface com.ibm.ws.pmi.wire.WpdCollection

setStatsType

public void setStatsType(java.lang.String modName)
Deprecated. 

getType

public int getType()
Deprecated. 
Specified by:
getType in interface com.ibm.ws.pmi.wire.WpdCollection

getTime

public long getTime()
Deprecated. 
Set query time - the time when the client request comes to server


getLevel

public int getLevel()
Deprecated. 
get the instrumentation level

Specified by:
getLevel in interface com.ibm.ws.pmi.wire.WpdCollection

setLevel

public void setLevel(int level)
Deprecated. 
set the instrumentation level

Specified by:
setLevel in interface com.ibm.ws.pmi.wire.WpdCollection

setStatistics

public void setStatistics(java.util.ArrayList dataMembers)
Deprecated. 
set data members


setSubStats

public void setSubStats(java.util.ArrayList subCollections)
Deprecated. 
set sub-stats


getStatistic

public Statistic getStatistic(int dataId)
Deprecated. 
get Statistic by data id


getStatistic

public com.ibm.websphere.management.statistics.Statistic getStatistic(java.lang.String name)
Deprecated. 
Get Statistic object by name

Specified by:
getStatistic in interface com.ibm.websphere.management.statistics.Stats

getStatistics

public com.ibm.websphere.management.statistics.Statistic[] getStatistics()
Deprecated. 
Get all Statistics

Specified by:
getStatistics in interface com.ibm.websphere.management.statistics.Stats

getStatisticNames

public java.lang.String[] getStatisticNames()
Deprecated. 
Get all Statistic names

Specified by:
getStatisticNames in interface com.ibm.websphere.management.statistics.Stats

getStats

public Stats getStats(java.lang.String name)
Deprecated. 

getSubStats

public Stats[] getSubStats()
Deprecated. 

listStatisticNames

public java.lang.String[] listStatisticNames()
Deprecated. 

listStatistics

public Statistic[] listStatistics()
Deprecated. 

listSubStats

public Stats[] listSubStats()
Deprecated. 

add

public boolean add(Statistic newMember)
Deprecated. 

add

public boolean add(Stats newMember)
Deprecated. 

remove

public boolean remove(int dataId)
Deprecated. 
Specified by:
remove in interface com.ibm.ws.pmi.wire.WpdCollection

remove

public boolean remove(java.lang.String name)
Deprecated. 
Specified by:
remove in interface com.ibm.ws.pmi.wire.WpdCollection

toString

public java.lang.String toString()
Deprecated. 
Specified by:
toString in interface com.ibm.ws.pmi.wire.WpdCollection
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String indent)
Deprecated. 
Specified by:
toString in interface com.ibm.ws.pmi.wire.WpdCollection

setConfig

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

add

public boolean add(com.ibm.ws.pmi.wire.WpdData newMember)
Deprecated. 
Specified by:
add in interface com.ibm.ws.pmi.wire.WpdCollection

add

public boolean add(com.ibm.ws.pmi.wire.WpdCollection newMember)
Deprecated. 
Specified by:
add in interface com.ibm.ws.pmi.wire.WpdCollection

toXML

public java.lang.String toXML()
Deprecated. 
Specified by:
toXML in interface com.ibm.ws.pmi.wire.WpdCollection

setDataMembers

public void setDataMembers(java.util.ArrayList dataMembers)
Deprecated. 
Specified by:
setDataMembers in interface com.ibm.ws.pmi.wire.WpdCollection

setSubcollections

public void setSubcollections(java.util.ArrayList subCollections)
Deprecated. 
Specified by:
setSubcollections in interface com.ibm.ws.pmi.wire.WpdCollection

dataMembers

public java.util.ArrayList dataMembers()
Deprecated. 
Specified by:
dataMembers in interface com.ibm.ws.pmi.wire.WpdCollection

subCollections

public java.util.ArrayList subCollections()
Deprecated. 
Specified by:
subCollections in interface com.ibm.ws.pmi.wire.WpdCollection

getData

public com.ibm.ws.pmi.wire.WpdData getData(int dataId)
Deprecated. 
This method is defunc'ed

Specified by:
getData in interface com.ibm.ws.pmi.wire.WpdCollection

getSubcollection

public com.ibm.ws.pmi.wire.WpdCollection getSubcollection(java.lang.String name)
Deprecated. 
This method is defunc'ed

Specified by:
getSubcollection in interface com.ibm.ws.pmi.wire.WpdCollection

update

public void update(Stats newStats,
                   boolean keepOld,
                   boolean recursiveUpdate)
Deprecated. 
Update this Stats using the newStats. Note: this Stats and newStats must represent the same Pmi module/submodule. It is caller's responsibility since simply checking name and type here may not be sufficient.


resetOnClient

public void resetOnClient(boolean recursive)
Deprecated. 

initPmiModuleConfig

protected void initPmiModuleConfig()
Deprecated.