Package tigase.stats
Class StatisticsProvider
- java.lang.Object
-
- javax.management.StandardMBean
-
- tigase.stats.StatisticsProvider
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,StatisticsProviderMBean
public class StatisticsProvider extends StandardMBean implements StatisticsProviderMBean
Class StatisticsProvider- Author:
- kobit
-
-
Constructor Summary
Constructors Constructor Description StatisticsProvider(StatisticsCollector theRef, int historySize, long updateInterval, int highMemoryLevel)
-
Method Summary
-
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 Detail
-
StatisticsProvider
public StatisticsProvider(StatisticsCollector theRef, int historySize, long updateInterval, int highMemoryLevel) throws NotCompliantMBeanException
- Throws:
NotCompliantMBeanException
-
-
Method Detail
-
stop
public void stop()
-
getAllStats
public Map<String,String> getAllStats(int level)
Description copied from interface:StatisticsProviderMBeanOperation exposed for management- Specified by:
getAllStatsin interfaceStatisticsProviderMBean- Parameters:
level- Statistics level, 0 - All, 500 - Medium, 800 - Minimal- Returns:
java.util.Map<String, String>
-
getCLIOQueueSize
public int getCLIOQueueSize()
- Specified by:
getCLIOQueueSizein interfaceStatisticsProviderMBean
-
getCLPacketsPerSecHistory
public float[] getCLPacketsPerSecHistory()
- Specified by:
getCLPacketsPerSecHistoryin interfaceStatisticsProviderMBean
-
getCLQueueSize
public int getCLQueueSize()
- Specified by:
getCLQueueSizein interfaceStatisticsProviderMBean
-
getClusterCacheSize
public int getClusterCacheSize()
- Specified by:
getClusterCacheSizein interfaceStatisticsProviderMBean
-
getClusterCompressionRatio
public float getClusterCompressionRatio()
- Specified by:
getClusterCompressionRatioin interfaceStatisticsProviderMBean
-
getClusterNetworkBytes
public long getClusterNetworkBytes()
- Specified by:
getClusterNetworkBytesin interfaceStatisticsProviderMBean
-
getClusterNetworkBytesPerSecond
public float getClusterNetworkBytesPerSecond()
- Specified by:
getClusterNetworkBytesPerSecondin interfaceStatisticsProviderMBean
-
getClusterPackets
public long getClusterPackets()
- Specified by:
getClusterPacketsin interfaceStatisticsProviderMBean
-
getClusterPacketsPerSec
public float getClusterPacketsPerSec()
- Specified by:
getClusterPacketsPerSecin interfaceStatisticsProviderMBean
-
getCompConnections
public int getCompConnections(String comp)
-
getCompIqs
public long getCompIqs(String comp)
-
getCompMessages
public long getCompMessages(String comp)
-
getComponentsNames
public List<String> getComponentsNames()
Description copied from interface:StatisticsProviderMBeanGet Attribute exposed for management- Specified by:
getComponentsNamesin interfaceStatisticsProviderMBean- Returns:
- a value of
List<String>
-
getComponentStats
public Map<String,String> getComponentStats(String compName, int level)
Description copied from interface:StatisticsProviderMBeanOperation exposed for management- Specified by:
getComponentStatsin 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
public long getCompPackets(String comp)
-
getCompPresences
public long getCompPresences(String comp)
-
getConnectionsNumber
public int getConnectionsNumber()
- Specified by:
getConnectionsNumberin interfaceStatisticsProviderMBean
-
getConnectionsNumberHistory
public int[] getConnectionsNumberHistory()
- Specified by:
getConnectionsNumberHistoryin interfaceStatisticsProviderMBean
-
getCPUsNumber
public int getCPUsNumber()
- Specified by:
getCPUsNumberin interfaceStatisticsProviderMBean
-
getCPUUsage
public float getCPUUsage()
- Specified by:
getCPUUsagein interfaceStatisticsProviderMBean
-
getCPUUsageHistory
public float[] getCPUUsageHistory()
- Specified by:
getCPUUsageHistoryin interfaceStatisticsProviderMBean
-
getCurStats
public Map<String,Object> getCurStats(String[] statsKeys)
- Specified by:
getCurStatsin interfaceStatisticsProviderMBean
-
getDirectMemUsed
public long getDirectMemUsed()
- Specified by:
getDirectMemUsedin interfaceStatisticsProviderMBean
-
getDirectMemUsedHistory
public long[] getDirectMemUsedHistory()
- Specified by:
getDirectMemUsedHistoryin interfaceStatisticsProviderMBean
-
getHeapMemUsage
public float getHeapMemUsage()
- Specified by:
getHeapMemUsagein interfaceStatisticsProviderMBean
-
getHeapUsageHistory
public float[] getHeapUsageHistory()
- Specified by:
getHeapUsageHistoryin interfaceStatisticsProviderMBean
-
getIQAuthNumber
public long getIQAuthNumber()
- Specified by:
getIQAuthNumberin interfaceStatisticsProviderMBean
-
getIQOtherNumber
public long getIQOtherNumber()
- Specified by:
getIQOtherNumberin interfaceStatisticsProviderMBean
-
getIQOtherNumberPerSec
public float getIQOtherNumberPerSec()
- Specified by:
getIQOtherNumberPerSecin interfaceStatisticsProviderMBean
-
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfoin interfaceDynamicMBean- Overrides:
getMBeanInfoin classStandardMBean
-
getMessagesNumber
public long getMessagesNumber()
- Specified by:
getMessagesNumberin interfaceStatisticsProviderMBean
-
getMessagesNumberPerSec
public float getMessagesNumberPerSec()
- Specified by:
getMessagesNumberPerSecin interfaceStatisticsProviderMBean
-
getName
public String getName()
- Specified by:
getNamein interfaceStatisticsProviderMBean
-
getNonHeapMemUsage
public float getNonHeapMemUsage()
- Specified by:
getNonHeapMemUsagein interfaceStatisticsProviderMBean
-
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
-
getPresencesNumber
public long getPresencesNumber()
- Specified by:
getPresencesNumberin interfaceStatisticsProviderMBean
-
getPresencesNumberPerSec
public float getPresencesNumberPerSec()
- Specified by:
getPresencesNumberPerSecin interfaceStatisticsProviderMBean
-
getProcesCPUTime
public long getProcesCPUTime()
- Specified by:
getProcesCPUTimein interfaceStatisticsProviderMBean
-
getQueueOverflow
public long getQueueOverflow()
- Specified by:
getQueueOverflowin interfaceStatisticsProviderMBean
-
getQueueSize
public int getQueueSize()
- Specified by:
getQueueSizein interfaceStatisticsProviderMBean
-
getRegistered
public long getRegistered()
-
getServerConnections
public int getServerConnections()
- Specified by:
getServerConnectionsin interfaceStatisticsProviderMBean
-
getServerConnectionsHistory
public int[] getServerConnectionsHistory()
- Specified by:
getServerConnectionsHistoryin interfaceStatisticsProviderMBean
-
getSMPacketsNumber
public long getSMPacketsNumber()
- Specified by:
getSMPacketsNumberin interfaceStatisticsProviderMBean
-
getSMPacketsNumberPerSec
public float getSMPacketsNumberPerSec()
- Specified by:
getSMPacketsNumberPerSecin interfaceStatisticsProviderMBean
-
getSMPacketsPerSecHistory
public float[] getSMPacketsPerSecHistory()
- Specified by:
getSMPacketsPerSecHistoryin interfaceStatisticsProviderMBean
-
getSMQueueSize
public int getSMQueueSize()
- Specified by:
getSMQueueSizein interfaceStatisticsProviderMBean
-
getStatsHistory
public Map<String,LinkedList<Object>> getStatsHistory(String[] statsKeys)
- Specified by:
getStatsHistoryin interfaceStatisticsProviderMBean
-
getSystemDetails
public String getSystemDetails()
- Specified by:
getSystemDetailsin interfaceStatisticsProviderMBean
-
getUptime
public long getUptime()
- Specified by:
getUptimein interfaceStatisticsProviderMBean
-
getDescription
protected String getDescription(MBeanInfo info)
- Overrides:
getDescriptionin classStandardMBean
-
getDescription
protected String getDescription(MBeanAttributeInfo info)
- Overrides:
getDescriptionin classStandardMBean
-
getDescription
protected String getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
- Overrides:
getDescriptionin classStandardMBean
-
getDescription
protected String getDescription(MBeanOperationInfo info)
- Overrides:
getDescriptionin classStandardMBean
-
getParameterName
protected String getParameterName(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
- Overrides:
getParameterNamein classStandardMBean
-
-