Class RootContainer
- java.lang.Object
-
- org.opends.server.backends.pluggable.RootContainer
-
- All Implemented Interfaces:
ConfigurationChangeListener<PluggableBackendCfg>
public class RootContainer extends Object implements ConfigurationChangeListener<PluggableBackendCfg>
Wrapper class for a backend "container". Root container holds all the entry containers for each base DN. It also maintains all the openings and closings of the entry containers.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigChangeResultapplyConfigurationChange(PluggableBackendCfg configuration)Applies the configuration changes to this change listener.Collection<EntryContainer>getEntryContainers()Return all the entry containers in this root container.booleanisConfigurationChangeAcceptable(PluggableBackendCfg configuration, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)Indicates whether the proposed change to the configuration is acceptable to this change listener.voidresetNextEntryID()Resets the next entry ID counter to zero.
-
-
-
Method Detail
-
getEntryContainers
public Collection<EntryContainer> getEntryContainers()
Return all the entry containers in this root container.- Returns:
- The entry containers in this root container.
-
resetNextEntryID
public void resetNextEntryID()
Resets the next entry ID counter to zero. This should only be used after clearing all trees.
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(PluggableBackendCfg 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<PluggableBackendCfg>- 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(PluggableBackendCfg configuration)
Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<PluggableBackendCfg>- Parameters:
configuration- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-
-