public static class JobExecution.Builder extends BaseDTO.Builder<JobExecution.Builder>
Constructor and Description |
---|
Builder(java.lang.String hostName)
Constructor which has required fields.
|
Modifier and Type | Method and Description |
---|---|
JobExecution |
build()
Build the job request.
|
JobExecution.Builder |
withCheckDelay(java.lang.Long checkDelay)
Set the amount of time (in milliseconds) to delay between checks of the process.
|
JobExecution.Builder |
withExitCode(java.lang.Integer exitCode)
Set the exit code for the jobs' execution.
|
JobExecution.Builder |
withMemory(java.lang.Integer memory)
Set the amount of memory (in MB) to use for this job execution.
|
JobExecution.Builder |
withProcessId(java.lang.Integer processId)
Set the process id for the jobs' execution.
|
JobExecution.Builder |
withTimeout(java.util.Date timeout)
Set the timeout date when the job will be failed if it hasn't completed by.
|
withCreated, withId, withUpdated
public Builder(java.lang.String hostName)
hostName
- The hostname where the job is runningpublic JobExecution.Builder withProcessId(java.lang.Integer processId)
processId
- The process idpublic JobExecution.Builder withCheckDelay(java.lang.Long checkDelay)
checkDelay
- The check delay to usepublic JobExecution.Builder withTimeout(java.util.Date timeout)
timeout
- The timeout datepublic JobExecution.Builder withExitCode(java.lang.Integer exitCode)
exitCode
- The exit code.public JobExecution.Builder withMemory(java.lang.Integer memory)
memory
- The amount of memory in megabytespublic JobExecution build()