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:
java.io.Serializable
,java.rmi.registry.Registry
,java.rmi.Remote
- Enclosing class:
- JMXServerUtils
public static class JMXServerUtils.JmxRegistry extends sun.rmi.registry.RegistryImpl
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JmxRegistry(int port, java.rmi.server.RMIClientSocketFactory csf, java.rmi.server.RMIServerSocketFactory ssf, java.lang.String lookupName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(java.lang.String s, java.rmi.Remote remote)
void
close()
Closes the underlying JMX registry by unexporting this instance.java.lang.String[]
list()
java.rmi.Remote
lookup(java.lang.String s)
void
rebind(java.lang.String s, java.rmi.Remote remote)
void
setRemoteServerStub(java.rmi.Remote remoteServerStub)
void
unbind(java.lang.String s)
-
-
-
Method Detail
-
lookup
public java.rmi.Remote lookup(java.lang.String s) throws java.rmi.RemoteException, java.rmi.NotBoundException
- Specified by:
lookup
in interfacejava.rmi.registry.Registry
- Overrides:
lookup
in classsun.rmi.registry.RegistryImpl
- Throws:
java.rmi.RemoteException
java.rmi.NotBoundException
-
bind
public void bind(java.lang.String s, java.rmi.Remote remote) throws java.rmi.RemoteException, java.rmi.AlreadyBoundException, java.rmi.AccessException
- Specified by:
bind
in interfacejava.rmi.registry.Registry
- Overrides:
bind
in classsun.rmi.registry.RegistryImpl
- Throws:
java.rmi.RemoteException
java.rmi.AlreadyBoundException
java.rmi.AccessException
-
unbind
public void unbind(java.lang.String s) throws java.rmi.RemoteException, java.rmi.NotBoundException, java.rmi.AccessException
- Specified by:
unbind
in interfacejava.rmi.registry.Registry
- Overrides:
unbind
in classsun.rmi.registry.RegistryImpl
- Throws:
java.rmi.RemoteException
java.rmi.NotBoundException
java.rmi.AccessException
-
rebind
public void rebind(java.lang.String s, java.rmi.Remote remote) throws java.rmi.RemoteException, java.rmi.AccessException
- Specified by:
rebind
in interfacejava.rmi.registry.Registry
- Overrides:
rebind
in classsun.rmi.registry.RegistryImpl
- Throws:
java.rmi.RemoteException
java.rmi.AccessException
-
list
public java.lang.String[] list() throws java.rmi.RemoteException
- Specified by:
list
in interfacejava.rmi.registry.Registry
- Overrides:
list
in classsun.rmi.registry.RegistryImpl
- Throws:
java.rmi.RemoteException
-
setRemoteServerStub
public void setRemoteServerStub(java.rmi.Remote remoteServerStub)
-
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.
-
-