org.eclipse.jetty.toolchain.jmx
Class JmxServiceConnection

java.lang.Object
  extended by org.eclipse.jetty.toolchain.jmx.JmxServiceConnection

public class JmxServiceConnection
extends Object

JmxServiceConnection Provides ability to create a connection to either an external JMX server, or a loopback connection to the internal one.


Constructor Summary
JmxServiceConnection()
          Construct a loopback connection to an internal server
JmxServiceConnection(String url)
          Construct a connection to specified server
 
Method Summary
 void connect()
           
 void disconnect()
          Close the connections
 MBeanServerConnection getConnection()
          Retrieve a connection to MBean server
 String getServiceUrl()
          Retrieve an external URL for the JMX server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxServiceConnection

public JmxServiceConnection()
                     throws IOException
Construct a loopback connection to an internal server

Throws:
IOException

JmxServiceConnection

public JmxServiceConnection(String url)
                     throws IOException
Construct a connection to specified server

Parameters:
url - URL of JMX server
Throws:
IOException
Method Detail

getServiceUrl

public String getServiceUrl()
Retrieve an external URL for the JMX server

Returns:
service URL

getConnection

public MBeanServerConnection getConnection()
Retrieve a connection to MBean server

Returns:
connection to MBean server

connect

public void connect()
             throws IOException
Throws:
IOException

disconnect

public void disconnect()
Close the connections



Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.