Class Hub.Accessor

java.lang.Object
org.praxislive.hub.Hub.Accessor
Enclosing class:
Hub

public final class Hub.Accessor extends Object
Provides access to control of the RootHub. An instance of this class is passed to the core root factory to provide private access to the RootHub for the core root implementation.
  • Method Details

    • registerRootController

      public boolean registerRootController(String id, Root.Controller controller)
      Register the root controller under the provided id. This method does not start the root.
      Parameters:
      id - root id
      controller - root controller
      Returns:
      true on success
    • unregisterRootController

      public Root.Controller unregisterRootController(String id)
      Unregister the root controller with the provided id. The registered controller is returned, if it exists. This method does not terminate the root.
      Parameters:
      id - root id
      Returns:
      controller or null
    • getRootController

      public Root.Controller getRootController(String id)
      Get the root controller with the provided id, if one is registered.
      Parameters:
      id - root id
      Returns:
      controller or null
    • getRootIDs

      public String[] getRootIDs()
      Get a list of the registered root IDs.
      Returns:
      registered root IDs
    • registerService

      public void registerService(Class<? extends Service> service, ComponentAddress provider)
      Register a service provider.
      Parameters:
      service - implemented service
      provider - service address
    • getRootHub

      public RootHub getRootHub()
      Get the RootHub implementation.
      Returns:
      root hub