Package tigase.stats
Class StatisticsProvider
java.lang.Object
javax.management.StandardMBean
tigase.stats.StatisticsProvider
- All Implemented Interfaces:
DynamicMBean
,MBeanRegistration
,StatisticsProviderMBean
Class StatisticsProvider
- Author:
- kobit
-
Constructor Summary
ConstructorDescriptionStatisticsProvider
(StatisticsCollector theRef, int historySize, long updateInterval, int highMemoryLevel) -
Method Summary
Modifier and TypeMethodDescriptiongetAllStats
(int level) Operation exposed for managementint
float[]
int
int
float
long
float
long
float
int
getCompConnections
(String comp) long
getCompIqs
(String comp) long
getCompMessages
(String comp) Get Attribute exposed for managementgetComponentStats
(String compName, int level) Operation exposed for managementlong
getCompPackets
(String comp) long
getCompPresences
(String comp) int
int[]
int
float
float[]
getCurStats
(String[] statsKeys) protected String
protected String
getDescription
(MBeanInfo info) protected String
protected String
getDescription
(MBeanOperationInfo op, MBeanParameterInfo param, int sequence) long
long[]
float
float[]
long
long
float
long
float
getName()
float
protected String
getParameterName
(MBeanOperationInfo op, MBeanParameterInfo param, int sequence) long
float
long
long
int
long
int
int[]
long
float
float[]
int
float
int
long
getStatsHistory
(String[] statsKeys) long
void
stop()
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
Constructor Details
-
StatisticsProvider
public StatisticsProvider(StatisticsCollector theRef, int historySize, long updateInterval, int highMemoryLevel) throws NotCompliantMBeanException - Throws:
NotCompliantMBeanException
-
-
Method Details
-
stop
public void stop() -
getAllStats
Description copied from interface:StatisticsProviderMBean
Operation exposed for management- Specified by:
getAllStats
in interfaceStatisticsProviderMBean
- Parameters:
level
- Statistics level, 0 - All, 500 - Medium, 800 - Minimal- Returns:
java.util.Map<String, String>
-
getCLIOQueueSize
public int getCLIOQueueSize()- Specified by:
getCLIOQueueSize
in interfaceStatisticsProviderMBean
-
getCLPacketsPerSecHistory
public float[] getCLPacketsPerSecHistory()- Specified by:
getCLPacketsPerSecHistory
in interfaceStatisticsProviderMBean
-
getCLQueueSize
public int getCLQueueSize()- Specified by:
getCLQueueSize
in interfaceStatisticsProviderMBean
-
getClusterCacheSize
public int getClusterCacheSize()- Specified by:
getClusterCacheSize
in interfaceStatisticsProviderMBean
-
getClusterCompressionRatio
public float getClusterCompressionRatio()- Specified by:
getClusterCompressionRatio
in interfaceStatisticsProviderMBean
-
getClusterNetworkBytes
public long getClusterNetworkBytes()- Specified by:
getClusterNetworkBytes
in interfaceStatisticsProviderMBean
-
getClusterNetworkBytesPerSecond
public float getClusterNetworkBytesPerSecond()- Specified by:
getClusterNetworkBytesPerSecond
in interfaceStatisticsProviderMBean
-
getClusterPackets
public long getClusterPackets()- Specified by:
getClusterPackets
in interfaceStatisticsProviderMBean
-
getClusterPacketsPerSec
public float getClusterPacketsPerSec()- Specified by:
getClusterPacketsPerSec
in interfaceStatisticsProviderMBean
-
getCompConnections
-
getCompIqs
-
getCompMessages
-
getComponentsNames
Description copied from interface:StatisticsProviderMBean
Get Attribute exposed for management- Specified by:
getComponentsNames
in interfaceStatisticsProviderMBean
- Returns:
- a value of
List<String>
-
getComponentStats
Description copied from interface:StatisticsProviderMBean
Operation exposed for management- Specified by:
getComponentStats
in interfaceStatisticsProviderMBean
- Parameters:
compName
- The component name to provide statistics forlevel
- Statistics level, 0 - All, 500 - Medium, 800 - Minimal- Returns:
java.util.Map<String, String>
-
getCompPackets
-
getCompPresences
-
getConnectionsNumber
public int getConnectionsNumber()- Specified by:
getConnectionsNumber
in interfaceStatisticsProviderMBean
-
getConnectionsNumberHistory
public int[] getConnectionsNumberHistory()- Specified by:
getConnectionsNumberHistory
in interfaceStatisticsProviderMBean
-
getCPUsNumber
public int getCPUsNumber()- Specified by:
getCPUsNumber
in interfaceStatisticsProviderMBean
-
getCPUUsage
public float getCPUUsage()- Specified by:
getCPUUsage
in interfaceStatisticsProviderMBean
-
getCPUUsageHistory
public float[] getCPUUsageHistory()- Specified by:
getCPUUsageHistory
in interfaceStatisticsProviderMBean
-
getCurStats
- Specified by:
getCurStats
in interfaceStatisticsProviderMBean
-
getDirectMemUsed
public long getDirectMemUsed()- Specified by:
getDirectMemUsed
in interfaceStatisticsProviderMBean
-
getDirectMemUsedHistory
public long[] getDirectMemUsedHistory()- Specified by:
getDirectMemUsedHistory
in interfaceStatisticsProviderMBean
-
getHeapMemUsage
public float getHeapMemUsage()- Specified by:
getHeapMemUsage
in interfaceStatisticsProviderMBean
-
getHeapUsageHistory
public float[] getHeapUsageHistory()- Specified by:
getHeapUsageHistory
in interfaceStatisticsProviderMBean
-
getIQAuthNumber
public long getIQAuthNumber()- Specified by:
getIQAuthNumber
in interfaceStatisticsProviderMBean
-
getIQOtherNumber
public long getIQOtherNumber()- Specified by:
getIQOtherNumber
in interfaceStatisticsProviderMBean
-
getIQOtherNumberPerSec
public float getIQOtherNumberPerSec()- Specified by:
getIQOtherNumberPerSec
in interfaceStatisticsProviderMBean
-
getMBeanInfo
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
- Overrides:
getMBeanInfo
in classStandardMBean
-
getMessagesNumber
public long getMessagesNumber()- Specified by:
getMessagesNumber
in interfaceStatisticsProviderMBean
-
getMessagesNumberPerSec
public float getMessagesNumberPerSec()- Specified by:
getMessagesNumberPerSec
in interfaceStatisticsProviderMBean
-
getName
- Specified by:
getName
in interfaceStatisticsProviderMBean
-
getNonHeapMemUsage
public float getNonHeapMemUsage()- Specified by:
getNonHeapMemUsage
in interfaceStatisticsProviderMBean
-
getNotificationInfo
-
getPresencesNumber
public long getPresencesNumber()- Specified by:
getPresencesNumber
in interfaceStatisticsProviderMBean
-
getPresencesNumberPerSec
public float getPresencesNumberPerSec()- Specified by:
getPresencesNumberPerSec
in interfaceStatisticsProviderMBean
-
getProcesCPUTime
public long getProcesCPUTime()- Specified by:
getProcesCPUTime
in interfaceStatisticsProviderMBean
-
getQueueOverflow
public long getQueueOverflow()- Specified by:
getQueueOverflow
in interfaceStatisticsProviderMBean
-
getQueueSize
public int getQueueSize()- Specified by:
getQueueSize
in interfaceStatisticsProviderMBean
-
getRegistered
public long getRegistered() -
getServerConnections
public int getServerConnections()- Specified by:
getServerConnections
in interfaceStatisticsProviderMBean
-
getServerConnectionsHistory
public int[] getServerConnectionsHistory()- Specified by:
getServerConnectionsHistory
in interfaceStatisticsProviderMBean
-
getSMPacketsNumber
public long getSMPacketsNumber()- Specified by:
getSMPacketsNumber
in interfaceStatisticsProviderMBean
-
getSMPacketsNumberPerSec
public float getSMPacketsNumberPerSec()- Specified by:
getSMPacketsNumberPerSec
in interfaceStatisticsProviderMBean
-
getSMPacketsPerSecHistory
public float[] getSMPacketsPerSecHistory()- Specified by:
getSMPacketsPerSecHistory
in interfaceStatisticsProviderMBean
-
getSMQueueSize
public int getSMQueueSize()- Specified by:
getSMQueueSize
in interfaceStatisticsProviderMBean
-
getStats
-
getStats
-
getStats
-
getStats
-
getStatsHistory
- Specified by:
getStatsHistory
in interfaceStatisticsProviderMBean
-
getSystemDetails
- Specified by:
getSystemDetails
in interfaceStatisticsProviderMBean
-
getUptime
public long getUptime()- Specified by:
getUptime
in interfaceStatisticsProviderMBean
-
getDescription
- Overrides:
getDescription
in classStandardMBean
-
getDescription
- Overrides:
getDescription
in classStandardMBean
-
getDescription
- Overrides:
getDescription
in classStandardMBean
-
getDescription
- Overrides:
getDescription
in classStandardMBean
-
getParameterName
- Overrides:
getParameterName
in classStandardMBean
-
getCompNames
-