Search in sources :

Example 1 with ReviveOffersMessage

use of mesos.internal.Messages.ReviveOffersMessage in project jesos by groupon.

the class InternalSchedulerDriver method reviveOffers.

@Override
public Status reviveOffers() {
    if (!context.isStateMachine(DRIVER_RUNNING)) {
        return context.getStateMachine();
    }
    final ReviveOffersMessage message = ReviveOffersMessage.newBuilder().setFrameworkId(context.getFrameworkId()).build();
    eventBus.post(new RemoteMessageEnvelope(context.getDriverUPID(), context.getMasterUPID(), message));
    return context.getStateMachine();
}
Also used : ReviveOffersMessage(mesos.internal.Messages.ReviveOffersMessage) RemoteMessageEnvelope(com.groupon.mesos.scheduler.SchedulerMessageEnvelope.RemoteMessageEnvelope)

Aggregations

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