Interface JobSpecificationProjection

All Superinterfaces:
AuditProjection, IdProjection, JobArchiveLocationProjection, UniqueIdProjection
All Known Implementing Classes:
JobEntity

public interface JobSpecificationProjection extends UniqueIdProjection, JobArchiveLocationProjection
Projection of the database fields which make up the required elements of a job specification.
Since:
4.0.0
  • Method Details

    • getConfigs

      Set<FileEntity> getConfigs()
      Get all the configuration files for this job.
      Returns:
      The set of configs
    • getDependencies

      Set<FileEntity> getDependencies()
      Get all the dependency files for this job.
      Returns:
      The set of dependencies
    • getSetupFile

      Optional<FileEntity> getSetupFile()
      Get the setup file for this resource.
      Returns:
      The setup file
    • getJobDirectoryLocation

      Optional<String> getJobDirectoryLocation()
      Get the job directory location the agent should use.
      Returns:
      The job directory location if its been set wrapped in an Optional
    • getCommandArgs

      List<String> getCommandArgs()
      Get the command arguments the user supplied for this job.
      Returns:
      The command arguments
    • getCluster

      Optional<ClusterEntity> getCluster()
      Get the cluster that ran or is currently running a given job.
      Returns:
      The cluster entity
    • getCommand

      Optional<CommandEntity> getCommand()
      Get the command that ran or is currently running a given job.
      Returns:
      The command entity
    • getApplications

      List<ApplicationEntity> getApplications()
      Get the applications used to run this job.
      Returns:
      The applications
    • isInteractive

      boolean isInteractive()
      Get whether the job was an interactive job or not when launched.
      Returns:
      true if the job was interactive
    • getEnvironmentVariables

      Map<String,String> getEnvironmentVariables()
      Get the final set of environment variables sent from the server to the agent for the job.
      Returns:
      The environment variables
    • isResolved

      boolean isResolved()
      Get whether the job specification has been resolved yet or not.
      Returns:
      True if the job specification has been resolved
    • getTimeoutUsed

      Optional<Integer> getTimeoutUsed()
      Get the final resolved timeout duration (in seconds) if there was one for this job.
      Returns:
      The timeout value wrapped in an Optional