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 voidbind(java.lang.String s, java.rmi.Remote remote)voidclose()Closes the underlying JMX registry by unexporting this instance.java.lang.String[]list()java.rmi.Remotelookup(java.lang.String s)voidrebind(java.lang.String s, java.rmi.Remote remote)voidsetRemoteServerStub(java.rmi.Remote remoteServerStub)voidunbind(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:
lookupin interfacejava.rmi.registry.Registry- Overrides:
lookupin classsun.rmi.registry.RegistryImpl- Throws:
java.rmi.RemoteExceptionjava.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:
bindin interfacejava.rmi.registry.Registry- Overrides:
bindin classsun.rmi.registry.RegistryImpl- Throws:
java.rmi.RemoteExceptionjava.rmi.AlreadyBoundExceptionjava.rmi.AccessException
-
unbind
public void unbind(java.lang.String s) throws java.rmi.RemoteException, java.rmi.NotBoundException, java.rmi.AccessException- Specified by:
unbindin interfacejava.rmi.registry.Registry- Overrides:
unbindin classsun.rmi.registry.RegistryImpl- Throws:
java.rmi.RemoteExceptionjava.rmi.NotBoundExceptionjava.rmi.AccessException
-
rebind
public void rebind(java.lang.String s, java.rmi.Remote remote) throws java.rmi.RemoteException, java.rmi.AccessException- Specified by:
rebindin interfacejava.rmi.registry.Registry- Overrides:
rebindin classsun.rmi.registry.RegistryImpl- Throws:
java.rmi.RemoteExceptionjava.rmi.AccessException
-
list
public java.lang.String[] list() throws java.rmi.RemoteException- Specified by:
listin interfacejava.rmi.registry.Registry- Overrides:
listin 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.
-
-