public class ServiceConnection extends Object
| Constructor and Description |
|---|
ServiceConnection()
Construct a loopback connection to an internal server
|
ServiceConnection(String url)
Construct a connection to specified server
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public ServiceConnection()
throws IOException
IOExceptionpublic ServiceConnection(String url) throws IOException
url - URL of JMX serverIOExceptionpublic String getServiceUrl()
public MBeanServerConnection getConnection()
public void connect()
throws IOException
IOExceptionpublic void disconnect()
Copyright © 1995-2015 Webtide. All Rights Reserved.