@ThreadSafe @Service(value=BalancingPolicy.class) @Properties(value=@Property(name="type",value="even")) public final class EvenBalancingPolicy extends io.fabric8.api.scr.AbstractComponent implements BalancingPolicy
| Constructor and Description |
|---|
EvenBalancingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
An identifier for the policy.
|
void |
rebalance(TaskContext context,
Collection<String> workItems,
Collection<String> members)
Distribute the items to the specified members.
|
public static final String TYPE
public String getType()
BalancingPolicygetType in interface BalancingPolicypublic void rebalance(TaskContext context, Collection<String> workItems, Collection<String> members)
BalancingPolicyrebalance in interface BalancingPolicycontext - The context of the task.workItems - An array of the workItems path.members - An array containing the eid of group members.Copyright © 2011–2014 Red Hat. All rights reserved.