use of mesos.internal.Messages.ReconcileTasksMessage in project jesos by groupon.
the class InternalSchedulerDriver method reconcileTasks.
@Override
public Status reconcileTasks(final Collection<TaskStatus> statuses) {
if (!context.isStateMachine(DRIVER_RUNNING)) {
return context.getStateMachine();
}
final ReconcileTasksMessage message = ReconcileTasksMessage.newBuilder().setFrameworkId(context.getFrameworkId()).addAllStatuses(statuses).build();
eventBus.post(new RemoteMessageEnvelope(context.getDriverUPID(), context.getMasterUPID(), message));
return context.getStateMachine();
}
Aggregations