Class JobSubmission

java.lang.Object
com.sas.lsaf.execution.job.JobSubmission
All Implemented Interfaces:
Serializable

public class JobSubmission extends Object implements Serializable
The class that represents the job submission object that is used as a token to retrieve the status of a submitted job.
See Also:
  • Constructor Details

    • JobSubmission

      public JobSubmission(String id, JobSubmission.JobSubmissionType submissionType, String jobId, String jobPath, String jobVersion, String sessionId, JobSubmissionStatus jobSubmissionStatus, String submittedBy, Date submitted, Date completed, String jobOwner, String runAsUser)
      The constructor.
      Parameters:
      id - The identifier for the job submission.
      submissionType - The type of job submission.
      jobId - The identifier of the job submitted.
      jobPath - The path to the job submitted.
      jobVersion - The version of the job to submit.
      sessionId - The identifier of the session that is generated for the job submission.
      jobSubmissionStatus - The job details and submission status for the job submission.
      submittedBy - The identifier of the user who submitted the job.
      submitted - The date on which the job was submitted.
      completed - The date on which the job was completed.
      jobOwner - The userid of the job owner.
      runAsUser - The userid of the user that the job was run as.
  • Method Details

    • getId

      public String getId()
      Gets the identifier of the job submission.
      Returns:
      The identifier.
    • getJobId

      public String getJobId()
      Gets the identifier of the job submitted.
      Returns:
      The identifier.
    • getJobPath

      public String getJobPath()
      Gets the job path to the job submission.
      Returns:
      The job path.
    • getJobVersion

      public String getJobVersion()
      Gets the job version of the job submission.
      Returns:
      The job version of the job submission.
    • getSubmissionType

      public JobSubmission.JobSubmissionType getSubmissionType()
      Gets the submission type of the job submission.
      Returns:
      The submission type.
    • getSessionId

      public String getSessionId()
      Gets the identifier of the session that was created for the job submission.
      Returns:
      The identifier of the session.
    • getSubmittedBy

      public String getSubmittedBy()
      Gets the userId of the user who submitted the job.
      Returns:
      The userId of the user.
    • getSubmitted

      public Date getSubmitted()
      Gets the date on which the job was submitted.
      Returns:
      The date.
    • getCompleted

      public Date getCompleted()
      Gets the date on which the job was completed.
      Returns:
      The date.
    • getJobSubmissionStatus

      public JobSubmissionStatus getJobSubmissionStatus()
      Gets the job details and submission status for the job submission.
      Returns:
      The job details and submission status.
    • getJobOwner

      public String getJobOwner()
      Gets the userid of the job owner.
      Returns:
      The userid of the job owner.
    • getRunAsUser

      public String getRunAsUser()
      Gets the userid of the user the job was run as.
      Returns:
      The userid of the user.
    • 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