use of org.apache.mesos.v1.Protos.Filters in project Singularity by HubSpot.
the class SingularityMesosSchedulerClient method accept.
public void accept(List<OfferID> offerIds, List<Offer.Operation> offerOperations, Filters filters) {
Builder accept = build().setAccept(Accept.newBuilder().addAllOfferIds(offerIds).addAllOperations(offerOperations).setFilters(filters));
sendCall(accept, Type.ACCEPT);
}
use of org.apache.mesos.v1.Protos.Filters in project Singularity by HubSpot.
the class SingularityMesosSchedulerClient method revive.
/**
* Sent by the scheduler to remove any/all filters that it has previously set via ACCEPT or DECLINE calls.
*/
public void revive() {
Builder revive = build();
sendCall(revive, Type.REVIVE);
}
use of org.apache.mesos.v1.Protos.Filters in project Singularity by HubSpot.
the class SingularityMesosSchedulerClient method decline.
public void decline(List<OfferID> offerIds, Filters filters) {
Builder decline = build().setDecline(Decline.newBuilder().addAllOfferIds(offerIds).setFilters(filters));
sendCall(decline, Type.DECLINE);
}
Aggregations