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;
}
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;
}
Aggregations