Package com.netflix.genie.common.dto
Class JobExecution
java.lang.Object
com.netflix.genie.common.dto.BaseDTO
com.netflix.genie.common.dto.JobExecution
- All Implemented Interfaces:
Serializable
All information needed to show state of a running job.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder to create job requests. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The exit code that will be set to indicate a job is killed.static final int
The exit code that will be set to indicate a job is has been lost by Genie.static final int
The exit code that will be set to indicate a job has succeeded. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JobExecution
(JobExecution.Builder builder) Constructor used by the builder build() method. -
Method Summary
Modifier and TypeMethodDescriptionGet the archival status of job files.Get the amount of time (in milliseconds) to delay between checks of status of the job process.Get the exit code of the process.Optional<com.fasterxml.jackson.databind.JsonNode>
Get the launcher extension.Get the amount of memory (in MB) of the job.Get the process id for this job execution as Optional.Get the timeout date for this job after which if it is still running the system will attempt to kill it.Methods inherited from class com.netflix.genie.common.dto.BaseDTO
getCreated, getId, getUpdated, toString
-
Field Details
-
KILLED_EXIT_CODE
public static final int KILLED_EXIT_CODEThe exit code that will be set to indicate a job is killed.- See Also:
-
LOST_EXIT_CODE
public static final int LOST_EXIT_CODEThe 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_CODEThe exit code that will be set to indicate a job has succeeded.- See Also:
-
-
Constructor Details
-
JobExecution
Constructor used by the builder build() method.- Parameters:
builder
- The builder to use
-
-
Method Details
-
getProcessId
Get the process id for this job execution as Optional.- Returns:
- The process id
-
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
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
Get the exit code of the process.- Returns:
- The exit code as an Optional as it could be null
-
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
Get the archival status of job files.- Returns:
- the archival status as Optional as it could be null
-
getLauncherExt
Get the launcher extension.- Returns:
- the launcher extension as Optional as it could be null
-