public interface PlanManager
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends Step> |
getCandidates(java.util.Collection<PodInstanceRequirement> dirtyAssets)
Determines the next
Step s 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)
Step
s that should be considered for scheduling. Step
s that are being selected
by other PlanManager
s are provided as dirtyAssets
as a hint to this PlanManager
to assist
with scheduling.dirtyAssets
- Other Step
s/assets that are already claimed for scheduling elsewhereStep
s that can be scheduled or an empty Collection when there is no Step
to
schedule, which may happen if for example all incomplete Step
s are already being worked on by
other PlanManager
svoid 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