tigase.stats
Class JavaJMXProxy

java.lang.Object
  extended by tigase.stats.JavaJMXProxy
All Implemented Interfaces:
EventListener, NotificationListener, StatisticsProviderMBean

public class JavaJMXProxy
extends Object
implements StatisticsProviderMBean, NotificationListener

Created: Aug 24, 2009 12:35:28 PM

Version:
$Rev$
Author:
Artur Hefczyc

Constructor Summary
JavaJMXProxy(String id, String hostname, int port, String userName, String password, long delay, long interval, boolean loadHistory)
          Constructs ...
 
Method Summary
 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 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
 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
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaJMXProxy

public JavaJMXProxy(String id,
                    String hostname,
                    int port,
                    String userName,
                    String password,
                    long delay,
                    long interval,
                    boolean loadHistory)
Constructs ...

Parameters:
id -
hostname -
port -
userName -
password -
delay -
interval -
loadHistory -
Method Detail

addJMXProxyListener

public void addJMXProxyListener(JMXProxyListener listener)
Method description

Parameters:
listener -

connect

public void connect()
             throws Exception
Method description

Throws:
Exception

getAllStats

public Map<String,String> getAllStats(int level)
Method description

Specified by:
getAllStats in interface StatisticsProviderMBean
Parameters:
level -
Returns:

getCLIOQueueSize

public int getCLIOQueueSize()
Method description

Specified by:
getCLIOQueueSize in interface StatisticsProviderMBean
Returns:

getCLPacketsPerSecHistory

public float[] getCLPacketsPerSecHistory()
Method description

Specified by:
getCLPacketsPerSecHistory in interface StatisticsProviderMBean
Returns:

getCLQueueSize

public int getCLQueueSize()
Method description

Specified by:
getCLQueueSize in interface StatisticsProviderMBean
Returns:

getCPUUsage

public float getCPUUsage()
Method description

Specified by:
getCPUUsage in interface StatisticsProviderMBean
Returns:

getCPUUsageHistory

public float[] getCPUUsageHistory()
Method description

Specified by:
getCPUUsageHistory in interface StatisticsProviderMBean
Returns:

getCPUsNumber

public int getCPUsNumber()
Method description

Specified by:
getCPUsNumber in interface StatisticsProviderMBean
Returns:

getClusterCacheSize

public int getClusterCacheSize()
Method description

Specified by:
getClusterCacheSize in interface StatisticsProviderMBean
Returns:

getClusterCompressionRatio

public float getClusterCompressionRatio()
Method description

Specified by:
getClusterCompressionRatio in interface StatisticsProviderMBean
Returns:

getClusterNetworkBytes

public long getClusterNetworkBytes()
Method description

Specified by:
getClusterNetworkBytes in interface StatisticsProviderMBean
Returns:

getClusterNetworkBytesPerSecond

public float getClusterNetworkBytesPerSecond()
Method description

Specified by:
getClusterNetworkBytesPerSecond in interface StatisticsProviderMBean
Returns:

getClusterPackets

public long getClusterPackets()
Method description

Specified by:
getClusterPackets in interface StatisticsProviderMBean
Returns:

getClusterPacketsPerSec

public float getClusterPacketsPerSec()
Method description

Specified by:
getClusterPacketsPerSec in interface StatisticsProviderMBean
Returns:

getComponentStats

public Map<String,String> getComponentStats(String compName,
                                            int level)
Method description

Specified by:
getComponentStats in interface StatisticsProviderMBean
Parameters:
compName -
level -
Returns:

getComponentsNames

public List getComponentsNames()
Method description

Specified by:
getComponentsNames in interface StatisticsProviderMBean
Returns:

getConnectionsNumber

public int getConnectionsNumber()
Method description

Specified by:
getConnectionsNumber in interface StatisticsProviderMBean
Returns:

getConnectionsNumberHistory

public int[] getConnectionsNumberHistory()
Method description

Specified by:
getConnectionsNumberHistory in interface StatisticsProviderMBean
Returns:

