public interface PlacementRule
null Offer with zero Resources.
PlacementRules may contain multiple internal checks, and may even be a composition of other
PlacementRules.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Must be explicitly implemented by all PlacementRules.
|
EvaluationOutcome |
filter(Offer offer,
PodInstance podInstance,
java.util.Collection<TaskInfo> tasks)
Returns whether the provided
Offer, combined with the accompanying
TaskInfos, passes or fails this placement constraint. |
java.util.Collection<PlacementField> |
getPlacementFields()
Returns the
PlacementFields to which this rule applies. |
EvaluationOutcome filter(Offer offer, PodInstance podInstance, java.util.Collection<TaskInfo> tasks)
Offer, combined with the accompanying
TaskInfos, passes or fails this placement constraint.offer - the offer to be examinedtasks - the currently deployed tasks in the system, possibly including a duplicate
of the task being launched as represented in the offerRequirement. Use
PlacementUtils.areEquivalent(TaskInfo, PodInstance) to detect
duplicatesEvaluationOutcome object describing whether the placement succeeded or failed and whyjava.util.Collection<PlacementField> getPlacementFields()
PlacementFields to which this rule applies.boolean equals(java.lang.Object o)
equals in class java.lang.ObjectTaskUtils.areDifferent(
com.mesosphere.sdk.specification.TaskSpec,
com.mesosphere.sdk.specification.TaskSpec)