public interface RuntimeConfigurationService extends ServiceLifecycle, OpssServiceInstance
ConfigurationManagementService#setContextName()
method), or the "name" attribute of a jpsContext defined in OOTB/specified jps-config.xml Listeners can be registered with the Service which would be notified when there is a change in an active configuration or when an active configuration is deactivated.OpssServiceInstance.State
JpsPersistable.Mode
Modifier and Type | Method and Description |
---|---|
void |
addConfigListener(ConfigListener listener) |
java.util.List<java.lang.String> |
getActiveContextConfigurationNames()
The information returned by this API should not be cached as the list of active context configurations may change with time.
|
ContextConfiguration |
getContextBootstrapConfiguration(ContextNameEncoder contextNameEncoder)
The Runtime Bootstrap Configuration View is generally a Normalized ReadOnly view of the persistence layer bootstrap configuration and is primarily intended to be used by the OPSS Runtime.
|
ContextConfiguration |
getContextConfiguration(ContextNameEncoder contextNameEncoder)
The Runtime Configuration view is generally a Normalized ReadOnly view of the persistence layer configuration and is primarily intended to be used by the OPSS Runtime.
|
ContextConfiguration |
getDefaultBootstrapConfiguration() |
ContextConfiguration |
getDefaultConfiguration() |
JpsConfiguration |
getJpsConfiguration() |
java.util.List<ServiceProviderDescriptor> |
getServiceProviders() |
void |
removeConfigListener(ConfigListener listener) |
postStart, preStart, restart, start, stop, terminate
getState
accept, getName, getServiceProvider
persist, refresh
java.util.List<ServiceProviderDescriptor> getServiceProviders()
ConfigurationRuntimeException
- if there was an error in fetching the configurationContextConfiguration getContextConfiguration(ContextNameEncoder contextNameEncoder) throws RegistrationException, ConfigurationException
contextNameEncoder
- Encoder instance that returns the encoded name of the context for which configuration is desired. desiredConfigurationException
- if there was an error in fetching the configuration or the configuration is not in ACTIVE stateRegistrationException
- if a configuration with the contextName is not registeredAccessControlException
- if the code does not have permission to invoke this operationjava.lang.IllegalArgumentException
- if the contextName was supplied as null;ContextConfiguration getContextBootstrapConfiguration(ContextNameEncoder contextNameEncoder) throws RegistrationException, ConfigurationException
contextNameEncoder
- Encoder instance that returns the encoded name of the context for which configuration is des ired.AccessControlException
- if the code does not have permission to invoke this operationConfigurationException
- if there was an error in fetching the configuration or the configuration is not in ACTIVE stateRegistrationException
- if a configuration with the contextName is not registeredjava.lang.IllegalArgumentException
- if the contextName was supplied as nulljava.util.List<java.lang.String> getActiveContextConfigurationNames() throws ConfigurationException
AccessControlException
- if the code does not have permission to invoke this operation.ConfigurationException
- if there was an error in fetching the list of active configurations.JpsConfiguration getJpsConfiguration()
RuntimeConfigurationServiceProvider.getConfigurationService()
method.void addConfigListener(ConfigListener listener) throws ConfigurationException
listener
- the listener to be notified for config ACTIVATION, DEACTIVATION and CHANGE eventsAccessControlException
- if the code does not have permission to invoke this operationConfigurationException
- if there was an error in registering the listenerjava.lang.IllegalArgumentException
- if the listener was supplied as null;void removeConfigListener(ConfigListener listener) throws ConfigurationException
listener
- the listener to be removed from the notification serviceConfigurationException
- if there was an error in un-registering the listener or if the listener was not registered.ContextConfiguration getDefaultBootstrapConfiguration()
ConfigurationRuntimeException
- if there was an error in fetching the configurationContextConfiguration getDefaultConfiguration()
ConfigurationRuntimeException
- if there was an error in fetching the configuration