Class RegistryService

  • All Implemented Interfaces:
    de.willuhn.boot.Bootable

    public class RegistryService
    extends java.lang.Object
    implements de.willuhn.boot.Bootable
    Service, der die RMI-Registry startet.
    • Constructor Summary

      Constructors 
      Constructor Description
      RegistryService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class[] depends()  
      java.rmi.server.RMISocketFactory getSocketFactory()
      Liefert die aktuelle RMI-Socket-Factory.
      void init​(de.willuhn.boot.BootLoader loader, de.willuhn.boot.Bootable caller)  
      void rebind​(java.lang.String name, java.rmi.Remote remote)
      Bindet ein Remote-Objekt an die Registry.
      void shutdown()  
      void unbind​(java.lang.String name)
      Entfernt ein Remote-Objekt aus der Registry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegistryService

        public RegistryService()
    • Method Detail

      • depends

        public java.lang.Class[] depends()
        Specified by:
        depends in interface de.willuhn.boot.Bootable
        See Also:
        Bootable.depends()
      • init

        public void init​(de.willuhn.boot.BootLoader loader,
                         de.willuhn.boot.Bootable caller)
                  throws de.willuhn.boot.SkipServiceException
        Specified by:
        init in interface de.willuhn.boot.Bootable
        Throws:
        de.willuhn.boot.SkipServiceException
        See Also:
        Bootable.init(de.willuhn.boot.BootLoader, de.willuhn.boot.Bootable)
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface de.willuhn.boot.Bootable
        See Also:
        Bootable.shutdown()
      • rebind

        public void rebind​(java.lang.String name,
                           java.rmi.Remote remote)
                    throws java.lang.Exception
        Bindet ein Remote-Objekt an die Registry.
        Parameters:
        name - Lookup-Name.
        remote - Instanz des Remote-Objektes.
        Throws:
        java.lang.Exception
      • unbind

        public void unbind​(java.lang.String name)
                    throws java.lang.Exception
        Entfernt ein Remote-Objekt aus der Registry.
        Parameters:
        name - der Lookup-Name.
        Throws:
        java.lang.Exception
      • getSocketFactory

        public java.rmi.server.RMISocketFactory getSocketFactory()
        Liefert die aktuelle RMI-Socket-Factory.
        Returns:
        aktuelle RMI-Socket-Factory.