Search in sources :

Example 1 with GetTargetsToBuildRequest

use of com.facebook.buck.distributed.thrift.GetTargetsToBuildRequest in project buck by facebook.

the class ThriftCoordinatorClient method getTargetsToBuild.

public GetTargetsToBuildResponse getTargetsToBuild(String minionId) throws IOException {
    LOG.debug(String.format("Minion [%s] is requesting targets to build.", minionId));
    Preconditions.checkNotNull(client, "Client was not started.");
    GetTargetsToBuildRequest request = new GetTargetsToBuildRequest().setMinionId(minionId).setStampedeId(stampedeId);
    try {
        GetTargetsToBuildResponse response = client.getTargetsToBuild(request);
        return response;
    } catch (TException e) {
        throw new ThriftException(e);
    }
}
Also used : TException(org.apache.thrift.TException) ThriftException(com.facebook.buck.slb.ThriftException) GetTargetsToBuildRequest(com.facebook.buck.distributed.thrift.GetTargetsToBuildRequest) GetTargetsToBuildResponse(com.facebook.buck.distributed.thrift.GetTargetsToBuildResponse)

Aggregations

GetTargetsToBuildRequest (com.facebook.buck.distributed.thrift.GetTargetsToBuildRequest)1 GetTargetsToBuildResponse (com.facebook.buck.distributed.thrift.GetTargetsToBuildResponse)1 ThriftException (com.facebook.buck.slb.ThriftException)1 TException (org.apache.thrift.TException)1