|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.backends.task.Task
org.opends.server.tasks.InitializeTask
public class InitializeTask
This class provides an implementation of a Directory Server task that can be used to import data over the replication protocol from another server hosting the same replication domain.
| Constructor Summary | |
|---|---|
InitializeTask()
|
|
| Method Summary | |
|---|---|
Message |
getDisplayName()
Gets a message that identifies this type of task suitable for presentation to humans in monitoring tools. |
void |
initializeTask()
Performs any task-specific initialization that may be required before processing can start. |
protected TaskState |
runTask()
Performs the actual core processing for this task. |
void |
setLeft(long left)
Set the total number of entries still to be imported. |
void |
setTotal(long total)
Set the total number of entries expected to be imported. |
void |
updateTaskCompletionState(DirectoryException de)
Set the state for the current task. |
| Methods inherited from class org.opends.server.backends.task.Task |
|---|
addLogMessage, compareTo, execute, getActualStartTime, getAttributeDisplayName, getCompletionTime, getDependencyIDs, getFailedDependencyAction, getFinalTaskState, getLogMessages, getNotifyOnCompletionAddresses, getNotifyOnErrorAddresses, getOperation, getRecurringTaskID, getScheduledStartTime, getTaskEntry, getTaskEntryDN, getTaskID, getTaskInterruptState, getTaskState, initializeTaskInternal, interruptTask, isCancelled, isInterruptable, logError, replaceAttributeValue, setOperation, setTaskInterruptState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InitializeTask()
| Method Detail |
|---|
public Message getDisplayName()
getDisplayName in class Task
public void initializeTask()
throws DirectoryException
initializeTask in class TaskDirectoryException - If a problem occurs during initialization that
should be returned to the client.protected TaskState runTask()
runTask in class Taskpublic void updateTaskCompletionState(DirectoryException de)
de - When the new state is different from COMPLETED_SUCCESSFULLY
this is the exception that contains the cause of the failure.public void setTotal(long total)
total - The total number of entries.public void setLeft(long left)
left - The total number of entries to be imported.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||