Class ExecutionResourceCriteria
java.lang.Object
com.netflix.genie.common.internal.dtos.ExecutionResourceCriteria
- All Implemented Interfaces:
Serializable
Container for various options for user supplying criteria for the execution environment of a job.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the ordered list of ids the user desires to override the applications associated with selected command with.Get the ordered list of criteria the system should use to find a cluster for job execution.
-
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
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
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
-