org.eclipse.jetty.monitor.jmx
类 ServiceConnection

java.lang.Object
  继承者 org.eclipse.jetty.monitor.jmx.ServiceConnection

public class ServiceConnection
extends Object

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


构造方法摘要
ServiceConnection()
          Construct a loopback connection to an internal server
ServiceConnection(String url)
          Construct a connection to specified server
 
方法摘要
 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
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ServiceConnection

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

抛出:
IOException

ServiceConnection

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

参数:
url - URL of JMX server
抛出:
IOException
方法详细信息

getServiceUrl

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

返回:
service URL

getConnection

public MBeanServerConnection getConnection()
Retrieve a connection to MBean server

返回:
connection to MBean server

connect

public void connect()
             throws IOException
抛出:
IOException

disconnect

public void disconnect()
Close the connections



Copyright © 2013. All Rights Reserved.