Class JobExecution

java.lang.Object
com.netflix.genie.common.dto.BaseDTO
com.netflix.genie.common.dto.JobExecution
All Implemented Interfaces:
Serializable

public class JobExecution extends BaseDTO
All information needed to show state of a running job.
Since:
3.0.0
See Also:
  • Field Details

    • KILLED_EXIT_CODE

      public static final int KILLED_EXIT_CODE
      The exit code that will be set to indicate a job is killed.
      See Also:
    • LOST_EXIT_CODE

      public static final int LOST_EXIT_CODE
      The exit code that will be set to indicate a job is has been lost by Genie.
      See Also:
    • SUCCESS_EXIT_CODE

      public static final int SUCCESS_EXIT_CODE
      The exit code that will be set to indicate a job has succeeded.
      See Also:
  • Constructor Details

    • JobExecution

      protected JobExecution(JobExecution.Builder builder)
      Constructor used by the builder build() method.
      Parameters:
      builder - The builder to use
  • Method Details

    • getProcessId

      public Optional<Integer> getProcessId()
      Get the process id for this job execution as Optional.
      Returns:
      The process id
    • getCheckDelay

      public Optional<Long> getCheckDelay()
      Get the amount of time (in milliseconds) to delay between checks of status of the job process.
      Returns:
      The time to delay as an Optional as it could be null
    • getTimeout

      public Optional<Instant> getTimeout()
      Get the timeout date for this job after which if it is still running the system will attempt to kill it.
      Returns:
      The timeout date
    • getExitCode

      public Optional<Integer> getExitCode()
      Get the exit code of the process.
      Returns:
      The exit code as an Optional as it could be null
    • getMemory

      public Optional<Integer> getMemory()
      Get the amount of memory (in MB) of the job.
      Returns:
      The amount of memory the job is set to use as an Optional as it could be null
    • getArchiveStatus

      public Optional<ArchiveStatus> getArchiveStatus()
      Get the archival status of job files.
      Returns:
      the archival status as Optional as it could be null
    • getLauncherExt

      public Optional<com.fasterxml.jackson.databind.JsonNode> getLauncherExt()
      Get the launcher extension.
      Returns:
      the launcher extension as Optional as it could be null