public class RoundRobinByAttributeRule extends AbstractRoundRobinRule
distinctKeyCount, taskFilter| Constructor and Description |
|---|
RoundRobinByAttributeRule(java.lang.String attribute,
java.util.Optional<java.lang.Integer> attributeValueCount) |
RoundRobinByAttributeRule(java.lang.String attributeName,
java.util.Optional<java.lang.Integer> attributeValueCount,
StringMatcher taskFilter) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getKey(Offer offer)
Returns a key to round robin against from the provided
TaskInfo, or null if
none was found. |
protected java.lang.String |
getKey(TaskInfo task)
Returns a key to round robin against from the provided
TaskInfo, or null if
none was found. |
java.util.Collection<PlacementField> |
getPlacementFields()
Returns the
PlacementFields to which this rule applies. |
java.lang.String |
toString() |
equals, filter, hashCodepublic RoundRobinByAttributeRule(java.lang.String attribute,
java.util.Optional<java.lang.Integer> attributeValueCount)
public RoundRobinByAttributeRule(java.lang.String attributeName,
java.util.Optional<java.lang.Integer> attributeValueCount,
StringMatcher taskFilter)
protected java.lang.String getKey(Offer offer)
AbstractRoundRobinRuleTaskInfo, or null if
none was found.getKey in class AbstractRoundRobinRuleprotected java.lang.String getKey(TaskInfo task)
AbstractRoundRobinRuleTaskInfo, or null if
none was found.getKey in class AbstractRoundRobinRulepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Collection<PlacementField> getPlacementFields()
PlacementRulePlacementFields to which this rule applies.