public class NotRule extends java.lang.Object implements PlacementRule
| Constructor and Description |
|---|
NotRule(PlacementRule rule) |
| 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. |
int |
hashCode() |
java.lang.String |
toString() |
public NotRule(PlacementRule rule)
public EvaluationOutcome filter(Offer offer, PodInstance podInstance, java.util.Collection<TaskInfo> tasks)
PlacementRuleOffer, combined with the accompanying
TaskInfos, passes or fails this placement constraint.filter in interface PlacementRuleoffer - 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 whypublic java.util.Collection<PlacementField> getPlacementFields()
PlacementRulePlacementFields to which this rule applies.getPlacementFields in interface PlacementRulepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
PlacementRuleequals in interface PlacementRuleequals in class java.lang.ObjectTaskUtils.areDifferent(
com.mesosphere.sdk.specification.TaskSpec,
com.mesosphere.sdk.specification.TaskSpec)public int hashCode()
hashCode in class java.lang.Object