@Entity public class JobExecutionEntity extends BaseEntity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
QUERY_FIND_BY_STATUS_HOST
Query name to find jobs by statuses and host.
|
static java.lang.String |
QUERY_FIND_HOSTS_BY_STATUS
Query name to find hosts by statuses.
|
Constructor and Description |
---|
JobExecutionEntity()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Long> |
getCheckDelay()
Get the amount of time (in milliseconds) to delay the check for the job status.
|
JobExecution |
getDTO()
Get a DTO representing this job execution.
|
java.util.Optional<java.lang.Integer> |
getExitCode()
Get the exit code from the process that ran the job.
|
java.util.Optional<java.lang.Integer> |
getMemory()
Get the amount of memory (in MB) that this job is/was run with.
|
java.util.Optional<java.lang.Integer> |
getProcessId()
Get the process id of the job.
|
java.util.Optional<java.util.Date> |
getTimeout()
Get the date this job will be killed due to exceeding its set timeout duration.
|
void |
setJob(JobEntity job)
Set the job for this execution.
|
void |
setTimeout(java.util.Date timeout)
Set the date this job will be killed due to exceeding its set timeout duration.
|
getCreated, getEntityVersion, getId, getUpdated, onCreateBaseEntity, onUpdateBaseEntity, setCreated, setEntityVersion, setId, setUpdated
public static final java.lang.String QUERY_FIND_BY_STATUS_HOST
public static final java.lang.String QUERY_FIND_HOSTS_BY_STATUS
public java.util.Optional<java.lang.Integer> getProcessId()
public java.util.Optional<java.lang.Long> getCheckDelay()
public java.util.Optional<java.lang.Integer> getExitCode()
public java.util.Optional<java.lang.Integer> getMemory()
public java.util.Optional<java.util.Date> getTimeout()
public void setTimeout(@NotNull java.util.Date timeout)
timeout
- The new timeoutpublic void setJob(JobEntity job)
job
- The jobpublic JobExecution getDTO()