public class JobExecution extends BaseDTO
Modifier and Type | Class and Description |
---|---|
static class |
JobExecution.Builder
A builder to create job requests.
|
Modifier and Type | Field and Description |
---|---|
static int |
KILLED_EXIT_CODE
The exit code that will be set to indicate a job is killed.
|
static int |
LOST_EXIT_CODE
The exit code that will be set to indicate a job is has been lost by Genie.
|
static int |
SUCCESS_EXIT_CODE
The exit code that will be set to indicate a job has succeeded.
|
Modifier | Constructor and Description |
---|---|
protected |
JobExecution(JobExecution.Builder builder)
Constructor used by the builder build() method.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Long> |
getCheckDelay()
Get the amount of time (in milliseconds) to delay between checks of status of the job process.
|
java.util.Optional<java.lang.Integer> |
getExitCode()
Get the exit code of the process.
|
java.util.Optional<java.lang.Integer> |
getMemory()
Get the amount of memory (in MB) of the job.
|
java.util.Optional<java.lang.Integer> |
getProcessId()
Get the process id for this job execution as Optional.
|
java.util.Optional<java.util.Date> |
getTimeout()
Get the timeout date for this job after which if it is still running the system will attempt to kill it.
|
getCreated, getId, getUpdated, toString
public static final int KILLED_EXIT_CODE
public static final int LOST_EXIT_CODE
public static final int SUCCESS_EXIT_CODE
protected JobExecution(JobExecution.Builder builder)
builder
- The builder to usepublic java.util.Optional<java.lang.Integer> getProcessId()
public java.util.Optional<java.lang.Long> getCheckDelay()
public java.util.Optional<java.util.Date> getTimeout()
public java.util.Optional<java.lang.Integer> getExitCode()
public java.util.Optional<java.lang.Integer> getMemory()