Search in sources :

Example 1 with BuildStatusRequest

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

the class DistBuildService method createFrontendBuildStatusRequest.

public static FrontendRequest createFrontendBuildStatusRequest(StampedeId stampedeId) {
    BuildStatusRequest buildStatusRequest = new BuildStatusRequest();
    buildStatusRequest.setStampedeId(stampedeId);
    FrontendRequest frontendRequest = new FrontendRequest();
    frontendRequest.setType(FrontendRequestType.BUILD_STATUS);
    frontendRequest.setBuildStatusRequest(buildStatusRequest);
    return frontendRequest;
}
Also used : FrontendRequest(com.facebook.buck.distributed.thrift.FrontendRequest) BuildStatusRequest(com.facebook.buck.distributed.thrift.BuildStatusRequest)

Example 2 with BuildStatusRequest

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

the class DistBuildService method getCurrentBuildJobState.

public BuildJob getCurrentBuildJobState(StampedeId id) throws IOException {
    BuildStatusRequest statusRequest = new BuildStatusRequest();
    statusRequest.setStampedeId(id);
    FrontendRequest request = new FrontendRequest();
    request.setType(FrontendRequestType.BUILD_STATUS);
    request.setBuildStatusRequest(statusRequest);
    FrontendResponse response = makeRequestChecked(request);
    BuildJob job = response.getBuildStatusResponse().getBuildJob();
    Preconditions.checkState(job.getStampedeId().equals(id));
    return job;
}
Also used : FrontendResponse(com.facebook.buck.distributed.thrift.FrontendResponse) FrontendRequest(com.facebook.buck.distributed.thrift.FrontendRequest) BuildStatusRequest(com.facebook.buck.distributed.thrift.BuildStatusRequest) BuildJob(com.facebook.buck.distributed.thrift.BuildJob)

Aggregations

BuildStatusRequest (com.facebook.buck.distributed.thrift.BuildStatusRequest)2 FrontendRequest (com.facebook.buck.distributed.thrift.FrontendRequest)2 BuildJob (com.facebook.buck.distributed.thrift.BuildJob)1 FrontendResponse (com.facebook.buck.distributed.thrift.FrontendResponse)1