Package tigase.stats
Class JavaJMXProxyOpt
- java.lang.Object
-
- tigase.stats.JavaJMXProxyOpt
-
- All Implemented Interfaces:
EventListener,NotificationListener
public class JavaJMXProxyOpt extends Object implements NotificationListener
- Author:
- Artur Hefczyc Created Jun 3, 2011
-
-
Constructor Summary
Constructors Constructor Description JavaJMXProxyOpt(String id, String hostname, int port, String userName, String password, long delay, long interval, boolean loadHistory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddJMXProxyListener(JMXProxyListenerOpt listener)voidconnect()Map<String,String>getAllStats(int level)List<String>getComponentsNames()Map<String,String>getComponentStats(String compName, int level)StringgetHostname()StringgetId()ObjectgetMetricData(String key)Object[]getMetricHistory(String key)StringgetSystemDetails()voidhandleNotification(Notification notification, Object handback)booleanisConnected()booleanisInitialized()voidstart()voidupdate()
-
-
-
Method Detail
-
addJMXProxyListener
public void addJMXProxyListener(JMXProxyListenerOpt listener)
-
handleNotification
public void handleNotification(Notification notification, Object handback)
- Specified by:
handleNotificationin interfaceNotificationListener
-
start
public void start()
-
update
public void update()
-
getHostname
public String getHostname()
-
getId
public String getId()
-
getSystemDetails
public String getSystemDetails()
-
isConnected
public boolean isConnected()
-
isInitialized
public boolean isInitialized()
-
-