Class ExecutionResourceCriteria
- java.lang.Object
-
- com.netflix.genie.common.external.dtos.v4.ExecutionResourceCriteria
-
- All Implemented Interfaces:
java.io.Serializable
public class ExecutionResourceCriteria extends java.lang.Object implements java.io.Serializable
Container for various options for user supplying criteria for the execution environment of a job.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecutionResourceCriteria(java.util.List<Criterion> clusterCriteria, Criterion commandCriterion, java.util.List<java.lang.String> applicationIds)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getApplicationIds()
Get the ordered list of ids the user desires to override the applications associated with selected command with.java.util.List<Criterion>
getClusterCriteria()
Get the ordered list of criteria the system should use to find a cluster for job execution.
-
-
-
Constructor Detail
-
ExecutionResourceCriteria
public ExecutionResourceCriteria(java.util.List<Criterion> clusterCriteria, Criterion commandCriterion, @Nullable java.util.List<java.lang.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 Detail
-
getClusterCriteria
public java.util.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 java.util.List<java.lang.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
-
-