Class EntryContainer
- java.lang.Object
-
- org.opends.server.backends.pluggable.EntryContainer
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ConfigurationChangeListener<PluggableBackendCfg>,SuffixContainer
public class EntryContainer extends Object implements SuffixContainer, ConfigurationChangeListener<PluggableBackendCfg>
Storage container for LDAP entries. Each base DN of a backend is given its own entry container. The entry container is the object that implements the guts of the backend API methods for LDAP operations.
-
-
Field Summary
-
Fields inherited from interface org.opends.server.backends.pluggable.SuffixContainer
ATTR_DEBUG_SEARCH_INDEX, DN2ID_INDEX_NAME, ID2CHILDREN_COUNT_NAME, ID2CHILDREN_INDEX_NAME, ID2ENTRY_INDEX_NAME, ID2SUBTREE_INDEX_NAME, REFERRAL_INDEX_NAME, STATE_INDEX_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigChangeResultapplyConfigurationChange(PluggableBackendCfg cfg)Applies the configuration changes to this change listener.voidclear()Clear the contents of this entry container.voidclose()Closes the entry container.DNgetBaseDN()Returns the baseDN that this suffix container is responsible for.booleanisConfigurationChangeAcceptable(PluggableBackendCfg cfg, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)Indicates whether the proposed change to the configuration is acceptable to this change listener.StringtoString()
-
-
-
Method Detail
-
close
public void close() throws StorageRuntimeExceptionCloses the entry container.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
StorageRuntimeException- If an error occurs in the storage.
-
getBaseDN
public DN getBaseDN()
Description copied from interface:SuffixContainerReturns the baseDN that this suffix container is responsible for.- Specified by:
getBaseDNin interfaceSuffixContainer- Returns:
- the baseDN that this suffix container is responsible for
-
isConfigurationChangeAcceptable
public boolean isConfigurationChangeAcceptable(PluggableBackendCfg cfg, 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:
cfg- 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 cfg)
Description copied from interface:ConfigurationChangeListenerApplies the configuration changes to this change listener.- Specified by:
applyConfigurationChangein interfaceConfigurationChangeListener<PluggableBackendCfg>- Parameters:
cfg- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-
clear
public void clear() throws StorageRuntimeExceptionClear the contents of this entry container.- Throws:
StorageRuntimeException- If an error occurs while removing the entry container.
-
-