Class CommandRequest

java.lang.Object
com.netflix.genie.common.internal.dtos.CommandRequest
All Implemented Interfaces:
CommonRequest, Serializable

public class CommandRequest extends Object
Fields representing all the values users can set when creating a new Command resource.
Since:
4.0.0
See Also:
  • Method Details

    • getExecutable

      public List<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.
      Returns:
      The executable arguments as an immutable list. Any attempt to modify will throw an exception
    • getClusterCriteria

      public List<Criterion> getClusterCriteria()
      Get the ordered list of Criterion 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

      public Optional<ComputeResources> getComputeResources()
      Get any default compute resources that were requested for this command.
      Returns:
      The ComputeResources or Optional.empty()
    • getImages

      public Map<String,Image> 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

      public Optional<String> getRequestedId()
      Get the ID the user has requested for this resource if one was added.
      Specified by:
      getRequestedId in interface CommonRequest
      Returns:
      The ID wrapped in an Optional