Interface JobExecutionProjection
- All Superinterfaces:
AgentHostnameProjection,AuditProjection,IdProjection
- All Known Implementing Classes:
JobEntity
Projection with the data present in a Genie JobExecutionEntity from pre-3.3.0.
- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptionGet the archive status for this job.Get the number of CPU's used by the job.Get the amount of disk space used for a job.Get the exit code from the process that ran the job.Get the number of GPUs used by the job.Optional<com.fasterxml.jackson.databind.JsonNode>Get the set of image configuration used for this job.Optional<com.fasterxml.jackson.databind.JsonNode>Get the launcher metadata for this job.Get the amount of memory (in MB) that this job is/was run with.Get network bandwidth used for a job if any.Get the process id of the job.Get when the job was started.Get the final resolved timeout duration (in seconds) if there was one for this job.Get the unique identifier of this job execution.Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.AgentHostnameProjection
getAgentHostnameMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.AuditProjection
getCreated, getUpdatedMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.IdProjection
getId
-
Method Details
-
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
Get the process id of the job.- Returns:
- the process id
-
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
Get the number of CPU's used by the job.- Returns:
- The number of CPU's used or
Optional.empty()
-
getGpuUsed
Get the number of GPUs used by the job.- Returns:
- The number of GPUs used or
Optional.empty()
-
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
Get the amount of disk space used for a job.- Returns:
- The amount of disk space in MB or
Optional.empty()
-
getNetworkMbpsUsed
Get network bandwidth used for a job if any.- Returns:
- The network bandwidth in mbps or
Optional.empty()
-
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
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()
-