public class JobRequest extends SetupFileDTO
Modifier and Type | Class and Description |
---|---|
static class |
JobRequest.Builder
A builder to create job requests.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMEOUT_DURATION
The default number of seconds from start before a job times out.
|
Modifier | Constructor and Description |
---|---|
protected |
JobRequest(JobRequest.Builder builder)
Constructor used by the builder build() method.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getApplications()
Get the list of application id's this job is requesting to override the default applications with.
|
java.util.List<ClusterCriteria> |
getClusterCriterias()
Get the list of cluster criterias.
|
java.util.Set<java.lang.String> |
getCommandCriteria()
Get the set of command criteria.
|
java.util.Optional<java.lang.Integer> |
getCpu()
Get the number of CPU's requested to run this job.
|
java.util.Set<java.lang.String> |
getDependencies()
Get the dependencies that should be downloaded for this job.
|
java.util.Optional<java.lang.String> |
getEmail()
Get the email for the user.
|
java.util.Optional<java.lang.String> |
getGroup()
Get the group the user should be a member of.
|
java.util.Optional<java.lang.Integer> |
getMemory()
Get the amount of memory (in MB) requested to run this job with.
|
java.util.Optional<java.lang.Integer> |
getTimeout()
Get the amount of time requested (in seconds) before this job is timed out on the server.
|
getSetupFile
getDescription, getTags
getCreated, getId, getUpdated, toString
public static final int DEFAULT_TIMEOUT_DURATION
protected JobRequest(JobRequest.Builder builder)
builder
- The builder to usepublic java.util.Optional<java.lang.String> getGroup()
public java.util.Optional<java.lang.String> getEmail()
public java.util.Optional<java.lang.Integer> getCpu()
public java.util.Optional<java.lang.Integer> getMemory()
public java.util.Optional<java.lang.Integer> getTimeout()
public java.util.List<ClusterCriteria> getClusterCriterias()
public java.util.Set<java.lang.String> getCommandCriteria()
public java.util.Set<java.lang.String> getDependencies()
public java.util.List<java.lang.String> getApplications()