Package org.opends.server.tools.tasks
Class TaskScheduleUserData
java.lang.Object
org.opends.server.tools.tasks.TaskScheduleUserData
A generic data structure that contains the data that the user provided to schedule a task.
The main difference with
The main difference with
TaskScheduleInformation
is that this class is completely agnostic of the execution.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a list of task IDs upon which this task is dependent.Gets the action to take should one of the dependent task fail.Gets a list of email address to which an email will be sent when this task completes.Gets the list of email address to which an email will be sent if this task encounters an error during execution.Gets the date/time pattern for recurring task schedule.Gets the date at which this task should be scheduled to start.boolean
Whether the arguments provided by the user, indicate that the task should be executed immediately.void
setDependencyIds
(Collection<String> dependencyIds) Sets the list of task IDs upon which this task is dependent.void
setFailedDependencyAction
(FailedDependencyAction failedDependencyAction) Sets the action to take should one of the dependent task fail.void
setNotifyUponCompletionEmailAddresses
(Collection<String> notifyUponCompletionEmailAddresses) Sets the list of email address to which an email will be sent when this task completes.void
setNotifyUponErrorEmailAddresses
(Collection<String> notifyUponErrorEmailAddresses) Sets the list of email address to which an email will be sent if this task encounters an error during execution.void
setRecurringDateTime
(String recurringDateTime) Sets the date/time pattern for recurring task schedule.void
setStartDate
(Instant startDate) Sets the date at which this task should be scheduled to start.void
setStartNow
(boolean startNow) Sets whether the arguments provided by the user, indicate that the task should be executed immediately.
-
Constructor Details
-
TaskScheduleUserData
public TaskScheduleUserData()
-
-
Method Details
-
isStartNow
public boolean isStartNow()Whether the arguments provided by the user, indicate that the task should be executed immediately.- Returns:
true
if the task must be executed immediately andfalse
otherwise.
-
setStartNow
public void setStartNow(boolean startNow) Sets whether the arguments provided by the user, indicate that the task should be executed immediately.- Parameters:
startNow
-true
if the task must be executed immediately andfalse
otherwise.
-
getStartDate
Gets the date at which this task should be scheduled to start.- Returns:
- date/time at which the task should be scheduled
-
setStartDate
Sets the date at which this task should be scheduled to start.- Parameters:
startDate
- the date/time at which the task should be scheduled
-
getRecurringDateTime
Gets the date/time pattern for recurring task schedule.- Returns:
- recurring date/time pattern at which the task should be scheduled.
-
setRecurringDateTime
Sets the date/time pattern for recurring task schedule.- Parameters:
recurringDateTime
- recurring date/time pattern at which the task should be scheduled.
-
getDependencyIds
Gets a list of task IDs upon which this task is dependent.- Returns:
- list of task IDs
-
setDependencyIds
Sets the list of task IDs upon which this task is dependent.- Parameters:
dependencyIds
- list of task IDs
-
getFailedDependencyAction
Gets the action to take should one of the dependent task fail.- Returns:
- action to take
-
setFailedDependencyAction
Sets the action to take should one of the dependent task fail.- Parameters:
failedDependencyAction
- the action to take
-
getNotifyUponCompletionEmailAddresses
Gets a list of email address to which an email will be sent when this task completes.- Returns:
- list of email addresses
-
setNotifyUponCompletionEmailAddresses
public void setNotifyUponCompletionEmailAddresses(Collection<String> notifyUponCompletionEmailAddresses) Sets the list of email address to which an email will be sent when this task completes.- Parameters:
notifyUponCompletionEmailAddresses
- the list of email addresses
-
getNotifyUponErrorEmailAddresses
Gets the list of email address to which an email will be sent if this task encounters an error during execution.- Returns:
- list of email addresses
-
setNotifyUponErrorEmailAddresses
Sets the list of email address to which an email will be sent if this task encounters an error during execution.- Parameters:
notifyUponErrorEmailAddresses
- the list of email addresses
-