Class ExecutionResourceCriteria

java.lang.Object
com.netflix.genie.common.internal.dtos.ExecutionResourceCriteria
All Implemented Interfaces:
Serializable

public class ExecutionResourceCriteria extends Object implements Serializable
Container for various options for user supplying criteria for the execution environment of a job.
Since:
4.0.0
See Also:
  • Constructor Details

    • ExecutionResourceCriteria

      public ExecutionResourceCriteria(List<Criterion> clusterCriteria, Criterion commandCriterion, @Nullable List<String> applicationIds)
      Constructor.
      Parameters:
      clusterCriteria - The ordered list of criteria used to find a cluster for job execution. Not null/empty.
      commandCriterion - The command criterion used to find a command to run on the cluster for job execution. Not null.
      applicationIds - The ordered list of application ids to override the applications associated with selected command for job execution. Optional. Any blanks will be removed
  • Method Details

    • getClusterCriteria

      public List<Criterion> getClusterCriteria()
      Get the ordered list of criteria the system should use to find a cluster for job execution. The underlying implementation is immutable and any attempt to modify will throw an exception.
      Returns:
      The list of criterion in the order they should be evaluated along with supplied command criterion
    • getApplicationIds

      public List<String> getApplicationIds()
      Get the ordered list of ids the user desires to override the applications associated with selected command with. This list is immutable and any attempt to modify will throw an exception.
      Returns:
      The ids in the order they should be setup by the execution module