public class JavaJMXProxy extends Object implements StatisticsProviderMBean, NotificationListener
Constructor and Description |
---|
JavaJMXProxy(String id,
String hostname,
int port,
String userName,
String password,
long delay,
long interval,
boolean loadHistory)
Constructs ...
|
Modifier and Type | Method and Description |
---|---|
void |
addJMXProxyListener(JMXProxyListener listener)
Method description
|
void |
connect()
Method description
|
Map<String,String> |
getAllStats(int level)
Method description
|
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
|
List<String> |
getComponentsNames()
Method description
|
Map<String,String> |
getComponentStats(String compName,
int level)
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)
Method description
|
long |
getDirectMemUsed()
Method description
|
long[] |
getDirectMemUsedHistory()
Method description
|
float |
getHeapMemUsage()
Method description
|
float[] |
getHeapUsageHistory()
Method description
|
String |
getId()
Method description
|
long |
getIQAuthNumber()
Method description
|
long |
getIQOtherNumber()
Method description
|
float |
getIQOtherNumberPerSec()
Method description
|
long |
getLastCacheUpdate()
Method description
|
long |
getMessagesNumber()
Method description
|
float |
getMessagesNumberPerSec()
Method description
|
String |
getName()
Method description
|
float |
getNonHeapMemUsage()
Method description
|
long |
getPresencesNumber()
Method description
|
float |
getPresencesNumberPerSec()
Method description
|
long |
getProcesCPUTime()
Method description
|
long |
getQueueOverflow()
Method description
|
int |
getQueueSize()
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
|
Map<String,LinkedList<Object>> |
getStatsHistory(String[] statsKeys)
Method description
|
String |
getSystemDetails()
Method description
|
long |
getUptime()
Method description
|
void |
handleNotification(Notification notification,
Object handback)
Method description
|
boolean |
isConnected()
Method description
|
boolean |
isInitialized()
Method description
|
void |
start()
Method description
|
void |
update()
Method description
|
public void addJMXProxyListener(JMXProxyListener listener)
listener
- public void handleNotification(Notification notification, Object handback)
handleNotification
in interface NotificationListener
notification
- handback
- public void start()
public void update()
public Map<String,String> getAllStats(int level)
getAllStats
in interface StatisticsProviderMBean
level
- Map
public int getCLIOQueueSize()
getCLIOQueueSize
in interface StatisticsProviderMBean
int
public float[] getCLPacketsPerSecHistory()
getCLPacketsPerSecHistory
in interface StatisticsProviderMBean
float[]
public int getCLQueueSize()
getCLQueueSize
in interface StatisticsProviderMBean
int
public int getClusterCacheSize()
getClusterCacheSize
in interface StatisticsProviderMBean
int
public float getClusterCompressionRatio()
getClusterCompressionRatio
in interface StatisticsProviderMBean
float
public long getClusterNetworkBytes()
getClusterNetworkBytes
in interface StatisticsProviderMBean
long
public float getClusterNetworkBytesPerSecond()
getClusterNetworkBytesPerSecond
in interface StatisticsProviderMBean
float
public long getClusterPackets()
getClusterPackets
in interface StatisticsProviderMBean
long
public float getClusterPacketsPerSec()
getClusterPacketsPerSec
in interface StatisticsProviderMBean
float
public List<String> getComponentsNames()
getComponentsNames
in interface StatisticsProviderMBean
List
public Map<String,String> getComponentStats(String compName, int level)
getComponentStats
in interface StatisticsProviderMBean
compName
- level
- Map
public int getConnectionsNumber()
getConnectionsNumber
in interface StatisticsProviderMBean
int
public int[] getConnectionsNumberHistory()
getConnectionsNumberHistory
in interface StatisticsProviderMBean
int[]
public int getCPUsNumber()
getCPUsNumber
in interface StatisticsProviderMBean
int
public float getCPUUsage()
getCPUUsage
in interface StatisticsProviderMBean
float
public float[] getCPUUsageHistory()
getCPUUsageHistory
in interface StatisticsProviderMBean
float[]
public Map<String,Object> getCurStats(String[] statsKeys)
getCurStats
in interface StatisticsProviderMBean
statsKeys
- is a String[]
Map
public long getDirectMemUsed()
getDirectMemUsed
in interface StatisticsProviderMBean
long
public long[] getDirectMemUsedHistory()
getDirectMemUsedHistory
in interface StatisticsProviderMBean
long[]
public float getHeapMemUsage()
getHeapMemUsage
in interface StatisticsProviderMBean
float
public float[] getHeapUsageHistory()
getHeapUsageHistory
in interface StatisticsProviderMBean
float[]
public String getId()
String
public long getIQAuthNumber()
getIQAuthNumber
in interface StatisticsProviderMBean
long
public long getIQOtherNumber()
getIQOtherNumber
in interface StatisticsProviderMBean
long
public float getIQOtherNumberPerSec()
getIQOtherNumberPerSec
in interface StatisticsProviderMBean
float
public long getLastCacheUpdate()
long
public long getMessagesNumber()
getMessagesNumber
in interface StatisticsProviderMBean
long
public float getMessagesNumberPerSec()
getMessagesNumberPerSec
in interface StatisticsProviderMBean
float
public String getName()
getName
in interface StatisticsProviderMBean
String
public float getNonHeapMemUsage()
getNonHeapMemUsage
in interface StatisticsProviderMBean
float
public long getPresencesNumber()
getPresencesNumber
in interface StatisticsProviderMBean
long
public float getPresencesNumberPerSec()
getPresencesNumberPerSec
in interface StatisticsProviderMBean
float
public long getProcesCPUTime()
getProcesCPUTime
in interface StatisticsProviderMBean
long
public long getQueueOverflow()
getQueueOverflow
in interface StatisticsProviderMBean
long
public int getQueueSize()
getQueueSize
in interface StatisticsProviderMBean
int
public int getServerConnections()
getServerConnections
in interface StatisticsProviderMBean
int
public int[] getServerConnectionsHistory()
getServerConnectionsHistory
in interface StatisticsProviderMBean
int[]
public long getSMPacketsNumber()
getSMPacketsNumber
in interface StatisticsProviderMBean
long
public float getSMPacketsNumberPerSec()
getSMPacketsNumberPerSec
in interface StatisticsProviderMBean
float
public float[] getSMPacketsPerSecHistory()
getSMPacketsPerSecHistory
in interface StatisticsProviderMBean
float[]
public int getSMQueueSize()
getSMQueueSize
in interface StatisticsProviderMBean
int
public Map<String,LinkedList<Object>> getStatsHistory(String[] statsKeys)
getStatsHistory
in interface StatisticsProviderMBean
statsKeys
- is a String[]
Map>
public String getSystemDetails()
getSystemDetails
in interface StatisticsProviderMBean
String
public long getUptime()
getUptime
in interface StatisticsProviderMBean
long
public boolean isConnected()
boolean
public boolean isInitialized()
boolean
Copyright © 2014 "Tigase, Inc.". All rights reserved.