Package org.opends.server.tasks
Class RebuildTask
- java.lang.Object
-
- org.opends.server.backends.task.Task
-
- org.opends.server.tasks.RebuildTask
-
- All Implemented Interfaces:
Comparable<Task>
public final class RebuildTask extends Task
This class provides an implementation of a Directory Server task that can be used to rebuild indexes in a backend.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opends.server.backends.task.Task
Task.WorkCounters
-
-
Field Summary
Fields Modifier and Type Field Description static String
OC_TASK_REBUILD_INDEX
Name of the object class associated to the rebuild index task.
-
Constructor Summary
Constructors Constructor Description RebuildTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalizableMessage
getDisplayName()
Gets a message that identifies this type of task suitable for presentation to humans in monitoring tools.void
initializeTask(Entry taskEntry)
Performs any task-specific initialization that may be required before processing can start.protected TaskState
runTask()
Performs the actual core processing for this task.-
Methods inherited from class org.opends.server.backends.task.Task
addLogMessage, addLogMessage, compareTo, execute, getAttributeDisplayName, getCompletionTime, getDependencyIDs, getFailedDependencyAction, getFinalTaskState, getLogMessages, getOperation, getRecurringTaskID, getScheduledStartTime, getServerContext, getTaskID, getTaskName, getTaskState, initializeTask, initializeTaskInternal, interruptTask, isInterruptible, isRecurring, replaceAttributes, sendNotificationEMailMessage, setCompletionTime, setEntriesLeftAndDone, setOperation, setTaskInterruptState, toString
-
-
-
-
Field Detail
-
OC_TASK_REBUILD_INDEX
public static final String OC_TASK_REBUILD_INDEX
Name of the object class associated to the rebuild index task.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDisplayName
public LocalizableMessage getDisplayName()
Description copied from class:Task
Gets a message that identifies this type of task suitable for presentation to humans in monitoring tools.- Overrides:
getDisplayName
in classTask
- Returns:
- name of task
-
initializeTask
public void initializeTask(Entry taskEntry) throws LdapException
Description copied from class:Task
Performs any task-specific initialization that may be required before processing can start. This default implementation does not do anything, but subclasses may override it as necessary. This method will be called at the time the task is scheduled, and therefore any failure in this method will be returned to the client.- Overrides:
initializeTask
in classTask
- Parameters:
taskEntry
- the task entry- Throws:
LdapException
- If a problem occurs during initialization that should be returned to the client.
-
-