public class RoundRobinByRegionRule extends AbstractRoundRobinRule
distinctKeyCount, taskFilter| Constructor and Description |
|---|
RoundRobinByRegionRule(java.lang.Integer regionCount) |
RoundRobinByRegionRule(java.util.Optional<java.lang.Integer> regionCount) |
RoundRobinByRegionRule(java.util.Optional<java.lang.Integer> regionCount,
StringMatcher taskFilter) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getKey(Protos.Offer offer)
Returns a key to round robin against from the provided
TaskInfo, or null if
none was found. |
protected java.lang.String |
getKey(Protos.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 RoundRobinByRegionRule(java.lang.Integer regionCount)
public RoundRobinByRegionRule(java.util.Optional<java.lang.Integer> regionCount)
public RoundRobinByRegionRule(java.util.Optional<java.lang.Integer> regionCount,
StringMatcher taskFilter)
protected java.lang.String getKey(Protos.Offer offer)
AbstractRoundRobinRuleTaskInfo, or null if
none was found.getKey in class AbstractRoundRobinRuleprotected java.lang.String getKey(Protos.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.