use of org.apache.mesos.v1.Protos.Labels.Builder 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);
}
use of org.apache.mesos.v1.Protos.Labels.Builder in project Singularity by HubSpot.
the class SingularityMesosSchedulerClient method kill.
public void kill(TaskID taskId, AgentID agentId) {
Builder kill = build().setKill(Kill.newBuilder().setTaskId(taskId).setAgentId(agentId));
sendCall(kill, Type.KILL);
}
Aggregations