Package org.opends.server.core
Class WorkQueueConfigManager
- java.lang.Object
-
- org.opends.server.core.WorkQueueConfigManager
-
- All Implemented Interfaces:
ConfigurationChangeListener<WorkQueueCfg>
public 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
Constructors Constructor Description WorkQueueConfigManager(ServerContext serverContext)Creates a new instance of this work queue config manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigChangeResultapplyConfigurationChange(WorkQueueCfg configuration)Applies the configuration changes to this change listener.WorkQueueinitializeWorkQueue()Initializes the Directory Server's work queue.booleanisConfigurationChangeAcceptable(WorkQueueCfg configuration, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)Indicates whether the proposed change to the configuration is acceptable to this change listener.
-
-
-
Constructor Detail
-
WorkQueueConfigManager
public WorkQueueConfigManager(ServerContext serverContext)
Creates a new instance of this work queue config manager.- Parameters:
serverContext- The server context.
-
-
Method Detail
-
initializeWorkQueue
public WorkQueue initializeWorkQueue() throws ConfigException, InitializationException
Initializes 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<org.forgerock.i18n.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
public ConfigChangeResult applyConfigurationChange(WorkQueueCfg configuration)
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.
-
-