public class Command
extends java.lang.Object
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)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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)
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 morepublic 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()