Search in sources :

Example 1 with MultiGetBuildSlaveRealTimeLogsRequest

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

the class DistBuildService method fetchSlaveLogLines.

public MultiGetBuildSlaveRealTimeLogsResponse fetchSlaveLogLines(final StampedeId stampedeId, final List<LogLineBatchRequest> logLineRequests) throws IOException {
    MultiGetBuildSlaveRealTimeLogsRequest getLogLinesRequest = new MultiGetBuildSlaveRealTimeLogsRequest();
    getLogLinesRequest.setStampedeId(stampedeId);
    getLogLinesRequest.setBatches(logLineRequests);
    FrontendRequest request = new FrontendRequest();
    request.setType(FrontendRequestType.GET_BUILD_SLAVE_REAL_TIME_LOGS);
    request.setMultiGetBuildSlaveRealTimeLogsRequest(getLogLinesRequest);
    FrontendResponse response = makeRequestChecked(request);
    return response.getMultiGetBuildSlaveRealTimeLogsResponse();
}
Also used : MultiGetBuildSlaveRealTimeLogsRequest(com.facebook.buck.distributed.thrift.MultiGetBuildSlaveRealTimeLogsRequest) FrontendResponse(com.facebook.buck.distributed.thrift.FrontendResponse) FrontendRequest(com.facebook.buck.distributed.thrift.FrontendRequest)

Aggregations

FrontendRequest (com.facebook.buck.distributed.thrift.FrontendRequest)1 FrontendResponse (com.facebook.buck.distributed.thrift.FrontendResponse)1 MultiGetBuildSlaveRealTimeLogsRequest (com.facebook.buck.distributed.thrift.MultiGetBuildSlaveRealTimeLogsRequest)1