tigase.stats
public class StatisticsProvider extends StandardMBean implements StatisticsProviderMBean
Constructor and Description |
---|
StatisticsProvider(StatisticsCollector theRef,
int historySize,
long updateInterval)
Constructs ...
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAllStats(int level)
Operation exposed for management
|
int |
getCLIOQueueSize()
Method description
|
float[] |
getCLPacketsPerSecHistory()
Method description
|
int |
getCLQueueSize()
Method description
|
int |
getClusterCacheSize()
Method description
|
float |
getClusterCompressionRatio()
Method description
|
long |
getClusterNetworkBytes()
Method description
|
float |
getClusterNetworkBytesPerSecond()
Method description
|
long |
getClusterPackets()
Method description
|
float |
getClusterPacketsPerSec()
Method description
|
int |
getCompConnections(String comp)
Method description
|
long |
getCompIqs(String comp)
Method description
|
long |
getCompMessages(String comp)
Method description
|
List<String> |
getComponentsNames()
Get Attribute exposed for management
|
Map<String,String> |
getComponentStats(String compName,
int level)
Operation exposed for management
|
long |
getCompPackets(String comp)
Method description
|
long |
getCompPresences(String comp)
Method description
|
int |
getConnectionsNumber()
Method description
|
int[] |
getConnectionsNumberHistory()
Method description
|
int |
getCPUsNumber()
Method description
|
float |
getCPUUsage()
Method description
|
float[] |
getCPUUsageHistory()
Method description
|
Map<String,Object> |
getCurStats(String[] statsKeys) |
protected String |
getDescription(MBeanAttributeInfo info)
Override customization hook: You can supply a customized description for
MBeanAttributeInfo.getDescription()
|
protected String |
getDescription(MBeanInfo info)
Override customization hook: You can supply a customized description for
MBeanInfo.getDescription()
|
protected String |
getDescription(MBeanOperationInfo info)
Override customization hook: You can supply a customized description for
MBeanOperationInfo.getDescription()
|
protected String |
getDescription(MBeanOperationInfo op,
MBeanParameterInfo param,
int sequence)
Override customization hook: You can supply a customized description for
MBeanParameterInfo.getDescription()
|
float |
getHeapMemUsage()
Method description
|
float[] |
getHeapUsageHistory()
Method description
|
long |
getIQAuthNumber()
Method description
|
long |
getIQOtherNumber()
Method description
|
float |
getIQOtherNumberPerSec()
Method description
|
MBeanInfo |
getMBeanInfo()
Method description
|
long |
getMessagesNumber()
Method description
|
float |
getMessagesNumberPerSec()
Method description
|
String |
getName()
Get Attribute exposed for management
|
float |
getNonHeapMemUsage()
Method description
|
MBeanNotificationInfo[] |
getNotificationInfo()
Method description
|
protected String |
getParameterName(MBeanOperationInfo op,
MBeanParameterInfo param,
int sequence)
Override customization hook: You can supply a customized description for
MBeanParameterInfo.getName()
|
long |
getPresencesNumber()
Method description
|
float |
getPresencesNumberPerSec()
Method description
|
long |
getProcesCPUTime()
Method description
|
long |
getQueueOverflow()
Method description
|
int |
getQueueSize()
Method description
|
long |
getRegistered()
Method description
|
int |
getServerConnections()
Method description
|
int[] |
getServerConnectionsHistory()
Method description
|
long |
getSMPacketsNumber()
Method description
|
float |
getSMPacketsNumberPerSec()
Method description
|
float[] |
getSMPacketsPerSecHistory()
Method description
|
int |
getSMQueueSize()
Method description
|
float |
getStats(String cmp_name,
String stat,
float def)
Method description
|
int |
getStats(String cmp_name,
String stat,
int def)
Method description
|
long |
getStats(String cmp_name,
String stat,
long def)
Method description
|
String |
getStats(String cmp_name,
String stat,
String def)
Method description
|
Map<String,LinkedList<Object>> |
getStatsHistory(String[] statsKeys) |
String |
getSystemDetails()
Method description
|
long |
getUptime()
Method description
|
void |
stop() |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
public StatisticsProvider(StatisticsCollector theRef, int historySize, long updateInterval) throws NotCompliantMBeanException
theRef
- NotCompliantMBeanException
public Map<String,String> getAllStats(int level)
getAllStats
in interface StatisticsProviderMBean
level
- public int getCLIOQueueSize()
getCLIOQueueSize
in interface StatisticsProviderMBean
public float[] getCLPacketsPerSecHistory()
getCLPacketsPerSecHistory
in interface StatisticsProviderMBean
public int getCLQueueSize()
getCLQueueSize
in interface StatisticsProviderMBean
public float getCPUUsage()
getCPUUsage
in interface StatisticsProviderMBean
public float[] getCPUUsageHistory()
getCPUUsageHistory
in interface StatisticsProviderMBean
public int getCPUsNumber()
getCPUsNumber
in interface StatisticsProviderMBean
public int getClusterCacheSize()
getClusterCacheSize
in interface StatisticsProviderMBean
public float getClusterCompressionRatio()
getClusterCompressionRatio
in interface StatisticsProviderMBean
public long getClusterNetworkBytes()
getClusterNetworkBytes
in interface StatisticsProviderMBean
public float getClusterNetworkBytesPerSecond()
getClusterNetworkBytesPerSecond
in interface StatisticsProviderMBean
public long getClusterPackets()
getClusterPackets
in interface StatisticsProviderMBean
public float getClusterPacketsPerSec()
getClusterPacketsPerSec
in interface StatisticsProviderMBean
public int getCompConnections(String comp)
comp
- public long getCompIqs(String comp)
comp
- public long getCompMessages(String comp)
comp
- public long getCompPackets(String comp)
comp
- public long getCompPresences(String comp)
comp
- public Map<String,String> getComponentStats(String compName, int level)
getComponentStats
in interface StatisticsProviderMBean
compName
- level
- public List<String> getComponentsNames()
getComponentsNames
in interface StatisticsProviderMBean
public int getConnectionsNumber()
getConnectionsNumber
in interface StatisticsProviderMBean
public int[] getConnectionsNumberHistory()
getConnectionsNumberHistory
in interface StatisticsProviderMBean
public float getHeapMemUsage()
getHeapMemUsage
in interface StatisticsProviderMBean
public float[] getHeapUsageHistory()
getHeapUsageHistory
in interface StatisticsProviderMBean
public long getIQAuthNumber()
getIQAuthNumber
in interface StatisticsProviderMBean
public long getIQOtherNumber()
getIQOtherNumber
in interface StatisticsProviderMBean
public float getIQOtherNumberPerSec()
getIQOtherNumberPerSec
in interface StatisticsProviderMBean
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
getMBeanInfo
in class StandardMBean
public long getMessagesNumber()
getMessagesNumber
in interface StatisticsProviderMBean
public float getMessagesNumberPerSec()
getMessagesNumberPerSec
in interface StatisticsProviderMBean
public String getName()
getName
in interface StatisticsProviderMBean
public float getNonHeapMemUsage()
getNonHeapMemUsage
in interface StatisticsProviderMBean
public MBeanNotificationInfo[] getNotificationInfo()
public long getPresencesNumber()
getPresencesNumber
in interface StatisticsProviderMBean
public float getPresencesNumberPerSec()
getPresencesNumberPerSec
in interface StatisticsProviderMBean
public long getProcesCPUTime()
getProcesCPUTime
in interface StatisticsProviderMBean
public long getQueueOverflow()
getQueueOverflow
in interface StatisticsProviderMBean
public int getQueueSize()
getQueueSize
in interface StatisticsProviderMBean
public long getRegistered()
public long getSMPacketsNumber()
getSMPacketsNumber
in interface StatisticsProviderMBean
public float getSMPacketsNumberPerSec()
getSMPacketsNumberPerSec
in interface StatisticsProviderMBean
public float[] getSMPacketsPerSecHistory()
getSMPacketsPerSecHistory
in interface StatisticsProviderMBean
public int getSMQueueSize()
getSMQueueSize
in interface StatisticsProviderMBean
public int getServerConnections()
getServerConnections
in interface StatisticsProviderMBean
public int[] getServerConnectionsHistory()
getServerConnectionsHistory
in interface StatisticsProviderMBean
public long getStats(String cmp_name, String stat, long def)
cmp_name
- stat
- def
- public float getStats(String cmp_name, String stat, float def)
cmp_name
- stat
- def
- public String getStats(String cmp_name, String stat, String def)
cmp_name
- stat
- def
- public int getStats(String cmp_name, String stat, int def)
cmp_name
- stat
- def
- public String getSystemDetails()
getSystemDetails
in interface StatisticsProviderMBean
public long getUptime()
getUptime
in interface StatisticsProviderMBean
protected String getDescription(MBeanInfo info)
getDescription
in class StandardMBean
info
- protected String getDescription(MBeanAttributeInfo info)
getDescription
in class StandardMBean
info
- protected String getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
getDescription
in class StandardMBean
op
- param
- sequence
- protected String getDescription(MBeanOperationInfo info)
getDescription
in class StandardMBean
info
- protected String getParameterName(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
getParameterName
in class StandardMBean
op
- param
- sequence
- public Map<String,LinkedList<Object>> getStatsHistory(String[] statsKeys)
getStatsHistory
in interface StatisticsProviderMBean
public Map<String,Object> getCurStats(String[] statsKeys)
getCurStats
in interface StatisticsProviderMBean
public void stop()
Copyright © 2013 Tigase. All rights reserved.