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 ConfigChangeResult
applyConfigurationChange(WorkQueueCfg configuration)
Applies the configuration changes to this change listener.WorkQueue
initializeWorkQueue()
Initializes the Directory Server's work queue.boolean
isConfigurationChangeAcceptable(WorkQueueCfg configuration, List<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<LocalizableMessage> unacceptableReasons)
Description copied from interface:ConfigurationChangeListener
Indicates whether the proposed change to the configuration is acceptable to this change listener.- Specified by:
isConfigurationChangeAcceptable
in 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
true
if the proposed change is acceptable, orfalse
if it is not.
-
applyConfigurationChange
public ConfigChangeResult applyConfigurationChange(WorkQueueCfg configuration)
Description copied from interface:ConfigurationChangeListener
Applies the configuration changes to this change listener.- Specified by:
applyConfigurationChange
in interfaceConfigurationChangeListener<WorkQueueCfg>
- Parameters:
configuration
- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-
-