public class ServiceConnection
extends java.lang.Object
Constructor and Description |
---|
ServiceConnection()
Construct a loopback connection to an internal server
|
ServiceConnection(java.lang.String url)
Construct a connection to specified server
|
Modifier and Type | Method and Description |
---|---|
void |
connect() |
void |
disconnect()
Close the connections
|
javax.management.MBeanServerConnection |
getConnection()
Retrieve a connection to MBean server
|
java.lang.String |
getServiceUrl()
Retrieve an external URL for the JMX server
|
public ServiceConnection() throws java.io.IOException
java.io.IOException
public ServiceConnection(java.lang.String url) throws java.io.IOException
url
- URL of JMX serverjava.io.IOException
public java.lang.String getServiceUrl()
public javax.management.MBeanServerConnection getConnection()
public void connect() throws java.io.IOException
java.io.IOException
public void disconnect()
Copyright © 2012. All Rights Reserved.