|
|||||||||
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.RestoreTask
public class RestoreTask
This class provides an implementation of a Directory Server task that can be used to restore a binary backup of a Directory Server backend.
Constructor Summary | |
---|---|
RestoreTask()
|
Method Summary | |
---|---|
Message |
getAttributeDisplayName(java.lang.String name)
Given an attribute type name returns and locale sensitive representation. |
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. |
void |
interruptTask(TaskState interruptState,
Message interruptReason)
Performs any necessary processing to prematurely interrupt the execution of this task. |
boolean |
isInterruptable()
Indicates whether or not this task is interruptable or not. |
protected TaskState |
runTask()
Performs the actual core processing for this task. |
Methods inherited from class org.opends.server.backends.task.Task |
---|
addLogMessage, compareTo, execute, getActualStartTime, getCompletionTime, getDependencyIDs, getFailedDependencyAction, getFinalTaskState, getLogMessages, getNotifyOnCompletionAddresses, getNotifyOnErrorAddresses, getOperation, getRecurringTaskID, getScheduledStartTime, getTaskEntry, getTaskEntryDN, getTaskID, getTaskInterruptState, getTaskState, initializeTaskInternal, isCancelled, 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 RestoreTask()
Method Detail |
---|
public Message getDisplayName()
getDisplayName
in class Task
public Message getAttributeDisplayName(java.lang.String name)
getAttributeDisplayName
in class Task
name
- of an attribute type associated with the object
class that represents this entry in the directory
public void initializeTask() throws DirectoryException
initializeTask
in class Task
DirectoryException
- If a problem occurs during initialization that
should be returned to the client.public void interruptTask(TaskState interruptState, Message interruptReason)
Task.setTaskInterruptState(TaskState)
if the interruption is accepted
by this task.
interruptTask
in class Task
interruptState
- The state to use for the task if it is
successfully interrupted.interruptReason
- A human-readable explanation for the cancellation.public boolean isInterruptable()
isInterruptable
in class Task
protected TaskState runTask()
runTask
in class Task
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |