SMILA (incubation) API documentation

org.eclipse.smila.management.jmx.client.helpers
Class JmxConnection

java.lang.Object
  extended by org.eclipse.smila.management.jmx.client.helpers.JmxConnection

public class JmxConnection
extends java.lang.Object

The Class JmxConnection.


Constructor Summary
JmxConnection(ConnectionConfigType connection)
          Instantiates a new m bean resource manager.
 
Method Summary
 void connect()
          Connect to JMX MBean server.
 java.lang.Object getAttribute(java.lang.String domain, java.lang.String key, java.lang.String attribute)
          Returns MBeans attribute value.
 java.lang.Object invoke(java.lang.String domain, java.lang.String key, java.lang.String operation, java.lang.Object[] arguments, java.lang.String[] signature)
          Invoke.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxConnection

public JmxConnection(ConnectionConfigType connection)
Instantiates a new m bean resource manager.

Parameters:
connection - the connection
Method Detail

connect

public void connect()
             throws JmxConnectionException
Connect to JMX MBean server.

Throws:
JmxConnectionException - the connection exception

invoke

public java.lang.Object invoke(java.lang.String domain,
                               java.lang.String key,
                               java.lang.String operation,
                               java.lang.Object[] arguments,
                               java.lang.String[] signature)
                        throws JmxInvocationException
Invoke.

Parameters:
domain - the domain
key - the agent
operation - the operation
arguments - the arguments
signature - the signature
Returns:
the object
Throws:
JmxInvocationException - the jmx invocation exception

getAttribute

public java.lang.Object getAttribute(java.lang.String domain,
                                     java.lang.String key,
                                     java.lang.String attribute)
                              throws JmxInvocationException
Returns MBeans attribute value.

Parameters:
domain - the domain
key - the key
attribute - the attribute
Returns:
the attribute
Throws:
JmxInvocationException - the jmx invocation exception

SMILA (incubation) API documentation