public abstract class ConnectionResolver extends ProviderHelper
JMXConnectorFactory. Here a subclass
has a fully qualified name specified like this:
Resolver
This class is used from both the client and the server.
The former uses it to lookup stubs or connections to the server side; the latter uses it
to create server instances and make them availale to clients, for example via JNDI.
The client and server methods have not been splitted into 2 different interfaces because
most of the times they share common code, although it may have been a better design.| Constructor and Description |
|---|
ConnectionResolver() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
bindClient(java.lang.Object client,
java.util.Map environment)
Connects the client returned by
lookupClient(javax.management.remote.JMXServiceURL, java.util.Map) to the server side. |
abstract javax.management.remote.JMXServiceURL |
bindServer(java.lang.Object server,
javax.management.remote.JMXServiceURL url,
java.util.Map environment)
Binds the server created by
createServer(javax.management.remote.JMXServiceURL, java.util.Map) to a place specified by the JMXServiceURL. |
abstract java.lang.Object |
createServer(javax.management.remote.JMXServiceURL url,
java.util.Map environment)
Creates an instance of the server as specified in the given JMXServiceURL.
|
abstract void |
destroyServer(java.lang.Object server,
javax.management.remote.JMXServiceURL url,
java.util.Map environment)
Destroys the server created by
createServer(javax.management.remote.JMXServiceURL, java.util.Map), by cleaning up resources it may have requested
at creation time |
abstract java.lang.Object |
lookupClient(javax.management.remote.JMXServiceURL url,
java.util.Map environment)
Looks up a connection with the server side as specified in the given JMXServiceURL.
|
static ConnectionResolver |
newConnectionResolver(java.lang.String proto,
java.util.Map environment)
Returns a subclass of ConnectionResolver for the specified protocol.
|
abstract void |
unbindServer(java.lang.Object server,
javax.management.remote.JMXServiceURL address,
java.util.Map environment)
Unbinds the server bound by
bindServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map) from the place specified by the JMXServiceURL. |
constructClassName, findSystemPackageList, getLogger, loadClass, normalizeProtocolpublic static ConnectionResolver newConnectionResolver(java.lang.String proto, java.util.Map environment)
public abstract java.lang.Object lookupClient(javax.management.remote.JMXServiceURL url,
java.util.Map environment)
throws java.io.IOException
JMXConnector.connect().java.io.IOExceptionbindClient(java.lang.Object, java.util.Map)public abstract java.lang.Object bindClient(java.lang.Object client,
java.util.Map environment)
throws java.io.IOException
lookupClient(javax.management.remote.JMXServiceURL, java.util.Map) to the server side.java.io.IOExceptionpublic abstract java.lang.Object createServer(javax.management.remote.JMXServiceURL url,
java.util.Map environment)
throws java.io.IOException
JMXConnectorServerMBean.start().public abstract javax.management.remote.JMXServiceURL bindServer(java.lang.Object server,
javax.management.remote.JMXServiceURL url,
java.util.Map environment)
throws java.io.IOException
createServer(javax.management.remote.JMXServiceURL, java.util.Map) to a place specified by the JMXServiceURL.java.io.IOExceptionunbindServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map)public abstract void unbindServer(java.lang.Object server,
javax.management.remote.JMXServiceURL address,
java.util.Map environment)
throws java.io.IOException
bindServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map) from the place specified by the JMXServiceURL.java.io.IOExceptiondestroyServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map)public abstract void destroyServer(java.lang.Object server,
javax.management.remote.JMXServiceURL url,
java.util.Map environment)
throws java.io.IOException
createServer(javax.management.remote.JMXServiceURL, java.util.Map), by cleaning up resources it may have requested
at creation timejava.io.IOExceptioncreateServer(javax.management.remote.JMXServiceURL, java.util.Map)