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 and Description
    `JavaJMXProxyOpt(String id, String hostname, int port, String userName, String password, long delay, long interval, boolean loadHistory)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addJMXProxyListener(JMXProxyListenerOpt listener)`
    `void` | `connect()`
    `Map<String,String>` | `getAllStats(int level)`
    `List<String>` | `getComponentsNames()`
    `Map<String,String>` | `getComponentStats(String compName, int level)`
    `String` | `getHostname()`
    `String` | `getId()`
    `Object` | `getMetricData(String key)`
    `Object[]` | `getMetricHistory(String key)`
    `String` | `getSystemDetails()`
    `void` | `handleNotification(Notification notification, Object handback)`
    `boolean` | `isConnected()`
    `boolean` | `isInitialized()`
    `void` | `start()`
    `void` | `update()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JavaJMXProxyOpt

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

  - ### Method Detail

    - #### addJMXProxyListener

          public void addJMXProxyListener(JMXProxyListenerOpt listener)

    - #### connect

          public void connect()
                       throws Exception

      Throws:
        `Exception`

    - #### getAllStats

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

    - #### getComponentStats

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

    - #### getComponentsNames

          public List<String> getComponentsNames()

    - #### getId

          public String getId()

    - #### start

          public void start()

    - #### handleNotification

          public void handleNotification(Notification notification,
                                Object handback)

      Specified by:
        `handleNotification` in interface `NotificationListener`

    - #### isConnected

          public boolean isConnected()

    - #### isInitialized

          public boolean isInitialized()

    - #### update

          public void update()

    - #### getMetricHistory

          public Object[] getMetricHistory(String key)

      Parameters:
        `string` -
      Returns:

    - #### getHostname

          public String getHostname()

    - #### getMetricData

          public Object getMetricData(String key)

      Parameters:
        `string` -
      Returns:

    - #### getSystemDetails

          public String getSystemDetails()

      Returns:

Copyright © 2013 Tigase. All rights reserved.