Package org.opends.server.tools.tasks
Class TaskScheduleArgs
java.lang.Object
org.opends.server.tools.tasks.TaskScheduleArgs
A class that contains all the arguments related to the task scheduling.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.forgerock.opendj.cli.Argument[]Returns all the task schedule related arguments.Returns the task schedule user data extracted out of the CLI arguments.booleanReturns whether the scheduled start date/time of the task was provided as an argument.voidValidates arguments related to task scheduling.voidValidates arguments related to task scheduling.
- 
Constructor Details- 
TaskScheduleArgspublic TaskScheduleArgs()Default constructor.
 
- 
- 
Method Details- 
getArgumentspublic com.forgerock.opendj.cli.Argument[] getArguments()Returns all the task schedule related arguments.- Returns:
- all the task schedule related arguments.
 
- 
validateArgspublic void validateArgs() throws com.forgerock.opendj.cli.ArgumentException, com.forgerock.opendj.cli.ClientExceptionValidates arguments related to task scheduling. This should be called after theArgumentParser.parseArgumentshas been called.
 Note that this method does only validation that is not dependent on whether the operation will be launched as a task or not. If the operation is not to be launched as a task, the methodvalidateArgsIfOffline()should be called instead of this method.- Throws:
- com.forgerock.opendj.cli.ArgumentException- if there is a problem with the arguments.
- com.forgerock.opendj.cli.ClientException- if there is a problem with one of the values provided by the user.
 
- 
validateArgsIfOfflinepublic void validateArgsIfOffline() throws com.forgerock.opendj.cli.ArgumentException, com.forgerock.opendj.cli.ClientExceptionValidates arguments related to task scheduling. This should be called after theArgumentParser.parseArgumentshas been called.
 This method assumes that the operation is not to be launched as a task. This method covers all the checks done byvalidateArgs(), so it is not necessary to call that method if this method is being called.- Throws:
- com.forgerock.opendj.cli.ArgumentException- if there is a problem with the arguments.
- com.forgerock.opendj.cli.ClientException- if there is a problem with one of the values provided by the user.
 
- 
getTaskScheduleUserDataReturns the task schedule user data extracted out of the CLI arguments.- Returns:
- the task schedule user data extracted out of the CLI arguments
 
- 
startDateTimeProvidedpublic boolean startDateTimeProvided()Returns whether the scheduled start date/time of the task was provided as an argument.- Returns:
- whether the scheduled start date/time of the task was provided as an argument.
 
 
-