Interface GlobalRegistryProvider
- All Superinterfaces:
ADEPT2Service
- All Known Implementing Classes:
RegistryProviderConf,RegistryProviderDb
An optional service for providing the global registry URI to the
ServiceRegistry. If this service
is present, the service registry will use it to retrieve the global registry
URI dynamically. This allows for changing the global registry (the main
AristaFlow server) transparently for the clients, e.g. with different cluster
nodes. Where the implementation of this service retrieves it from, depends on
the environment. This may be a shared database or UDP broadcasts.
Note that this is an early service started while bootstrapping. So take care to declare the used services properly. And do not rely on Core-services or the global security manager. Additionally, provided session tokens may stem from the local security manager!
-
Method Summary
Modifier and TypeMethodDescriptionURI[]getGlobalRegistry(SessionToken session) Gets the URIs of the current global registry.Methods inherited from interface de.aristaflow.adept2.base.service.ADEPT2Service
getLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, init, ping, preShutdown, shutdown, start
-
Method Details
-
getGlobalRegistry
Gets the URIs of the current global registry.- Parameters:
session- The session which is used to check for access rights on this method.- Returns:
- The URIs of the current global registry.
- Throws:
ServiceNotKnownException- If there is currently no global registry, aServiceNotKnownExceptionwill be thrown.
-