|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmx4j.remote.ProviderHelper
mx4j.remote.ConnectionResolver
ConnectionResolver handles the details of creating connections for different protocols.
Subclasses for the specific protocol are instantiated using a mechanism very similar to the
one specified by 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 Summary | |
ConnectionResolver()
|
Method Summary | |
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. |
Methods inherited from class mx4j.remote.ProviderHelper |
constructClassName, findSystemPackageList, getLogger, loadClass, normalizeProtocol |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConnectionResolver()
Method Detail |
public 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.IOException
bindClient(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.IOException
public abstract java.lang.Object createServer(javax.management.remote.JMXServiceURL url, java.util.Map environment) throws java.io.IOException
JMXConnectorServerMBean.start()
.
java.io.IOException
bindServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map)
,
destroyServer(java.lang.Object, javax.management.remote.JMXServiceURL, java.util.Map)
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.IOException
unbindServer(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.IOException
destroyServer(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 time
java.io.IOException
createServer(javax.management.remote.JMXServiceURL, java.util.Map)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |