| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectmx4j.remote.ProviderHelpermx4j.remote.ConnectionResolvermx4j.remote.resolver.rmi.Resolverpublic class Resolverextends ConnectionResolverMethod Summary | |
Object |
|
javax.management.remote.JMXServiceURL |
|
protected javax.management.remote.rmi.RMIServerImpl |
|
Object |
|
protected javax.management.remote.rmi.RMIServer |
|
void |
|
protected String |
|
protected boolean |
|
Object |
|
protected javax.management.remote.rmi.RMIServer |
|
protected javax.management.remote.rmi.RMIServer |
|
void |
|
Methods inherited from class mx4j.remote.ConnectionResolver | |
bindClient, bindServer, createServer, destroyServer, lookupClient, newConnectionResolver, unbindServer | |
Methods inherited from class mx4j.remote.ProviderHelper | |
constructClassName, findSystemPackageList, getLogger, loadClass, normalizeProtocol | |
public Object bindClient(Object client,
Map environment)
throws IOExceptionConnects the client returned byConnectionResolver.lookupClient(JMXServiceURL,Map)to the server side.
- Overrides:
- bindClient in interface ConnectionResolver
- Returns:
- An object of the same type as the client passed in; normally the client object itself
public javax.management.remote.JMXServiceURL bindServer(Object server,
javax.management.remote.JMXServiceURL url,
Map environment)
throws IOExceptionBinds the server created byConnectionResolver.createServer(JMXServiceURL,Map)to a place specified by the JMXServiceURL.
- Overrides:
- bindServer in interface ConnectionResolver
- Returns:
- a new JMXServiceURL that specifies where the server has been bound to.
protected javax.management.remote.rmi.RMIServerImpl createRMIServer(javax.management.remote.JMXServiceURL url,
Map environment)
throws IOExceptionpublic Object createServer(javax.management.remote.JMXServiceURL url,
Map environment)
throws IOExceptionCreates an instance of the server as specified in the given JMXServiceURL. It is only a factory method, it should just return a fresh instance of the server; other methods are responsible to make it available to clients (for example exporting it). This method is used in implementations ofjavax.management.remote.JMXConnectorServer.start.
- Overrides:
- createServer in interface ConnectionResolver
protected javax.management.remote.rmi.RMIServer decodeStub(javax.management.remote.JMXServiceURL url,
Map environment)
throws IOExceptionpublic void destroyServer(Object server,
javax.management.remote.JMXServiceURL url,
Map environment)
throws IOExceptionDestroys the server created byConnectionResolver.createServer(JMXServiceURL,Map), by cleaning up resources it may have requested at creation time
- Overrides:
- destroyServer in interface ConnectionResolver
protected String encodeStub(javax.management.remote.rmi.RMIServerImpl rmiServer,
Map environment)
throws IOExceptionprotected boolean isEncodedForm(javax.management.remote.JMXServiceURL url)
public Object lookupClient(javax.management.remote.JMXServiceURL url,
Map environment)
throws IOExceptionLooks up a connection with the server side as specified in the given JMXServiceURL. This method is used in implementations ofjavax.management.remote.JMXConnector.connect().
- Overrides:
- lookupClient in interface ConnectionResolver
protected javax.management.remote.rmi.RMIServer lookupRMIServerStub(javax.management.remote.JMXServiceURL url,
Map environment)
throws IOExceptionprotected javax.management.remote.rmi.RMIServer narrowRMIServerStub(Object stub)
public void unbindServer(Object server,
javax.management.remote.JMXServiceURL url,
Map environment)
throws IOExceptionUnbinds the server bound byConnectionResolver.bindServer(Object,JMXServiceURL,Map)from the place specified by the JMXServiceURL.
- Overrides:
- unbindServer in interface ConnectionResolver