public class RoundRobinByHostnameRule extends AbstractRoundRobinRule
distinctKeyCount, taskFilter| Constructor and Description |
|---|
RoundRobinByHostnameRule(java.util.Optional<java.lang.Integer> agentCount) |
RoundRobinByHostnameRule(java.util.Optional<java.lang.Integer> agentCount,
StringMatcher taskFilter) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getKey(Offer offer)
Returns a value to round robin against from the provided
Offer. |
protected java.lang.String |
getKey(TaskInfo task)
Returns a value to round robin against from the provided
TaskInfo. |
java.util.Collection<PlacementField> |
getPlacementFields()
Returns the
PlacementFields to which this rule applies. |
java.lang.String |
toString() |
equals, filter, hashCodepublic RoundRobinByHostnameRule(java.util.Optional<java.lang.Integer> agentCount)
public RoundRobinByHostnameRule(java.util.Optional<java.lang.Integer> agentCount,
StringMatcher taskFilter)
protected java.lang.String getKey(Offer offer)
Offer.getKey in class AbstractRoundRobinRuleprotected java.lang.String getKey(TaskInfo task)
TaskInfo.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.