Interface GlobalRegistryProvider
-
- All Superinterfaces:
ADEPT2Service
- All Known Implementing Classes:
RegistryProviderConf
,RegistryProviderDb
public interface GlobalRegistryProvider extends ADEPT2Service
An optional service for providing the global registry URI to theServiceRegistry
. 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URI[]
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 Detail
-
getGlobalRegistry
URI[] getGlobalRegistry(SessionToken session) throws ServiceNotKnownException
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, aServiceNotKnownException
will be thrown.
-
-