Class 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
    • Field Summary

      • Fields inherited from class java.rmi.server.RemoteObject

        ref
      • Fields inherited from interface java.rmi.registry.Registry

        REGISTRY_PORT
    • 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)  
      • Methods inherited from class sun.rmi.registry.RegistryImpl

        checkAccess, createRegistry, getID, main
      • Methods inherited from class java.rmi.server.RemoteServer

        getClientHost, getLog, setLog
      • Methods inherited from class java.rmi.server.RemoteObject

        equals, getRef, hashCode, toString, toStub
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JmxRegistry

        public JmxRegistry​(int port,
                           java.rmi.server.RMIClientSocketFactory csf,
                           java.rmi.server.RMIServerSocketFactory ssf,
                           java.lang.String lookupName)
                    throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • lookup

        public java.rmi.Remote lookup​(java.lang.String s)
                               throws java.rmi.RemoteException,
                                      java.rmi.NotBoundException
        Specified by:
        lookup in interface java.rmi.registry.Registry
        Overrides:
        lookup in class sun.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 interface java.rmi.registry.Registry
        Overrides:
        bind in class sun.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 interface java.rmi.registry.Registry
        Overrides:
        unbind in class sun.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 interface java.rmi.registry.Registry
        Overrides:
        rebind in class sun.rmi.registry.RegistryImpl
        Throws:
        java.rmi.RemoteException
        java.rmi.AccessException
      • list

        public java.lang.String[] list()
                                throws java.rmi.RemoteException
        Specified by:
        list in interface java.rmi.registry.Registry
        Overrides:
        list in class sun.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.