Package org.opends.server.tools.tasks
Interface TaskScheduleInformation
-
public interface TaskScheduleInformationInterface for tools that are capable of scheduling a task remotely through the task backend.- See Also:
TaskClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddTaskAttributes(Entry taskEntry)Adds utility specific attributes to the provided task entry that is added to the task backend.Collection<String>getDependencyIds()Gets a list of task IDs upon which this task is dependent.default StringgetDescription()Gets the description of this task ornullif there is none.FailedDependencyActiongetFailedDependencyAction()Gets the action to take should one of the dependent task fail.Collection<String>getNotifyUponCompletionEmailAddresses()Gets a list of email address to which an email will be sent when this task completes.Collection<String>getNotifyUponErrorEmailAddresses()Gets a list of email address to which an email will be sent if this task encounters an error during execution.StringgetRecurringDateTime()Gets the date/time pattern for recurring task schedule.InstantgetStartDateTime()Gets the date at which this task should be scheduled to start.Class<?>getTaskClass()Gets the Class that implements the utility to execute.StringgetTaskId()Gets an arbitrary task id assigned to this task.StringgetTaskObjectclass()Gets the objectclass used to represent scheduled instances of this utility in the task backend.
-
-
-
Method Detail
-
addTaskAttributes
void addTaskAttributes(Entry taskEntry)
Adds utility specific attributes to the provided task entry that is added to the task backend.- Parameters:
taskEntry- The taskEntryto update.
-
getTaskObjectclass
String getTaskObjectclass()
Gets the objectclass used to represent scheduled instances of this utility in the task backend.- Returns:
- String representation of this utilities objectclass
-
getTaskClass
Class<?> getTaskClass()
Gets the Class that implements the utility to execute.- Returns:
- class of the tasks implementation
-
getStartDateTime
Instant getStartDateTime()
Gets the date at which this task should be scheduled to start.- Returns:
- date/time at which the task should be scheduled
-
getTaskId
String getTaskId()
Gets an arbitrary task id assigned to this task.- Returns:
- assigned task id if any or
nullotherwise.
-
getRecurringDateTime
String getRecurringDateTime()
Gets the date/time pattern for recurring task schedule.- Returns:
- recurring date/time pattern at which the task should be scheduled.
-
getDependencyIds
Collection<String> getDependencyIds()
Gets a list of task IDs upon which this task is dependent.- Returns:
- list of task IDs
-
getFailedDependencyAction
FailedDependencyAction getFailedDependencyAction()
Gets the action to take should one of the dependent task fail.- Returns:
- action to take
-
getNotifyUponCompletionEmailAddresses
Collection<String> getNotifyUponCompletionEmailAddresses()
Gets a list of email address to which an email will be sent when this task completes.- Returns:
- list of email addresses
-
getNotifyUponErrorEmailAddresses
Collection<String> getNotifyUponErrorEmailAddresses()
Gets a list of email address to which an email will be sent if this task encounters an error during execution.- Returns:
- list of email addresses
-
getDescription
default String getDescription()
Gets the description of this task ornullif there is none.- Returns:
- The description of this task or
nullif there is none.
-
-