getHeapMemUsage

public float getHeapMemUsage()
Method description

Specified by:
getHeapMemUsage in interface StatisticsProviderMBean
Returns:

getHeapUsageHistory

public float[] getHeapUsageHistory()
Method description

Specified by:
getHeapUsageHistory in interface StatisticsProviderMBean
Returns:

getIQAuthNumber

public long getIQAuthNumber()
Method description

Specified by:
getIQAuthNumber in interface StatisticsProviderMBean
Returns:

getIQOtherNumber

public long getIQOtherNumber()
Method description

Specified by:
getIQOtherNumber in interface StatisticsProviderMBean
Returns:

getIQOtherNumberPerSec

public float getIQOtherNumberPerSec()
Method description

Specified by:
getIQOtherNumberPerSec in interface StatisticsProviderMBean
Returns:

getId

public String getId()
Method description

Returns:

getLastCacheUpdate

public long getLastCacheUpdate()
Method description

Returns:

getMessagesNumber

public long getMessagesNumber()
Method description

Specified by:
getMessagesNumber in interface StatisticsProviderMBean
Returns:

getMessagesNumberPerSec

public float getMessagesNumberPerSec()
Method description

Specified by:
getMessagesNumberPerSec in interface StatisticsProviderMBean
Returns:

getName

public String getName()
Method description

Specified by:
getName in interface StatisticsProviderMBean
Returns:

getNonHeapMemUsage

public float getNonHeapMemUsage()
Method description

Specified by:
getNonHeapMemUsage in interface StatisticsProviderMBean
Returns:

getPresencesNumber

public long getPresencesNumber()
Method description

Specified by:
getPresencesNumber in interface StatisticsProviderMBean
Returns:

getPresencesNumberPerSec

public float getPresencesNumberPerSec()
Method description

Specified by:
getPresencesNumberPerSec in interface StatisticsProviderMBean
Returns:

getProcesCPUTime

public long getProcesCPUTime()
Method description

Specified by:
getProcesCPUTime in interface StatisticsProviderMBean
Returns:

getQueueOverflow

public long getQueueOverflow()
Method description

Specified by:
getQueueOverflow in interface StatisticsProviderMBean
Returns:

getQueueSize

public int getQueueSize()
Method description

Specified by:
getQueueSize in interface StatisticsProviderMBean
Returns:

getSMPacketsNumber

public long getSMPacketsNumber()
Method description

Specified by:
getSMPacketsNumber in interface StatisticsProviderMBean
Returns:

getSMPacketsNumberPerSec

public float getSMPacketsNumberPerSec()
Method description

Specified by:
getSMPacketsNumberPerSec in interface StatisticsProviderMBean
Returns:

getSMPacketsPerSecHistory

public float[] getSMPacketsPerSecHistory()
Method description

Specified by:
getSMPacketsPerSecHistory in interface StatisticsProviderMBean
Returns:

getSMQueueSize

public int getSMQueueSize()
Method description

Specified by:
getSMQueueSize in interface StatisticsProviderMBean
Returns:

getServerConnections

public int getServerConnections()
Method description

Specified by:
getServerConnections in interface StatisticsProviderMBean
Returns:

getServerConnectionsHistory

public int[] getServerConnectionsHistory()
Method description

Specified by:
getServerConnectionsHistory in interface StatisticsProviderMBean
Returns:

getSystemDetails

public String getSystemDetails()
Method description

Specified by:
getSystemDetails in interface StatisticsProviderMBean
Returns:

getUptime

public long getUptime()
Method description

Specified by:
getUptime in interface StatisticsProviderMBean
Returns:

handleNotification

public void handleNotification(Notification notification,
                               Object handback)
Method description

Specified by:
handleNotification in interface NotificationListener
Parameters:
notification -
handback -

isConnected

public boolean isConnected()
Method description

Returns:

isInitialized

public boolean isInitialized()
Method description

Returns:

start

public void start()
Method description


update

public void update()
Method description



Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.