Class PurgeHistoricalScheduleInformation
- java.lang.Object
-
- org.opends.server.tools.dsreplication.PurgeHistoricalScheduleInformation
-
- All Implemented Interfaces:
TaskScheduleInformation
public class PurgeHistoricalScheduleInformation extends Object implements TaskScheduleInformation
This is a simple adaptor to create a task schedule information object using the data provided by the user. It is used to be able to share some code with theTaskToolclass.
-
-
Constructor Summary
Constructors Constructor Description PurgeHistoricalScheduleInformation(PurgeHistoricalUserData uData)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTaskAttributes(List<RawAttribute> attributes)Adds utility specific attributes toattributesfor population of the entry that is added to the task backend.List<String>getDependencyIds()Gets a list of task IDs upon which this task is dependent.FailedDependencyActiongetFailedDependencyAction()Gets the action to take should one of the dependent task fail.List<String>getNotifyUponCompletionEmailAddresses()Gets a list of email address to which an email will be sent when this task completes.List<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.DategetStartDateTime()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.
-
-
-
Constructor Detail
-
PurgeHistoricalScheduleInformation
public PurgeHistoricalScheduleInformation(PurgeHistoricalUserData uData)
Default constructor.- Parameters:
uData- the data provided by the user to do the purge historical.
-
-
Method Detail
-
addTaskAttributes
public void addTaskAttributes(List<RawAttribute> attributes)
Description copied from interface:TaskScheduleInformationAdds utility specific attributes toattributesfor population of the entry that is added to the task backend.- Specified by:
addTaskAttributesin interfaceTaskScheduleInformation- Parameters:
attributes- that will be added to the task backend
-
getDependencyIds
public List<String> getDependencyIds()
Description copied from interface:TaskScheduleInformationGets a list of task IDs upon which this task is dependent.- Specified by:
getDependencyIdsin interfaceTaskScheduleInformation- Returns:
- list of task IDs
-
getFailedDependencyAction
public FailedDependencyAction getFailedDependencyAction()
Description copied from interface:TaskScheduleInformationGets the action to take should one of the dependent task fail.- Specified by:
getFailedDependencyActionin interfaceTaskScheduleInformation- Returns:
- action to take
-
getNotifyUponCompletionEmailAddresses
public List<String> getNotifyUponCompletionEmailAddresses()
Description copied from interface:TaskScheduleInformationGets a list of email address to which an email will be sent when this task completes.- Specified by:
getNotifyUponCompletionEmailAddressesin interfaceTaskScheduleInformation- Returns:
- list of email addresses
-
getNotifyUponErrorEmailAddresses
public List<String> getNotifyUponErrorEmailAddresses()
Description copied from interface:TaskScheduleInformationGets a list of email address to which an email will be sent if this task encounters an error during execution.- Specified by:
getNotifyUponErrorEmailAddressesin interfaceTaskScheduleInformation- Returns:
- list of email addresses
-
getRecurringDateTime
public String getRecurringDateTime()
Description copied from interface:TaskScheduleInformationGets the date/time pattern for recurring task schedule.- Specified by:
getRecurringDateTimein interfaceTaskScheduleInformation- Returns:
- recurring date/time pattern at which the task should be scheduled.
-
getStartDateTime
public Date getStartDateTime()
Description copied from interface:TaskScheduleInformationGets the date at which this task should be scheduled to start.- Specified by:
getStartDateTimein interfaceTaskScheduleInformation- Returns:
- date/time at which the task should be scheduled
-
getTaskClass
public Class<?> getTaskClass()
Description copied from interface:TaskScheduleInformationGets the Class that implements the utility to execute.- Specified by:
getTaskClassin interfaceTaskScheduleInformation- Returns:
- class of the tasks implementation
-
getTaskId
public String getTaskId()
Description copied from interface:TaskScheduleInformationGets an arbitrary task id assigned to this task.- Specified by:
getTaskIdin interfaceTaskScheduleInformation- Returns:
- assigned task id if any or
nullotherwise.
-
getTaskObjectclass
public String getTaskObjectclass()
Description copied from interface:TaskScheduleInformationGets the objectclass used to represent scheduled instances of this utility in the task backend.- Specified by:
getTaskObjectclassin interfaceTaskScheduleInformation- Returns:
- String representation of this utilities objectclass
-
-