public interface PlanManager
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<? extends Step> |
getCandidates(java.util.Collection<PodInstanceRequirement> dirtyAssets)
Determines the next
Steps that should be considered for scheduling. |
java.util.Set<PodInstanceRequirement> |
getDirtyAssets()
Returns a
Set of assets that are dirty, i.e. |
Plan |
getPlan() |
void |
update(TaskStatus status)
Notifies constituent elements of TaskStatus updates.
|
Plan getPlan()
java.util.Collection<? extends Step> getCandidates(java.util.Collection<PodInstanceRequirement> dirtyAssets)
Steps that should be considered for scheduling. Steps that are being selected
by other PlanManagers are provided as dirtyAssets as a hint to this PlanManager to assist
with scheduling.dirtyAssets - Other Steps/assets that are already claimed for scheduling elsewhereSteps that can be scheduled or an empty Collection when there is no Step to
schedule, which may happen if for example all incomplete Steps are already being worked on by
other PlanManagersvoid update(TaskStatus status)
status - A TaskStatus from Mesos.java.util.Set<PodInstanceRequirement> getDirtyAssets()
Set of assets that are dirty, i.e. being worked upon by the Plan that this
PlanManager is working on.Set containing assets that are dirty