public class Command extends CommonResource
| Constructor and Description |
|---|
Command(java.lang.String id,
java.time.Instant created,
java.time.Instant updated,
ExecutionEnvironment resources,
CommandMetadata metadata,
java.util.List<java.lang.String> executable,
java.lang.Integer memory,
long checkDelay,
java.util.List<Criterion> clusterCriteria)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Criterion> |
getClusterCriteria()
Get the ordered list of
Criterion for this command to resolve clusters are runtime. |
java.util.List<java.lang.String> |
getExecutable()
Get the executable elements (generally a binary followed optionally by default arguments) that should be used
with this command when executing a job.
|
java.util.Optional<java.lang.Integer> |
getMemory()
Get the default amount of memory (in MB) to use for jobs which use this command.
|
public Command(java.lang.String id,
java.time.Instant created,
java.time.Instant updated,
@Nullable
ExecutionEnvironment resources,
CommandMetadata metadata,
java.util.List<java.lang.String> executable,
@Nullable
java.lang.Integer memory,
long checkDelay,
@Nullable
java.util.List<Criterion> clusterCriteria)
id - The unique identifier of this commandcreated - The time this command was created in the systemupdated - The last time this command was updated in the systemresources - The execution resources associated with this commandmetadata - The metadata associated with this commandexecutable - The executable command that will be used when a job is run with this command. Generally
this will start with the binary and be followed optionally by default arguments. Must
have at least one. Blanks will be removedmemory - The default memory that should be used to run a job with this commandcheckDelay - The amount of time (in milliseconds) to delay between checks of job status for jobs run
using this command. Min 1 but preferably much moreclusterCriteria - The ordered list of cluster Criterion that should be used to resolve which
clusters this command can run on at job execution timepublic java.util.Optional<java.lang.Integer> getMemory()
Optional wrapper of the amount of memory to use for a jobpublic java.util.List<java.lang.String> getExecutable()