java.lang.Object
org.praxislive.hub.Hub.Accessor
- Enclosing class:
Hub
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 Summary
Modifier and TypeMethodDescriptionGet the root controller with the provided id, if one is registered.Get theRootHubimplementation.String[]Get a list of the registered root IDs.booleanregisterRootController(String id, Root.Controller controller) Register the root controller under the provided id.voidregisterService(Class<? extends Service> service, ComponentAddress provider) Register a service provider.Unregister the root controller with the provided id.
-
Method Details
-
registerRootController
Register the root controller under the provided id. This method does not start the root.- Parameters:
id- root idcontroller- root controller- Returns:
- true on success
-
unregisterRootController
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
Get the root controller with the provided id, if one is registered.- Parameters:
id- root id- Returns:
- controller or null
-
getRootIDs
Get a list of the registered root IDs.- Returns:
- registered root IDs
-
registerService
Register a service provider.- Parameters:
service- implemented serviceprovider- service address
-
getRootHub
Get theRootHubimplementation.- Returns:
- root hub
-