public interface Reconciler
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReconciled()
Returns whether reconciliation is complete.
|
void |
reconcile(SchedulerDriver driver)
Triggers any needed reconciliation against the provided
driver. |
void |
start()
Starts reconciliation against the provided tasks, which should represent what the Scheduler
currently knows about task status.
|
void |
update(TaskStatus status)
Used to update the Reconciler with current task status.
|
void start()
NOTE: THIS CALL MUST BE THREAD-SAFE AGAINST OTHER RECONCILER CALLS
void reconcile(SchedulerDriver driver)
driver. This call is expected
to occur multiple times throughout the lifespan of the scheduler. It SHOULD be invoked each
time that the scheduler receives a TaskStatus update or an Offer.
NOTE: THIS CALL MUST BE THREAD-SAFE AGAINST OTHER RECONCILER CALLS
driver - The SchedulerDriver instance that the Reconciler should
use to query the Mesos master for TaskStatus.void update(TaskStatus status)
NOTE: THIS CALL MUST BE THREAD-SAFE AGAINST OTHER RECONCILER CALLS
status - The TaskStatus used to update the Reconciler.boolean isReconciled()
NOTE: THIS CALL MUST BE THREAD-SAFE AGAINST OTHER RECONCILER CALLS