public class DefaultPlanCoordinator extends java.lang.Object implements PlanCoordinator
DefaultPlanCoordinator is an Observable and will forward updates from its plans.| Constructor and Description |
|---|
DefaultPlanCoordinator(java.util.Collection<PlanManager> planManagers) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Step> |
getCandidates()
Returns the set of steps across all
PlanManagers which are eligible for execution. |
java.util.Collection<PlanManager> |
getPlanManagers() |
public DefaultPlanCoordinator(java.util.Collection<PlanManager> planManagers)
public java.util.List<Step> getCandidates()
PlanManagers which are eligible for execution. Execution normally
means that these steps are ready to be matched with offers and launch tasks.getCandidates in interface PlanCoordinatorSteps which are eligible for processing.public java.util.Collection<PlanManager> getPlanManagers()
getPlanManagers in interface PlanCoordinatorPlanManagers which the PlanCoordinator coordinates.