public class InitializeTask extends Task
| Constructor and Description |
|---|
InitializeTask() |
| Modifier and Type | Method and Description |
|---|---|
LocalizableMessage |
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.
|
addLogMessage, addLogMessage, compareTo, execute, getActualStartTime, getAttributeDisplayName, getCompletionTime, getDependencyIDs, getFailedDependencyAction, getFinalTaskState, getLogMessages, getNotifyOnCompletionAddresses, getNotifyOnErrorAddresses, getOperation, getRecurringTaskID, getScheduledStartTime, getServerContext, getTaskEntry, getTaskEntryDN, getTaskID, getTaskInterruptState, getTaskState, initializeTaskInternal, interruptTask, isCancelled, isInterruptable, isRecurring, replaceAttributeValue, sendNotificationEMailMessage, setCompletionTime, setOperation, setTaskInterruptStatepublic InitializeTask()
public LocalizableMessage getDisplayName()
getDisplayName in class Taskpublic void initializeTask() throws DirectoryException
initializeTask in class TaskDirectoryException - If a problem occurs during initialization that
should be returned to the client.protected TaskState runTask()
public 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.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.