Class TaskEntry
java.lang.Object
org.opends.server.tools.tasks.TaskEntry
Processes information from a task entry from the directory and provides accessors for attribute information. In some
cases the data is formatted into more human-friendly formats.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the human-friendly start time string.Returns the name of the class implementing the task represented here.Returns the email messages that will be used for notifications when the task completes.Returns the human-friendly completion time string.Returns the IDs of tasks upon which this task depends.Returns the description of this task.getDN()Returns the DN of the wrapped entry.Returns the email messages that will be used for notifications when the task encounters an error.Returns the action to take if this task fails..getId()Returns the task's ID.Returns the logs associated with this task's execution.Returns the human-friendly scheduled time string.Returns the recurring schedule tab in a string format.getState()Returns the state of the task as a string.Gets a mapping of attributes that are specific to the implementing task as opposed to the superior, or base, task.Returns the task state.getType()Returns a user presentable string indicating the type of this task.inthashCode()booleanReturns whether this task supports being canceled.booleanisDone()Returns whether this task is done.static InstantparseTimeString(String timeString) Parses a date time from its string representation.static Comparator<TaskEntry> Returns a task entry comparator that compares the scheduled start time of two task entries.
-
Constructor Details
-
TaskEntry
-
-
Method Details
-
hashCode
-
equals
-
getDN
-
getId
-
getClassName
Returns the name of the class implementing the task represented here.- Returns:
- the name of the class implementing the task represented here
-
getState
Returns the state of the task as a string.- Returns:
- the state of the task as a string
-
getScheduledStartTime
Returns the human-friendly scheduled time string.- Returns:
- the human-friendly scheduled time string
-
getActualStartTime
Returns the human-friendly start time string.- Returns:
- the human-friendly start time string
-
getCompletionTime
Returns the human-friendly completion time string.- Returns:
- the human-friendly completion time string
-
getScheduleTab
Returns the recurring schedule tab in a string format.- Returns:
- the recurring schedule tab in a string format
-
getDependencyIds
-
getFailedDependencyAction
Returns the action to take if this task fails..- Returns:
- the action to take if this task fails.
-
getLogMessages
Returns the logs associated with this task's execution.- Returns:
- the logs associated with this task's execution
-
getCompletionNotificationEmailAddresses
-
getErrorNotificationEmailAddresses
-
getType
Returns a user presentable string indicating the type of this task.- Returns:
- a user presentable string indicating the type of this task
-
getDescription
Returns the description of this task.- Returns:
- the description of this task
-
isCancelable
public boolean isCancelable()Returns whether this task supports being canceled.- Returns:
- whether this task supports being canceled
-
getTaskSpecificAttributeValuePairs
Gets a mapping of attributes that are specific to the implementing task as opposed to the superior, or base, task.- Returns:
- mapping of attribute field labels to lists of string values for each field.
-
getTaskState
-
isDone
public boolean isDone()Returns whether this task is done.- Returns:
- whether this task is done
-
parseTimeString
Parses a date time from its string representation.- Parameters:
timeString- the string to parse- Returns:
- the date
- Throws:
DateTimeParseException- if parsing fails
-
scheduledStartTimeComparator
Returns a task entry comparator that compares the scheduled start time of two task entries.- Returns:
- a task entry comparator that compares the scheduled start time of two task entries
-