Class CommandRequest
java.lang.Object
com.netflix.genie.common.internal.dtos.CommandRequest
- All Implemented Interfaces:
CommonRequest
,Serializable
Fields representing all the values users can set when creating a new Command resource.
- Since:
- 4.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for a V4 Command Request. -
Method Summary
Modifier and TypeMethodDescriptionGet the ordered list ofCriterion
for this command to resolve clusters are runtime.Get any default compute resources that were requested for this command.Get the executable elements (generally a binary followed optionally by default arguments) that should be used with this command when executing a job.Get any image information associated by default with this command.Get the ID the user has requested for this resource if one was added.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.netflix.genie.common.internal.dtos.CommonRequest
getResources
-
Method Details
-
getExecutable
Get the executable elements (generally a binary followed optionally by default arguments) that should be used with this command when executing a job.- Returns:
- The executable arguments as an immutable list. Any attempt to modify will throw an exception
-
getClusterCriteria
Get the ordered list ofCriterion
for this command to resolve clusters are runtime.- Returns:
- The ordered list of
Criterion
as an immutable list. Any attempt to modify will throw an exception
-
getComputeResources
Get any default compute resources that were requested for this command.- Returns:
- The
ComputeResources
orOptional.empty()
-
getImages
Get any image information associated by default with this command.- Returns:
- The map of image domain name to
Image
metadata as unmodifiable map. Any attempt to modify will throw an exception
-
getRequestedId
Get the ID the user has requested for this resource if one was added.- Specified by:
getRequestedId
in interfaceCommonRequest
- Returns:
- The ID wrapped in an
Optional
-