Package com.sas.lsaf.execution.job
Class Job
java.lang.Object
com.sas.lsaf.execution.job.Job
- All Implemented Interfaces:
Serializable
The client representation of a job. Note: Relative paths are supported for jobs when paths can be specified.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterMaskedParameter(String name, String label, String value) Adds aJobParameterwith the specified information that is masked.voidaddCharacterParameter(String name, String label, String value) Adds aJobParameterwith the specified information.voidaddDateParameter(String name, String label, Date value) Adds aJobParameterwith the specified information.voidaddFileParameter(String name, String label, String path) Adds aJobParameterwith the specifiedJobInputFileinformation.voidaddFileParameter(String name, String label, String path, String version) Adds aJobParameterwith the specifiedJobInputFileinformation.voidaddFolderParameter(String name, String label, String path) Adds aJobParameterwith the specifiedJobInputFolderinformation.voidaddFolderParameter(String name, String label, String path, boolean includeSubfolders) Adds aJobParameterwith the specifiedJobInputFolderinformation.voidaddNumericParameter(String name, String label, String value) Adds aJobParameterwith the specified information that represents a numeric value.voidaddProgram(String path) Adds aJobProgramwith the specified path.voidaddProgram(String path, String version) Adds aJobProgramwith the specified information.booleanGets the description of the job.Gets the location for job submission log files to be saved.Gets the location for the job submission manifest file to be saved.getOwner()Gets the userId of the current owner of the job.Gets the job parameters.getPath()Gets the path of the job.Gets the programs that are associated with the job.Gets the check-in specification to use for the output files that are created by the job.Gets the content to transfer when submitting the job.Gets the location for the job execution results files to be saved.Gets the source location of the job.Gets the version of the job.inthashCode()booleanIndicates whether the job runs as the owner of the file or as the user who submitted the file for execution.voidsetDescription(String description) Sets the description of the job.voidsetLogsLocation(String logsLocation) Sets the location for the job submission log files to be saved.voidsetManifestLocation(String manifestLocation) Sets the location for the job submission manifest file to be saved.voidsetParameters(List<JobParameter> parameters) Sets the job parameters.voidSets the path of the job.voidsetPrograms(List<JobProgram> programs) Sets the programs to associate with the job.voidsetPublishCheckin(JobPublishCheckin publishCheckin) Sets the check-in specification to use for the output files that are created by the job.voidsetPublishSetup(JobPublishSetup publishSetup) Sets the content to transfer when submitting the job.voidsetResultsLocation(String resultsLocation) Sets the location for the job submission results files to be saved.voidsetSourceLocation(SourceLocation sourceLocation) Sets the source location of the job.toString()
-
Constructor Details
-
Job
public Job()Constructor. -
Job
Constructor.- Parameters:
path- The path to the job.
-
Job
Constructor.- Parameters:
path- The path to the job.version- The version label for the job.
-
Job
Constructor.- Parameters:
path- The path to the job.version- The version label for the job.sourceLocation- The source location of the job.
-
Job
Constructor.- Parameters:
path- The path to the job.version- The version label for the job.owner- The userId of the user who owns the job.runAsOwner- Indicates whether the job runs as the owner.
-
-
Method Details
-
getPath
Gets the path of the job.- Returns:
- The path of the job.
-
setPath
Sets the path of the job.- Parameters:
path- The path of the job.
-
getVersion
Gets the version of the job.- Returns:
- 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.
-
getDescription
Gets the description of the job.- Returns:
- The description of the job.
-
setDescription
Sets the description of the job.- Parameters:
description- The description of the job.
-
getPrograms
Gets the programs that are associated with the job.- Returns:
- The associated programs of the job.
-
setPrograms
Sets the programs to associate with the job.- Parameters:
programs- The programs to associate.
-
getPublishSetup
Gets the content to transfer when submitting the job.- Returns:
- The content to transfer when submitting the job.
-
setPublishSetup
Sets the content to transfer when submitting the job.- Parameters:
publishSetup- The content to transfer when submitting the job.
-
getPublishCheckin
Gets the check-in specification to use for the output files that are created by the job.- Returns:
- The check-in specification for the output files.
-
setPublishCheckin
Sets the check-in specification to use for the output files that are created by the job.- Parameters:
publishCheckin- The check-in specification for the output files.
-
getLogsLocation
Gets the location for job submission log files to be saved. The log files are saved with the same name as the job.- Returns:
- The location for the job submission log files to be saved.
-
setLogsLocation
Sets the location for the job submission log files to be saved. The log files are saved with the same name as the job.- Parameters:
logsLocation- The location for the job submission log files to be saved.
-
getResultsLocation
Gets the location for the job execution results files to be saved. The results files are saved with the same name as the job.- Returns:
- The location for the job execution results files to be saved.
-
setResultsLocation
Sets the location for the job submission results files to be saved. The results files are saved with the same name as the job.- Parameters:
resultsLocation- The location for the job submission results files to be saved.
-
getManifestLocation
Gets the location for the job submission manifest file to be saved. The manifest file is saved with the same name as the job.- Returns:
- The location for the job submission manifest file to be saved.
-
setManifestLocation
Sets the location for the job submission manifest file to be saved. The manifest file is saved with the same name as the job.- Parameters:
manifestLocation- The location for the job submission manifest file to be saved.
-
getParameters
Gets the job parameters. For the JobParameter type FILE or FOLDER, the default value is aJobInput. The values of CHARACTER and NUMERIC parameters are a String, and a DATE parameter value is a java.util.Date.- Returns:
- The job parameters.
-
setParameters
Sets the job parameters. For the JobParameter type FILE and FOLDER, the default value must be specified as aJobInput. The values of CHARACTER and NUMERIC parameters must be specified as a String, and a DATE parameter value must be specified as a java.util.Date.
Note: FILE parameters support wildcards but FOLDER parameters do not.- Parameters:
parameters- The job parameters.
-
getOwner
Gets the userId of the current owner of the job.- Returns:
- The userId of the current owner of the job.
-
isRunAsOwner
public boolean isRunAsOwner()Indicates whether the job runs as the owner of the file or as the user who submitted the file for execution.- Returns:
- Indicates whether the job runs as the owner of the file or asthe user who submitted the file for execution.
-
addProgram
Adds aJobProgramwith the specified path. The default version is null which specifies that the latest version is used when submitted as a published job.- Parameters:
path- The path to the program.
-
addProgram
Adds aJobProgramwith the specified information. Specifying null for the version specifies that the latest version is used when the program is submitted with a published job.- Parameters:
path- The path to the program.version- The version of the program. If null, the latest version is is used when the program is submitted with a published job.
-
addFileParameter
Adds aJobParameterwith the specifiedJobInputFileinformation. By default, the version specified is null, which specifies that the latest version will be used when the program is submitted with a published job.
Note: Wildcards can be used in the paths of a file parameter.- Parameters:
name- The name of the job parameter.label- The label of the job parameter.path- The default path for the parameter. The default version is the latest (null).
-
addFileParameter
Adds aJobParameterwith the specifiedJobInputFileinformation. Specifying null for the version specifies that the latest version will be used when the program is submitted with a published job.
Note: Wildcards can be used in the paths of a file parameter.- Parameters:
name- The name of the job parameter.label- The label of the job parameter.path- The default path for the parameter.version- The version to be set on theJobInputFileas the default value for the parameter. Specifying null means the latest version will be used when submitted as a published job.
-
addFolderParameter
Adds aJobParameterwith the specifiedJobInputFolderinformation. By default, the folder does not include subfolders when transferred for a published job run. Only the files that are directly underneath it are transferred.
Note: Wildcards are not supported in the paths of a folder parameter.- Parameters:
name- The name of the job parameter.label- The label of the job parameter.path- The default path for the parameter.
-
addFolderParameter
Adds aJobParameterwith the specifiedJobInputFolderinformation. By default, the folder does not include subfolders when transferred for a published job run. Only the files that are directly underneath it will be transferred. SetsincludeSubfoldersto true to transfer the folder and all of the files and folders underneath it.
Note: Wildcards are not supported in the paths of a folder parameter.- Parameters:
name- The name of the job parameter.label- The label of the job parameter.path- The default path for the parameter.includeSubfolders- Indicates whether to transfer all files and folders that are underneath the specified folder.
-
addCharacterParameter
Adds aJobParameterwith the specified information.- Parameters:
name- The name of the job parameter.label- The label of the job parameter.value- The default value of the job parameter.
-
addCharacterMaskedParameter
Adds aJobParameterwith the specified information that is masked.- Parameters:
name- The name of the job parameter.label- The label of the job parameter.value- The masked default value of the job parameter.
-
addNumericParameter
Adds aJobParameterwith the specified information that represents a numeric value.- Parameters:
name- The name of the job parameter.label- The label of the job parameter.value- The default value of the job parameter that represents a numeric value.
-
addDateParameter
Adds aJobParameterwith the specified information.- Parameters:
name- The name of the job parameter.label- The label of the job parameter.value- The default value of the job parameter.
-
hashCode
public int hashCode() -
equals
-
toString
-