Package com.sas.lsaf.schedule
Class ScheduleJobInfo
java.lang.Object
com.sas.lsaf.schedule.ScheduleJobInfo
- All Implemented Interfaces:
Schedulable,Serializable
The class to schedule a job. This class contains the job descriptor and parameter information.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.ScheduleJobInfo(Job job) The constructor that specifies a job.ScheduleJobInfo(Job job, List<ParameterValue> parameterValues) The constructor that specifies the job and parameter values to use when the job is submitted.ScheduleJobInfo(String path, SourceLocation sourceLocation) The constructor that specifies the job path and source location.ScheduleJobInfo(String path, String version, SourceLocation sourceLocation) The constructor that specifies the job path, version and source location.ScheduleJobInfo(String path, String version, SourceLocation sourceLocation, List<ParameterValue> parameterValues) The constructor that specifies the job path, job version, source location and override job parameter values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the job parameter values.getPath()Gets the path of the job to run.Gets the source location of the job.Gets the version of the job.inthashCode()voidSets the job to run.voidsetParameterValues(List<ParameterValue> parameterValues) Sets the job parameterValues.voidSets the path of the job to run.voidsetSourceLocation(SourceLocation sourceLocation) Sets the source location of the job.voidsetVersion(String version) Sets the version of this job.toString()
-
Constructor Details
-
ScheduleJobInfo
public ScheduleJobInfo()The default constructor. -
ScheduleJobInfo
The constructor that specifies the job path and source location. By default, a scheduled job has no parameter value overrides.- Parameters:
path- The path of the job to schedule.sourceLocation- The source location of the job.
-
ScheduleJobInfo
The constructor that specifies the job path, version and source location. By default, a scheduled job has no parameter value overrides.- Parameters:
path- The path of the job to schedule.version- The version of the job to schedule.sourceLocation- The source location of the job.
-
ScheduleJobInfo
The constructor that specifies a job. A default schedule has no parameter overrides. By default, a scheduled job has no parameter value overrides.- Parameters:
job- The job to schedule.
-
ScheduleJobInfo
The constructor that specifies the job and parameter values to use when the job is submitted.- Parameters:
job- The job to schedule.parameterValues- The parameter values that will override the default parameter values in the job.
-
ScheduleJobInfo
public ScheduleJobInfo(String path, String version, SourceLocation sourceLocation, List<ParameterValue> parameterValues) The constructor that specifies the job path, job version, source location and override job parameter values.- Parameters:
path- The path of the job to schedule.version- The version of the job.sourceLocation- The source location of the job.parameterValues- The parameter values that will override the default parameter values in the job.
-
-
Method Details
-
setJob
Sets the job to run.- Parameters:
job- The job to set.
-
getParameterValues
Gets the job parameter values. The parameter values override the default values of the job parameters that are defined within the job. For parameters of type FILE and FOLDER, the value should be specified as a ResourceSpecification. For parameters of type CHARACTER and NUMERIC, the value should be specified as Strings. for parameters of type DATE, the value should be specified as java.util.Date. If no parameter values are specified, the default values that are defined in the job are used.- Returns:
- The parameter values.
-
setParameterValues
Sets the job parameterValues. The parameterValues override the default value of the JobParameters defined within the job. For parameters of type FILE and FOLDER, the value should be specified as a ResourceSpecification. For parameters of type CHARACTER and NUMERIC, the values should be specified as Strings. For parameters of type DATE, the values should be specified as java.util.Date. If no parameter values are specified, the default values defined in the job are used.- Parameters:
parameterValues- The parameter values.
-
getPath
Gets the path of the job to run.- Returns:
- The path of the job.
-
setPath
Sets the path of the job to run.- Parameters:
path- The path of the job.
-
getVersion
Gets the version of the job.- Returns:
- The version of the job.
-
setVersion
Sets the version of this job.- Parameters:
version- The version of the job.
-
getSourceLocation
Gets the source location of the job.- Returns:
- The source location of the job.
-
setSourceLocation
Sets the source location of the job.- Parameters:
sourceLocation- The source location of the job.
-
hashCode
public int hashCode() -
equals
-
toString
-