| | |
| | | import org.forgerock.opendj.ldap.SearchScope.Enum; |
| | | import org.forgerock.opendj.ldap.schema.MatchingRule; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.meta.LocalDBVLVIndexCfgDefn.Scope; |
| | | import org.opends.server.admin.std.server.LocalDBVLVIndexCfg; |
| | | import org.opends.server.admin.std.meta.BackendVLVIndexCfgDefn.Scope; |
| | | import org.opends.server.admin.std.server.BackendVLVIndexCfg; |
| | | import org.opends.server.backends.pluggable.spi.Cursor; |
| | | import org.opends.server.backends.pluggable.spi.ReadableStorage; |
| | | import org.opends.server.backends.pluggable.spi.Storage; |
| | |
| | | * to its own key. |
| | | */ |
| | | public class VLVIndex extends DatabaseContainer |
| | | implements ConfigurationChangeListener<LocalDBVLVIndexCfg> |
| | | implements ConfigurationChangeListener<BackendVLVIndexCfg> |
| | | { |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | |
| | | private boolean rebuildRunning; |
| | | |
| | | /** The VLV vlvIndex configuration. */ |
| | | private LocalDBVLVIndexCfg config; |
| | | private BackendVLVIndexCfg config; |
| | | |
| | | private DN baseDN; |
| | | private SearchFilter filter; |
| | |
| | | * @throws ConfigException if a error occurs while reading the VLV index |
| | | * configuration |
| | | */ |
| | | public VLVIndex(LocalDBVLVIndexCfg config, State state, Storage env, |
| | | public VLVIndex(BackendVLVIndexCfg config, State state, Storage env, |
| | | EntryContainer entryContainer, ReadableStorage txn) |
| | | throws StorageRuntimeException, ConfigException |
| | | { |
| | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public synchronized boolean isConfigurationChangeAcceptable( |
| | | LocalDBVLVIndexCfg cfg, |
| | | BackendVLVIndexCfg cfg, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | | try |
| | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public synchronized ConfigChangeResult applyConfigurationChange(final LocalDBVLVIndexCfg cfg) |
| | | public synchronized ConfigChangeResult applyConfigurationChange(final BackendVLVIndexCfg cfg) |
| | | { |
| | | try |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | private synchronized void applyConfigurationChange0(WriteableStorage txn, LocalDBVLVIndexCfg cfg, |
| | | private synchronized void applyConfigurationChange0(WriteableStorage txn, BackendVLVIndexCfg cfg, |
| | | ConfigChangeResult ccr) |
| | | { |
| | | // Update base DN only if changed.. |