Search in sources :

Example 1 with Reconcile

use of org.apache.mesos.v1.scheduler.Protos.Call.Reconcile in project Singularity by HubSpot.

the class SingularityMesosSchedulerClient method reconcile.

/**
 * Sent by the scheduler to query the status of non-terminal tasks. This causes the master to send back UPDATE
 * events for each task in the list. Tasks that are no longer known to Mesos will result in TASK_LOST updates.
 * If the list of tasks is empty, master will send UPDATE events for all currently known tasks of the framework.
 *
 * @param tasks
 */
public void reconcile(List<Reconcile.Task> tasks) {
    Builder reconsile = build().setReconcile(Reconcile.newBuilder().addAllTasks(tasks));
    sendCall(reconsile, Type.RECONCILE);
}
Also used : MesosClientBuilder(com.mesosphere.mesos.rx.java.MesosClientBuilder) ProtobufMesosClientBuilder(com.mesosphere.mesos.rx.java.protobuf.ProtobufMesosClientBuilder) Builder(org.apache.mesos.v1.scheduler.Protos.Call.Builder)

Aggregations

MesosClientBuilder (com.mesosphere.mesos.rx.java.MesosClientBuilder)1 ProtobufMesosClientBuilder (com.mesosphere.mesos.rx.java.protobuf.ProtobufMesosClientBuilder)1 Builder (org.apache.mesos.v1.scheduler.Protos.Call.Builder)1