Package org.apache.cassandra.utils
Class JMXServerUtils.JmxRegistry
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
sun.rmi.registry.RegistryImpl
org.apache.cassandra.utils.JMXServerUtils.JmxRegistry
- All Implemented Interfaces:
Serializable,Registry,Remote
- Enclosing class:
- JMXServerUtils
public static class JMXServerUtils.JmxRegistry
extends sun.rmi.registry.RegistryImpl
- See Also:
-
Field Summary
Fields inherited from class java.rmi.server.RemoteObject
refFields inherited from interface java.rmi.registry.Registry
REGISTRY_PORT -
Constructor Summary
ConstructorsConstructorDescriptionJmxRegistry(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, String lookupName) -
Method Summary
Methods inherited from class sun.rmi.registry.RegistryImpl
checkAccess, createRegistry, getID, mainMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Constructor Details
-
JmxRegistry
public JmxRegistry(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, String lookupName) throws RemoteException - Throws:
RemoteException
-
-
Method Details
-
lookup
- Specified by:
lookupin interfaceRegistry- Overrides:
lookupin classsun.rmi.registry.RegistryImpl- Throws:
RemoteExceptionNotBoundException
-
bind
public void bind(String s, Remote remote) throws RemoteException, AlreadyBoundException, AccessException - Specified by:
bindin interfaceRegistry- Overrides:
bindin classsun.rmi.registry.RegistryImpl- Throws:
RemoteExceptionAlreadyBoundExceptionAccessException
-
unbind
- Specified by:
unbindin interfaceRegistry- Overrides:
unbindin classsun.rmi.registry.RegistryImpl- Throws:
RemoteExceptionNotBoundExceptionAccessException
-
rebind
- Specified by:
rebindin interfaceRegistry- Overrides:
rebindin classsun.rmi.registry.RegistryImpl- Throws:
RemoteExceptionAccessException
-
list
- Specified by:
listin interfaceRegistry- Overrides:
listin classsun.rmi.registry.RegistryImpl- Throws:
RemoteException
-
setRemoteServerStub
-
close
public void close()Closes the underlying JMX registry by unexporting this instance. There is no reason to do this except for in-jvm dtests where we need to stop the registry, so we can start with a clean slate for future cluster builds, and the superclass never expects to be shut down and therefore doesn't handle this edge case at all.
-