Class Job

All Implemented Interfaces:
Serializable

public class Job extends CommonDTO
Read only data transfer object representing a Job in the Genie system.
Since:
3.0.0
See Also:
  • Constructor Details

    • Job

      protected Job(@Valid @Valid Job.Builder builder)
      Constructor used by the builder.
      Parameters:
      builder - The builder to use
  • Method Details

    • getCommandArgs

      public Optional<String> getCommandArgs()
      Get the arguments to be put on the command line along with the command executable.
      Returns:
      The command arguments
    • getStatusMsg

      public Optional<String> getStatusMsg()
      Get the current status message.
      Returns:
      The status message as an optional
    • getArchiveLocation

      public Optional<String> getArchiveLocation()
      Get the archive location for the job if there is one.
      Returns:
      The archive location
    • getClusterName

      public Optional<String> getClusterName()
      Get the name of the cluster running the job if there currently is one.
      Returns:
      The name of the cluster where the job is running
    • getCommandName

      public Optional<String> getCommandName()
      Get the name of the command running this job if there currently is one.
      Returns:
      The name of the command
    • getGrouping

      public Optional<String> getGrouping()
      Get the grouping for this job if there currently is one.
      Returns:
      The grouping
      Since:
      3.3.0
    • getGroupingInstance

      public Optional<String> getGroupingInstance()
      Get the grouping instance for this job if there currently is one.
      Returns:
      The grouping instance
      Since:
      3.3.0
    • getStarted

      public Optional<Instant> getStarted()
      Get the time the job started.
      Returns:
      The started time or null if not set
    • getFinished

      public Optional<Instant> getFinished()
      Get the time the job finished.
      Returns:
      The finished time or null if not set