com.ibm.websphere.pmi.stat

Class StatsImpl

  1. java.lang.Object
  2. extended bycom.ibm.websphere.pmi.stat.StatsImpl
All implemented interfaces:
Stats, 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
  1. public class StatsImpl
  2. extends java.lang.Object
  3. implements Stats, com.ibm.ws.pmi.wire.WpdCollection, 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

Modifier and Type Field and Description
  1. protected
  2. java.util.ArrayList
dataMembers
Deprecated.
  1. protected
  2. int
instrumentationLevel
Deprecated.
  1. protected
  2. java.lang.String
name
Deprecated.
  1. protected
  2. java.lang.String
statsType
Deprecated.
  1. protected
  2. java.util.ArrayList
subCollections
Deprecated.
  1. protected
  2. long
time
Deprecated.
  1. protected
  2. 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_SINGLETON, 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

Constructor and Description
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

Modifier and Type Method and Description
  1. boolean
add(Statistic newMember)
Deprecated. add a Statistic data - usually only called on server side
  1. boolean
add(Stats newMember)
Deprecated. add a Stats - usually only called on server side
  1. boolean
add(com.ibm.ws.pmi.wire.WpdCollection newMember)
Deprecated.
  1. boolean
add(com.ibm.ws.pmi.wire.WpdData newMember)
Deprecated.
  1. java.util.ArrayList
dataMembers()
Deprecated.
  1. com.ibm.ws.pmi.wire.WpdData
getData(int dataId)
Deprecated. This method is defunc'ed
  1. int
getLevel()
Deprecated. get the instrumentation level
  1. java.lang.String
getName()
Deprecated.
  1. Statistic
getStatistic(int dataId)
Deprecated. get Statistic by data id
  1. Statistic
getStatistic(java.lang.String name)
Deprecated. Get Statistic object by name
  1. java.lang.String[]
getStatisticNames()
Deprecated. Get all Statistic names
  1. Statistic[]
getStatistics()
Deprecated. Get all Statistics
  1. Stats
getStats(java.lang.String name)
Deprecated.
  1. java.lang.String
getStatsType()
Deprecated.
  1. com.ibm.ws.pmi.wire.WpdCollection
getSubcollection(java.lang.String name)
Deprecated. This method is defunc'ed
  1. Stats[]
getSubStats()
Deprecated.
  1. long
getTime()
Deprecated. Set query time - the time when the client request comes to server
  1. int
getType()
Deprecated.
  1. protected
  2. void
initPmiModuleConfig()
Deprecated.
  1. java.lang.String[]
listStatisticNames()
Deprecated. same as getStatisticNames method
  1. Statistic[]
listStatistics()
Deprecated. same as getStatistics method
  1. Stats[]
listSubStats()
Deprecated. same as getSubStats method
  1. boolean
remove(int dataId)
Deprecated.
  1. boolean
remove(java.lang.String name)
Deprecated.
  1. void
resetOnClient(boolean recursive)
Deprecated. Reset on client only
  1. void
setConfig(PmiModuleConfig config)
Deprecated. Call this method to set the static config info.
  1. void
setDataMembers(java.util.ArrayList dataMembers)
Deprecated.
  1. void
setLevel(int level)
Deprecated. set the instrumentation level
  1. void
setName(java.lang.String name)
Deprecated.
  1. void
setStatistics(java.util.ArrayList dataMembers)
Deprecated. set data members
  1. void
setStatsType(java.lang.String modName)
Deprecated.
  1. void
setSubcollections(java.util.ArrayList subCollections)
Deprecated.
  1. void
setSubStats(java.util.ArrayList subCollections)
Deprecated. set sub-stats
  1. java.util.ArrayList
subCollections()
Deprecated.
  1. java.lang.String
toString()
Deprecated.
  1. java.lang.String
toString(java.lang.String indent)
Deprecated.
  1. java.lang.String
toXML()
Deprecated.
  1. 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

  1. protected java.lang.String statsType
Deprecated.

name

  1. protected java.lang.String name
Deprecated.

type

  1. protected int type
Deprecated.

instrumentationLevel

  1. protected int instrumentationLevel
Deprecated.

dataMembers

  1. protected java.util.ArrayList dataMembers
