Package org.opends.server.core
Class WorkQueueConfigManager
java.lang.Object
org.opends.server.core.WorkQueueConfigManager
- All Implemented Interfaces:
ConfigurationChangeListener<WorkQueueCfg>
public final class WorkQueueConfigManager
extends Object
implements ConfigurationChangeListener<WorkQueueCfg>
This class defines a utility that will be used to manage the Directory Server work queue.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkQueueConfigManager(ServerContext serverContext) Creates a new instance of this work queue config manager. -
Method Summary
Modifier and TypeMethodDescriptionapplyConfigurationChange(WorkQueueCfg configuration) Applies the configuration changes to this change listener.WorkQueue<? extends WorkQueueCfg>Initializes the Directory Server's work queue.booleanisConfigurationChangeAcceptable(WorkQueueCfg configuration, List<LocalizableMessage> unacceptableReasons) Indicates whether the proposed change to the configuration is acceptable to this change listener.
-
Constructor Details
-
WorkQueueConfigManager
Creates a new instance of this work queue config manager.- Parameters:
serverContext- The server context.
-
-
Method Details
-
initializeWorkQueue
public WorkQueue<? extends WorkQueueCfg> initializeWorkQueue() throws ConfigException, InitializationExceptionInitializes the Directory Server's work queue. This should only be called at server startup.- Returns:
- WorkQueue The initialized work queue that should be used by the server.
- Throws:
ConfigException- If a configuration problem causes the work queue initialization process to fail.InitializationException- If a problem occurs while initializing the work queue that is not related to the server configuration.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(WorkQueueCfg configuration, List<LocalizableMessage> unacceptableReasons) Description copied from interface:ConfigurationChangeListenerIndicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptablein interfaceConfigurationChangeListener<WorkQueueCfg>- Parameters:
configuration- The new configuration containing the changes.unacceptableReasons- A list that can be used to hold messages about why the provided configuration is not acceptable.- Returns:
- Returns
trueif the proposed change is acceptable, orfalseif it is not.
-
applyConfigurationChange
Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<WorkQueueCfg>- Parameters:
configuration- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-