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)
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
|
List<String> |
getComponentsNames()
Get Attribute exposed for management
|
Map<String,String> |
getComponentStats(String compName,
int level)
Operation exposed for management
|
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() |
long |
getIQAuthNumber()
Method description
|
long |
getIQOtherNumber()
Method description
|
float |
getIQOtherNumberPerSec()
Method description
|
long |
getLastCacheUpdate() |
long |
getMessagesNumber()
Method description
|
float |
getMessagesNumberPerSec()
Method description
|
String |
getName()
Get Attribute exposed for management
|
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) |
boolean |
isConnected() |
boolean |
isInitialized() |
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
public void start()
public void update()
public Map<String,String> getAllStats(int level)
StatisticsProviderMBean
getAllStats
in interface StatisticsProviderMBean
level
- Statistics level, 0 - All, 500 - Medium, 800 - Minimaljava.util.Map<String, String>
public int getCLIOQueueSize()
StatisticsProviderMBean
getCLIOQueueSize
in interface StatisticsProviderMBean
int
public float[] getCLPacketsPerSecHistory()
StatisticsProviderMBean
getCLPacketsPerSecHistory
in interface StatisticsProviderMBean
float[]
public int getCLQueueSize()
StatisticsProviderMBean
getCLQueueSize
in interface StatisticsProviderMBean
int
public int getClusterCacheSize()
StatisticsProviderMBean
getClusterCacheSize
in interface StatisticsProviderMBean
int
public float getClusterCompressionRatio()
StatisticsProviderMBean
getClusterCompressionRatio
in interface StatisticsProviderMBean
float
public long getClusterNetworkBytes()
StatisticsProviderMBean
getClusterNetworkBytes
in interface StatisticsProviderMBean
long
public float getClusterNetworkBytesPerSecond()
StatisticsProviderMBean
getClusterNetworkBytesPerSecond
in interface StatisticsProviderMBean
float
public long getClusterPackets()
StatisticsProviderMBean
getClusterPackets
in interface StatisticsProviderMBean
long
public float getClusterPacketsPerSec()
StatisticsProviderMBean
getClusterPacketsPerSec
in interface StatisticsProviderMBean
float
public List<String> getComponentsNames()
StatisticsProviderMBean
getComponentsNames
in interface StatisticsProviderMBean
List<String>
public Map<String,String> getComponentStats(String compName, int level)
StatisticsProviderMBean
getComponentStats
in interface StatisticsProviderMBean
compName
- The component name to provide statistics forlevel
- Statistics level, 0 - All, 500 - Medium, 800 - Minimaljava.util.Map<String, String>
public int getConnectionsNumber()
StatisticsProviderMBean
getConnectionsNumber
in interface StatisticsProviderMBean
int
public int[] getConnectionsNumberHistory()
StatisticsProviderMBean
getConnectionsNumberHistory
in interface StatisticsProviderMBean
int[]
public int getCPUsNumber()
StatisticsProviderMBean
getCPUsNumber
in interface StatisticsProviderMBean
int
public float getCPUUsage()
StatisticsProviderMBean
getCPUUsage
in interface StatisticsProviderMBean
float
public float[] getCPUUsageHistory()
StatisticsProviderMBean
getCPUUsageHistory
in interface StatisticsProviderMBean
float[]
public Map<String,Object> getCurStats(String[] statsKeys)
StatisticsProviderMBean
getCurStats
in interface StatisticsProviderMBean
statsKeys
- is a String[]
Map<String,Object>
public long getDirectMemUsed()
StatisticsProviderMBean
getDirectMemUsed
in interface StatisticsProviderMBean
long
public long[] getDirectMemUsedHistory()
StatisticsProviderMBean
getDirectMemUsedHistory
in interface StatisticsProviderMBean
long[]
public float getHeapMemUsage()
StatisticsProviderMBean
getHeapMemUsage
in interface StatisticsProviderMBean
float
public float[] getHeapUsageHistory()
StatisticsProviderMBean
getHeapUsageHistory
in interface StatisticsProviderMBean
float[]
public String getId()
public long getIQAuthNumber()
StatisticsProviderMBean
getIQAuthNumber
in interface StatisticsProviderMBean
long
public long getIQOtherNumber()
StatisticsProviderMBean
getIQOtherNumber
in interface StatisticsProviderMBean
long
public float getIQOtherNumberPerSec()
StatisticsProviderMBean
getIQOtherNumberPerSec
in interface StatisticsProviderMBean
float
public long getLastCacheUpdate()
public long getMessagesNumber()
StatisticsProviderMBean
getMessagesNumber
in interface StatisticsProviderMBean
long
public float getMessagesNumberPerSec()
StatisticsProviderMBean
getMessagesNumberPerSec
in interface StatisticsProviderMBean
float
public String getName()
StatisticsProviderMBean
getName
in interface StatisticsProviderMBean
String
public float getNonHeapMemUsage()
StatisticsProviderMBean
getNonHeapMemUsage
in interface StatisticsProviderMBean
float
public long getPresencesNumber()
StatisticsProviderMBean
getPresencesNumber
in interface StatisticsProviderMBean
long
public float getPresencesNumberPerSec()
StatisticsProviderMBean
getPresencesNumberPerSec
in interface StatisticsProviderMBean
float
public long getProcesCPUTime()
StatisticsProviderMBean
getProcesCPUTime
in interface StatisticsProviderMBean
long
public long getQueueOverflow()
StatisticsProviderMBean
getQueueOverflow
in interface StatisticsProviderMBean
long
public int getQueueSize()
StatisticsProviderMBean
getQueueSize
in interface StatisticsProviderMBean
int
public int getServerConnections()
StatisticsProviderMBean
getServerConnections
in interface StatisticsProviderMBean
int
public int[] getServerConnectionsHistory()
StatisticsProviderMBean
getServerConnectionsHistory
in interface StatisticsProviderMBean
int[]
public long getSMPacketsNumber()
StatisticsProviderMBean
getSMPacketsNumber
in interface StatisticsProviderMBean
long
public float getSMPacketsNumberPerSec()
StatisticsProviderMBean
getSMPacketsNumberPerSec
in interface StatisticsProviderMBean
float
public float[] getSMPacketsPerSecHistory()
StatisticsProviderMBean
getSMPacketsPerSecHistory
in interface StatisticsProviderMBean
float[]
public int getSMQueueSize()
StatisticsProviderMBean
getSMQueueSize
in interface StatisticsProviderMBean
int
public Map<String,LinkedList<Object>> getStatsHistory(String[] statsKeys)
StatisticsProviderMBean
getStatsHistory
in interface StatisticsProviderMBean
statsKeys
- is a String[]
Map<String,LinkedList<Object>>
public String getSystemDetails()
StatisticsProviderMBean
getSystemDetails
in interface StatisticsProviderMBean
String
public long getUptime()
StatisticsProviderMBean
getUptime
in interface StatisticsProviderMBean
long
public boolean isConnected()
public boolean isInitialized()
Copyright © 2015 "Tigase, Inc.". All rights reserved.