public interface GlobalRegistryProvider extends ADEPT2Service
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!
| Modifier and Type | Method and Description |
|---|---|
java.net.URI[] |
getGlobalRegistry(SessionToken session)
Gets the URIs of the current global registry.
|
getLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, init, ping, preShutdown, shutdown, startjava.net.URI[] getGlobalRegistry(SessionToken session) throws ServiceNotKnownException
session - The session which is used to check for access rights on this
method.ServiceNotKnownException - If there is currently no global registry,
a ServiceNotKnownException will be thrown.