|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.mfwk.cib.sdk.statistics.CIBPerfStatsImpl
com.sun.mfwk.cib.sdk.statistics.CIBServicePerfStatsImpl
Provides a default implementation for a CIBServicePerfStats provider This implementation is fully based on the Java-ES MF Instrumentation SDK.
| Field Summary |
| Fields inherited from interface com.sun.mfwk.cib.statistics.CIBStats |
CIBStatsVersion |
| Constructor Summary | |
CIBServicePerfStatsImpl(javax.management.MBeanServerConnection connection,
java.util.Map map)
Builds a CIBServicePerfstats provider which uses the MBeanServerConnection to connect the CP and a map providing the mapping between the Java-ES Framework and the CP meaning the mapping between the CIB attributes and the CP's ObjectNames. |
|
CIBServicePerfStatsImpl(javax.management.MBeanServerConnection connection,
javax.management.ObjectName name)
Builds a CIBServicePerfstats provider which uses the MBeanServerConnection to connect the CP and the name as the ObjectName to get attributes from the CP's JMX MBeanServer. |
|
CIBServicePerfStatsImpl(javax.management.MBeanServerConnection connection,
java.lang.String name)
Builds a CIBServicePerfstats provider which uses the MBeanServerConnection to connect the CP and the name as the key value of the name's key of the ObjectName to get attributes from the CP's JMX MBeanServer. |
|
| Method Summary | |
void |
destroy()
Destroy the statistics and clean the statistics objects/values when needed, close all the communications. |
CIBStats |
fromCompositeData(javax.management.openmbean.CompositeData data)
fromCompositeData |
CIBCountStatistic |
getAbortedRequests()
Returns a CIBCountStatistic representing the number of Aborted Requests |
CIBCountStatistic |
getFailedRequests()
Returns a CIBValueStatistic representing the number of failed requests |
CIBCountStatistic |
getInRequests()
Returns a CIBCountStatistic representing the number of In Requests |
CIBCountStatistic |
getOutRequests()
Returns a CIBCountStatistic representing the number of Out Requests |
CIBRangeStatistic |
getOutstandingRequests()
Returns a CIBRangeStatistic representing the Outstanding Requests statistics The current value is (NbInRequests-(NbOutRequests+NbFailedRequests+NbAbortedRequests)) The processing does not take into account the number of Abort requests |
CIBTimeStatistic |
getResidentTime()
Returns a CIBTimeStatistic object representing the Resident time. |
CIBTimeStatistic |
getServiceTime()
Returns a CIBTimeStatistic object representing the Service Time |
void |
init()
Initializes the statistics mechanism. |
void |
start()
Start the statistics collections and clean the statistics objects/values when needed, close all the communications. |
void |
stop()
Stop the statistics collections and clean the statistics objects/values when needed, close all the communications. |
javax.management.openmbean.CompositeData |
toCompositeData()
toCompositeData |
| Methods inherited from class com.sun.mfwk.cib.sdk.statistics.CIBPerfStatsImpl |
getStatistic, getStatisticNames, getStatistics |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.management.j2ee.statistics.Stats |
getStatistic, getStatisticNames, getStatistics |
| Constructor Detail |
public CIBServicePerfStatsImpl(javax.management.MBeanServerConnection connection,
java.lang.String name)
throws javax.management.MalformedObjectNameException
connection - MBeanServerConnectionname - String
javax.management.MalformedObjectNameException
public CIBServicePerfStatsImpl(javax.management.MBeanServerConnection connection,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
connection - MBeanServerConnectionname - ObjectName
javax.management.MalformedObjectNameException
public CIBServicePerfStatsImpl(javax.management.MBeanServerConnection connection,
java.util.Map map)
connection - MBeanServerConnectionmap - Map| Method Detail |
public CIBTimeStatistic getResidentTime()
throws CIBIOException,
CIBAttributeNotFoundException
getResidentTime in interface CIBServicePerfStatsCIBIOException
CIBAttributeNotFoundException
public CIBTimeStatistic getServiceTime()
throws CIBIOException,
CIBAttributeNotFoundException
getServiceTime in interface CIBServicePerfStatsCIBIOException
CIBAttributeNotFoundException
public CIBCountStatistic getFailedRequests()
throws CIBIOException,
CIBAttributeNotFoundException
getFailedRequests in interface CIBServicePerfStatsCIBIOException
CIBAttributeNotFoundException
public CIBRangeStatistic getOutstandingRequests()
throws CIBIOException,
CIBAttributeNotFoundException
getOutstandingRequests in interface CIBServicePerfStatsCIBIOException
CIBAttributeNotFoundException
public CIBCountStatistic getInRequests()
throws CIBIOException,
CIBAttributeNotFoundException
getInRequests in interface CIBServicePerfStatsCIBIOException
CIBAttributeNotFoundException
public CIBCountStatistic getOutRequests()
throws CIBIOException,
CIBAttributeNotFoundException
getOutRequests in interface CIBServicePerfStatsCIBIOException
CIBAttributeNotFoundException
public CIBCountStatistic getAbortedRequests()
throws CIBIOException,
CIBAttributeNotFoundException
CIBIOException
CIBAttributeNotFoundException
public void init()
throws CIBIOException,
CIBException
init in interface CIBProviderinit in class CIBPerfStatsImplCIBIOException
CIBException
public void destroy()
throws CIBIOException,
CIBException
destroy in interface CIBProviderdestroy in class CIBPerfStatsImplCIBIOException
CIBException
public void start()
throws CIBIOException,
CIBException
CIBIOException
CIBException
public void stop()
throws CIBIOException,
CIBException
CIBIOException
CIBException
public javax.management.openmbean.CompositeData toCompositeData()
throws javax.management.openmbean.OpenDataException
toCompositeData in interface CIBStatsjavax.management.openmbean.OpenDataExceptionpublic CIBStats fromCompositeData(javax.management.openmbean.CompositeData data)
fromCompositeData in interface CIBStatsdata - CompositeData
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||