public abstract class AbstractConfigurableService extends AbstractADEPT2Service implements ConfigurableService
ConfigurableService.getChangeableConfigurationKeys(SessionToken)) and
setting the
configuration values since both depends on the semantic of the configuration
keys.AbstractADEPT2Service.ActiveSessionsCONF_CSV_LOGGING, configuration, logger, registry, runtimeRequiredServices, startupRequiredServicesCONF_RUNTIME_CONF_PREFIX| Constructor and Description |
|---|
AbstractConfigurableService(Configuration configuration,
Registry registry,
java.lang.Class<?> cls)
Creates a configurable service with the designated configuration, the
designated registry, a logger for this and assuming that there are no other
services required.
|
AbstractConfigurableService(Configuration configuration,
Registry registry,
java.lang.String[] startupRequiredServices,
java.lang.String[] runtimeRequiredServices,
java.lang.Class<?> cls)
Creates a configurable service with the designated configuration, the
designated registry, a logger for this and the designated required
services.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration(SessionToken session)
Gets the configuration of this service for displaying it.
|
_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, waitgetChangeableConfigurationKeys, setConfigurationValuegetLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, init, ping, preShutdown, shutdown, startpublic AbstractConfigurableService(Configuration configuration, Registry registry, java.lang.Class<?> cls)
configuration - The configuration of this service that can be changed
(at least parts of it) at runtime.registry - The registry to be used for accessing services by this
service. This is provided as parameter to the constructor when
creating a service.cls - The class specifying the name of the logger of this service.public AbstractConfigurableService(Configuration configuration, Registry registry, java.lang.String[] startupRequiredServices, java.lang.String[] runtimeRequiredServices, java.lang.Class<?> cls)
configuration - The configuration of this service that can be changed
(at least parts of it) at runtime.registry - The registry to be used for accessing services by this
service. This is provided as parameter to the constructor when
creating a service.startupRequiredServices - The service type names of services required
at startup time (in AbstractADEPT2Service.init(java.net.URI[], java.net.URI[])
and AbstractADEPT2Service.start()).runtimeRequiredServices - The service type names of services required
at runtime (after startup time).cls - The class specifying the name of the logger of this service.public Configuration getConfiguration(SessionToken session)
ConfigurableServiceConfigurableService.setConfigurationValue(SessionToken, String, String) for changing
configuration values.
Note to implementors: As stated above return a copy of the configuration and not the configuration itself. Additionally make sure the returned configuration is serialisable since it may be transfered to a remote machine.
getConfiguration in interface ConfigurableServicesession - The session which is used to check for access rights on this
method.