Class ScheduleJobInfo

java.lang.Object
com.sas.lsaf.schedule.ScheduleJobInfo
All Implemented Interfaces:
Schedulable, Serializable

public class ScheduleJobInfo extends Object implements Schedulable, Serializable
The class to schedule a job. This class contains the job descriptor and parameter information.
See Also:
  • Constructor Details

    • ScheduleJobInfo

      public ScheduleJobInfo()
      The default constructor.
    • ScheduleJobInfo

      public ScheduleJobInfo(String path, SourceLocation sourceLocation)
      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

      public ScheduleJobInfo(String path, String version, SourceLocation sourceLocation)
      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

      public ScheduleJobInfo(Job job)
      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

      public ScheduleJobInfo(Job job, List<ParameterValue> parameterValues)
      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

      public void setJob(Job job)
      Sets the job to run.
      Parameters:
      job - The job to set.
    • getParameterValues

      public List<ParameterValue> 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

      public void setParameterValues(List<ParameterValue> parameterValues)
      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

      public String getPath()
      Gets the path of the job to run.
      Returns:
      The path of the job.
    • setPath

      public void setPath(String path)
      Sets the path of the job to run.
      Parameters:
      path - The path of the job.
    • getVersion

      public String getVersion()
      Gets the version of the job.
      Returns:
      The version of the job.
    • setVersion

      public void setVersion(String version)
      Sets the version of this job.
      Parameters:
      version - The version of the job.
    • getSourceLocation

      public SourceLocation getSourceLocation()
      Gets the source location of the job.
      Returns:
      The source location of the job.
    • setSourceLocation

      public void setSourceLocation(SourceLocation sourceLocation)
      Sets the source location of the job.
      Parameters:
      sourceLocation - The source location of the job.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object