use of com.facebook.buck.distributed.thrift.FrontendRequest in project buck by facebook.
the class DistBuildService method createFetchSourceFileRequest.
public static FrontendRequest createFetchSourceFileRequest(String fileHash) {
FetchSourceFilesRequest fetchSourceFileRequest = new FetchSourceFilesRequest();
fetchSourceFileRequest.setContentHashesIsSet(true);
fetchSourceFileRequest.addToContentHashes(fileHash);
FrontendRequest frontendRequest = new FrontendRequest();
frontendRequest.setType(FrontendRequestType.FETCH_SRC_FILES);
frontendRequest.setFetchSourceFilesRequest(fetchSourceFileRequest);
return frontendRequest;
}
use of com.facebook.buck.distributed.thrift.FrontendRequest in project buck by facebook.
the class DistBuildService method fetchBuildSlaveLogDir.
public MultiGetBuildSlaveLogDirResponse fetchBuildSlaveLogDir(final StampedeId stampedeId, final List<RunId> runIds) throws IOException {
MultiGetBuildSlaveLogDirRequest getBuildSlaveLogDirRequest = new MultiGetBuildSlaveLogDirRequest();
getBuildSlaveLogDirRequest.setStampedeId(stampedeId);
getBuildSlaveLogDirRequest.setRunIds(runIds);
FrontendRequest request = new FrontendRequest();
request.setType(FrontendRequestType.GET_BUILD_SLAVE_LOG_DIR);
request.setMultiGetBuildSlaveLogDirRequest(getBuildSlaveLogDirRequest);
FrontendResponse response = makeRequestChecked(request);
return response.getMultiGetBuildSlaveLogDirResponse();
}
use of com.facebook.buck.distributed.thrift.FrontendRequest 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;
}
use of com.facebook.buck.distributed.thrift.FrontendRequest in project buck by facebook.
the class DistBuildService method setBuckVersion.
public void setBuckVersion(StampedeId id, BuckVersion buckVersion) throws IOException {
SetBuckVersionRequest setBuckVersionRequest = new SetBuckVersionRequest();
setBuckVersionRequest.setStampedeId(id);
setBuckVersionRequest.setBuckVersion(buckVersion);
FrontendRequest request = new FrontendRequest();
request.setType(FrontendRequestType.SET_BUCK_VERSION);
request.setSetBuckVersionRequest(setBuckVersionRequest);
makeRequestChecked(request);
}
use of com.facebook.buck.distributed.thrift.FrontendRequest in project buck by facebook.
the class DistBuildService method createFetchBuildGraphRequest.
public static FrontendRequest createFetchBuildGraphRequest(StampedeId stampedeId) {
FetchBuildGraphRequest fetchBuildGraphRequest = new FetchBuildGraphRequest();
fetchBuildGraphRequest.setStampedeId(stampedeId);
FrontendRequest frontendRequest = new FrontendRequest();
frontendRequest.setType(FrontendRequestType.FETCH_BUILD_GRAPH);
frontendRequest.setFetchBuildGraphRequest(fetchBuildGraphRequest);
return frontendRequest;
}
Aggregations