org.opends.server.backends.jeb
Class RebuildJob
java.lang.Object
org.opends.server.backends.jeb.RebuildJob
public class RebuildJob
- extends java.lang.Object
Runs a index rebuild process on the backend. Each index selected for rebuild
will be done from scratch by first clearing out the database for that index.
Different threads will be used to rebuild each index.
The rebuild process can run concurrently with the backend online and
performing write and read operations. However, during the rebuild process,
other reader and writer activeThreads might notice inconsistencies in index
databases being rebuilt. They can safely ignore these inconsistencies as long
as a rebuild is in progress.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RebuildJob
public RebuildJob(RebuildConfig rebuildConfig)
- Construct a new rebuild job.
- Parameters:
rebuildConfig
- The configuration to use for this rebuild job.
rebuildBackend
public void rebuildBackend(RootContainer rootContainer)
throws DirectoryException,
com.sleepycat.je.DatabaseException,
JebException
- Initiate the rebuild process on a backend.
- Parameters:
rootContainer
- The root container to rebuild in.
- Throws:
DirectoryException
- If an error occurs during the rebuild process.
com.sleepycat.je.DatabaseException
- If a JE database error occurs during the rebuild
process.
JebException
- If a JE database error occurs during the rebuild
process.