Search in sources :

Example 1 with ReconcileTasksMessage

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();
}
Also used : RemoteMessageEnvelope(com.groupon.mesos.scheduler.SchedulerMessageEnvelope.RemoteMessageEnvelope) ReconcileTasksMessage(mesos.internal.Messages.ReconcileTasksMessage)

Aggregations

RemoteMessageEnvelope (com.groupon.mesos.scheduler.SchedulerMessageEnvelope.RemoteMessageEnvelope)1 ReconcileTasksMessage (mesos.internal.Messages.ReconcileTasksMessage)1