Package org.opends.server.tasks
Class PurgeConflictsHistoricalTask
java.lang.Object
org.opends.server.backends.task.Task
org.opends.server.tasks.PurgeConflictsHistoricalTask
- All Implemented Interfaces:
Comparable<Task>
This class provides an implementation of a Directory Server task that can be used to purge the replication historical
informations stored in the user entries to solve conflicts.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opends.server.backends.task.Task
Task.WorkCounters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a message that identifies this type of task suitable for presentation to humans in monitoring tools.voidinitializeTask(Entry taskEntry) Performs any task-specific initialization that may be required before processing can start.protected TaskStaterunTask()Performs the actual core processing for this task.voidsetProgressStats(CSN lastCSN, int purgeCount) Set the last CSN purged and the count of purged values in order to monitor the historical purge.Methods inherited from class org.opends.server.backends.task.Task
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
-
Constructor Details
-
PurgeConflictsHistoricalTask
public PurgeConflictsHistoricalTask()
-
-
Method Details
-
getDisplayName
Description copied from class:TaskGets a message that identifies this type of task suitable for presentation to humans in monitoring tools.- Overrides:
getDisplayNamein classTask- Returns:
- name of task
-
initializeTask
Description copied from class:TaskPerforms 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:
initializeTaskin classTask- Parameters:
taskEntry- the task entry- Throws:
LdapException- If a problem occurs during initialization that should be returned to the client.
-
runTask
Description copied from class:TaskPerforms the actual core processing for this task. This method should not return until all processing associated with this task has completed. -
setProgressStats
Set the last CSN purged and the count of purged values in order to monitor the historical purge.- Parameters:
lastCSN- the last CSN purged.purgeCount- the count of purged values.
-