Search in sources :

Example 1 with FinishedBuildingRequest

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

the class ThriftCoordinatorClient method finishedBuilding.

public FinishedBuildingResponse finishedBuilding(String minionId, int minionExitCode) throws IOException {
    LOG.debug(String.format("Minion [%s] is reporting that it finished building.", minionId));
    Preconditions.checkNotNull(client, "Client was not started.");
    FinishedBuildingRequest request = new FinishedBuildingRequest().setStampedeId(stampedeId).setMinionId(minionId).setBuildExitCode(minionExitCode);
    try {
        FinishedBuildingResponse response = client.finishedBuilding(request);
        return response;
    } catch (TException e) {
        throw new ThriftException(e);
    }
}
Also used : FinishedBuildingResponse(com.facebook.buck.distributed.thrift.FinishedBuildingResponse) TException(org.apache.thrift.TException) ThriftException(com.facebook.buck.slb.ThriftException) FinishedBuildingRequest(com.facebook.buck.distributed.thrift.FinishedBuildingRequest)

Aggregations

FinishedBuildingRequest (com.facebook.buck.distributed.thrift.FinishedBuildingRequest)1 FinishedBuildingResponse (com.facebook.buck.distributed.thrift.FinishedBuildingResponse)1 ThriftException (com.facebook.buck.slb.ThriftException)1 TException (org.apache.thrift.TException)1