Deprecated.

subCollections

  1. protected java.util.ArrayList subCollections
Deprecated.

time

  1. protected long time
Deprecated.

Constructor Detail

StatsImpl

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

StatsImpl

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

StatsImpl

  1. public StatsImpl(java.lang.String name,
  2. int type,
  3. int level,
  4. java.util.ArrayList dataMembers,
  5. java.util.ArrayList subCollections)
Deprecated.

StatsImpl

  1. public StatsImpl(java.lang.String statsType,
  2. java.lang.String name,
  3. int type,
  4. int level,
  5. java.util.ArrayList dataMembers,
  6. java.util.ArrayList subCollections)
Deprecated.

Method Detail

getName

  1. public java.lang.String getName( )
Deprecated.
Specified by:
getName in interface com.ibm.ws.pmi.wire.WpdCollection
Returns:
name of the Stats

getStatsType

  1. public java.lang.String getStatsType( )
Deprecated.
Returns:
Stats type. This type is used to bind the static information to the Stats

setName

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

setStatsType

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

getType

  1. public int getType()
Deprecated.
Specified by:
getType in interface com.ibm.ws.pmi.wire.WpdCollection
Returns:
collection type. This type identifies the stats collection level in the PMI hierarcy.

getTime

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

getLevel

  1. public int getLevel()
Deprecated.
get the instrumentation level
Specified by:
getLevel in interface com.ibm.ws.pmi.wire.WpdCollection

setLevel

  1. public void setLevel(int level)
Deprecated.
set the instrumentation level
Specified by:
setLevel in interface com.ibm.ws.pmi.wire.WpdCollection

setStatistics

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

setSubStats

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

getStatistic

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

getStatistic

  1. public Statistic getStatistic(java.lang.String name)
Deprecated.
Get Statistic object by name
Specified by:
getStatistic in interface Stats

getStatistics

  1. public Statistic[] getStatistics( )
Deprecated.
Get all Statistics
Specified by:
getStatistics in interface Stats

getStatisticNames

  1. public java.lang.String[] getStatisticNames( )
Deprecated.
Get all Statistic names
Specified by:
getStatisticNames in interface Stats

getStats

  1. public Stats getStats(java.lang.String name)
Deprecated.
Returns:
the sub-stat by the name

getSubStats

  1. public Stats[] getSubStats()
Deprecated.
Returns:
all the sub-stats in it.

listStatisticNames

  1. public java.lang.String[] listStatisticNames( )
Deprecated.
Description copied from interface: Stats
same as getStatisticNames method

listStatistics

  1. public Statistic[] listStatistics( )
Deprecated.
Description copied from interface: Stats
same as getStatistics method

listSubStats

  1. public Stats[] listSubStats()
Deprecated.
Description copied from interface: Stats
same as getSubStats method

add

  1. public boolean add(Statistic newMember)
Deprecated.
Description copied from interface: Stats
add a Statistic data - usually only called on server side

add

  1. public boolean add(Stats newMember)
Deprecated.
Description copied from interface: Stats
add a Stats - usually only called on server side

remove

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

remove

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

toString

  1. 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

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

setConfig

  1. public void setConfig(PmiModuleConfig config)
Deprecated.
Description copied from interface: Stats
Call this method to set the static config info.

Note that the PMI data retrieved from server only have the value and time stamp information. If you use PmiClient API, PmiClient will link the static config info with the dynamic value together for the data. However, if you use JMX API direclty, you have to link them togehter after you get the data. Otherwise, static config info like name, description, unit, etc will be null. Static config info can be cached and used for all the data retrieval.


add

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

add

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

toXML

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

setDataMembers

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

setSubcollections

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

dataMembers

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

subCollections

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

getData

  1. 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

  1. 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

  1. public void update(Stats newStats,
  2. boolean keepOld,
  3. 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.
Parameters:
newStats - the new value of the Stats
keepOld - do not remove the old data/subStats that are not in newStats when it is true
recursiveUpdate - recursively update the sub-stats when it is true

resetOnClient

  1. public void resetOnClient(boolean recursive)
Deprecated.
Description copied from interface: Stats
Reset on client only

initPmiModuleConfig

  1. protected void initPmiModuleConfig( )
Deprecated.