Interface JobExecutionProjection

All Superinterfaces:
AgentHostnameProjection, AuditProjection, IdProjection
All Known Implementing Classes:
JobEntity

public interface JobExecutionProjection extends AuditProjection, AgentHostnameProjection
Projection with the data present in a Genie JobExecutionEntity from pre-3.3.0.
Since:
3.3.0
  • Method Details

    • getStarted

      Optional<Instant> getStarted()
      Get when the job was started.
      Returns:
      The start date
    • getUniqueId

      String getUniqueId()
      Get the unique identifier of this job execution.
      Returns:
      The unique id
    • getProcessId

      Optional<Integer> getProcessId()
      Get the process id of the job.
      Returns:
      the process id
    • getExitCode

      Optional<Integer> getExitCode()
      Get the exit code from the process that ran the job.
      Returns:
      The exit code or -1 if the job hasn't finished yet
    • getCpuUsed

      Optional<Integer> getCpuUsed()
      Get the number of CPU's used by the job.
      Returns:
      The number of CPU's used or Optional.empty()
    • getGpuUsed

      Optional<Integer> getGpuUsed()
      Get the number of GPUs used by the job.
      Returns:
      The number of GPUs used or Optional.empty()
    • getMemoryUsed

      Optional<Long> getMemoryUsed()
      Get the amount of memory (in MB) that this job is/was run with.
      Returns:
      The memory as an optional as it could be null
    • getDiskMbUsed

      Optional<Long> getDiskMbUsed()
      Get the amount of disk space used for a job.
      Returns:
      The amount of disk space in MB or Optional.empty()
    • getNetworkMbpsUsed

      Optional<Long> getNetworkMbpsUsed()
      Get network bandwidth used for a job if any.
      Returns:
      The network bandwidth in mbps or Optional.empty()
    • 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
    • getArchiveStatus

      Optional<String> getArchiveStatus()
      Get the archive status for this job.
      Returns:
      An Optional wrapping the string representation of the archive status, if is present.
    • getLauncherExt

      Optional<com.fasterxml.jackson.databind.JsonNode> getLauncherExt()
      Get the launcher metadata for this job.
      Returns:
      An Optional wrapping the JSON representation of the launcher metadata, if present.
    • getImagesUsed

      Optional<com.fasterxml.jackson.databind.JsonNode> getImagesUsed()
      Get the set of image configuration used for this job.
      Returns:
      The images used or Optional.empty()