use of mesos.internal.Messages.ResourceRequestMessage in project jesos by groupon.
the class InternalSchedulerDriver method requestResources.
@Override
public Status requestResources(final Collection<Protos.Request> requests) {
checkNotNull(requests, "requests is null");
if (!context.isStateMachine(DRIVER_RUNNING)) {
return context.getStateMachine();
}
final ResourceRequestMessage message = ResourceRequestMessage.newBuilder().setFrameworkId(context.getFrameworkId()).addAllRequests(requests).build();
eventBus.post(new RemoteMessageEnvelope(context.getDriverUPID(), context.getMasterUPID(), message));
return context.getStateMachine();
}
Aggregations