org.opends.server.backends.jeb
Class EntryContainer.AttributeJEIndexCfgManager

java.lang.Object
  extended by org.opends.server.backends.jeb.EntryContainer.AttributeJEIndexCfgManager
All Implemented Interfaces:
ConfigurationAddListener<LocalDBIndexCfg>, ConfigurationDeleteListener<LocalDBIndexCfg>
Enclosing class:
EntryContainer

public class EntryContainer.AttributeJEIndexCfgManager
extends java.lang.Object
implements ConfigurationAddListener<LocalDBIndexCfg>, ConfigurationDeleteListener<LocalDBIndexCfg>

This class is responsible for managing the configuraiton for attribute indexes used within this entry container.


Constructor Summary
EntryContainer.AttributeJEIndexCfgManager()
           
 
Method Summary
 ConfigChangeResult applyConfigurationAdd(LocalDBIndexCfg cfg)
          Adds a new configuration to this add listener.
 ConfigChangeResult applyConfigurationDelete(LocalDBIndexCfg cfg)
          Deletes an existing configuration from this delete listener.
 boolean isConfigurationAddAcceptable(LocalDBIndexCfg cfg, java.util.List<Message> unacceptableReasons)
          Indicates whether the proposed addition of a new configuration is acceptable to this add listener.
 boolean isConfigurationDeleteAcceptable(LocalDBIndexCfg cfg, java.util.List<Message> unacceptableReasons)
          Indicates whether the proposed deletion of an existing configuration is acceptable to this delete listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryContainer.AttributeJEIndexCfgManager

public EntryContainer.AttributeJEIndexCfgManager()
Method Detail

isConfigurationAddAcceptable

public boolean isConfigurationAddAcceptable(LocalDBIndexCfg cfg,
                                            java.util.List<Message> unacceptableReasons)
Indicates whether the proposed addition of a new configuration is acceptable to this add listener.

Specified by:
isConfigurationAddAcceptable in interface ConfigurationAddListener<LocalDBIndexCfg>
Parameters:
cfg - The configuration that will be added.
unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
Returns:
Returns true if the proposed addition is acceptable, or false if it is not.

applyConfigurationAdd

public ConfigChangeResult applyConfigurationAdd(LocalDBIndexCfg cfg)
Adds a new configuration to this add listener.

Specified by:
applyConfigurationAdd in interface ConfigurationAddListener<LocalDBIndexCfg>
Parameters:
cfg - The configuration that will be added.
Returns:
Returns information about the result of adding the configuration.

isConfigurationDeleteAcceptable

public boolean isConfigurationDeleteAcceptable(LocalDBIndexCfg cfg,
                                               java.util.List<Message> unacceptableReasons)
Indicates whether the proposed deletion of an existing configuration is acceptable to this delete listener.

Specified by:
isConfigurationDeleteAcceptable in interface ConfigurationDeleteListener<LocalDBIndexCfg>
Parameters:
cfg - The configuration that will be deleted.
unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
Returns:
Returns true if the proposed deletion is acceptable, or false if it is not.

applyConfigurationDelete

public ConfigChangeResult applyConfigurationDelete(LocalDBIndexCfg cfg)
Deletes an existing configuration from this delete listener.

Specified by:
applyConfigurationDelete in interface ConfigurationDeleteListener<LocalDBIndexCfg>
Parameters:
cfg - The existing configuration that will be deleted.
Returns:
Returns information about the result of deleting the configuration.