Package org.opends.server.backends
Class RebuildConfig
java.lang.Object
org.opends.server.backends.RebuildConfig
Configuration for the indexType rebuild process.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Identifies how indexes will be selected for rebuild. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRebuildIndex
(String index) Add an index to be rebuilt into the configuration.Get the base DN to rebuild.Get the list of indexes to rebuild in this configuration.Returns the rebuild mode.Return the temporary directory path.boolean
Test if this rebuild config includes any system indexes to rebuild.boolean
Returnstrue
if indexes should be forcefully marked as valid even if they are currently degraded.void
isClearDegradedState
(boolean isClearDegradedState) Sets the 'clear degraded index' status.void
Sets the rebuild mode.void
setTmpDirectory
(String path) Set the temporary directory to the specified path.
-
Constructor Details
-
RebuildConfig
Builds a new rebuild config object.- Parameters:
baseDN
- The base DN to rebuild.
-
-
Method Details
-
getBaseDN
Get the base DN to rebuild.- Returns:
- The base DN to rebuild.
-
getRebuildList
Get the list of indexes to rebuild in this configuration.- Returns:
- The list of indexes to rebuild.
-
addRebuildIndex
Add an index to be rebuilt into the configuration. Duplicate index names will be ignored. Adding an index that causes a mix of complete and partial rebuild for the same attribute index in the configuration will remove the partial and just keep the complete attribute index name. (ie. uid and uid.presence).- Parameters:
index
- The index to add.
-
includesSystemIndex
public boolean includesSystemIndex()Test if this rebuild config includes any system indexes to rebuild.- Returns:
- True if rebuilding of system indexes are included. False otherwise.
-
setTmpDirectory
Set the temporary directory to the specified path.- Parameters:
path
- The path to set the temporary directory to.
-
getTmpDirectory
Return the temporary directory path.- Returns:
- The temporary directory string.
-
setRebuildMode
Sets the rebuild mode.- Parameters:
mode
- The new rebuild mode.
-
getRebuildMode
Returns the rebuild mode.- Returns:
- The rebuild mode.
-
isClearDegradedState
public boolean isClearDegradedState()Returnstrue
if indexes should be forcefully marked as valid even if they are currently degraded.- Returns:
true
if index should be forcefully marked as valid.
-
isClearDegradedState
public void isClearDegradedState(boolean isClearDegradedState) Sets the 'clear degraded index' status.- Parameters:
isClearDegradedState
-true
if indexes should be forcefully marked as valid even if they are currently degraded.
-