@ConfigurationDescription(properties={@Property(name="LockTimeout",type=LONG,defaultValue=<error>,description="The time (in milliseconds) to wait for a of the cluster synchronisation database. You should use the same value as configured for the cluster service."),}) public class RegistryProviderDb extends AbstractADEPT2Service implements GlobalRegistryProvider
GlobalRegistryProvider retrieving the global registry URI from
the cluster (synchronisation) JDBC data source.AbstractADEPT2Service.ActiveSessions| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
clusterName
The name of the cluster of which to provide the global registry.
|
static java.lang.String |
CONF_CLUSTER_NAME
Configuration key specifying the name of the cluster of which to provide
the global registry.
|
static java.lang.String |
CONF_LOCK_TIMEOUT
Configuration key for the lock timeout.
|
protected long |
lockTimeout
The time in milliseconds to wait for the table lock before aborting.
|
CONF_CSV_LOGGING, configuration, logger, registry, runtimeRequiredServices, startupRequiredServices| Constructor and Description |
|---|
RegistryProviderDb(Configuration conf,
Registry registry)
Creates a new global registry provider retrieving the global registry URIs
from the cluster (synchronisation) JDBC data source.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.URI[] |
getGlobalRegistry(SessionToken session)
Gets the URIs of the current global registry.
|
_sessionActive, _sessionFinished, activeOrInvalidServiceStateException, changeLogContext, changeLogContext, changeLogContext, consoleLog, csvLoggingEnabled, getClassSpecificJulLogger, getDependencyRegistry, getLocalUris, getLogger, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, getUserCredentials, init, isActive, isSessionActive, isShutdown, logMethodEntry, logMethodEntry, logMethodEntry, logMethodExit, logMethodExit, ping, preShutdown, privilegeSession, privilegeThread, revertLogContextChanges, sessionActive, sessionActive, sessionActive, sessionActive, sessionFinished, sessionFinished, shutdown, signalShutdown, signalStart, start, unprivilegeThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, init, ping, preShutdown, shutdown, startpublic static final java.lang.String CONF_LOCK_TIMEOUT
public static final java.lang.String CONF_CLUSTER_NAME
protected final long lockTimeout
protected final java.lang.String clusterName
public RegistryProviderDb(Configuration conf, Registry registry)
conf - The configuration of this service.registry - The registry of this service.public java.net.URI[] getGlobalRegistry(SessionToken session) throws ServiceNotKnownException
GlobalRegistryProvidergetGlobalRegistry in interface GlobalRegistryProvidersession - 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.