// TODO(ohler): Don't use protobuf return type
@Override
public GetShuffleStatusResponse getStatus(String shuffleId) {
byte[] responseBytes = ApiProxy.makeSyncCall("file", "GetShuffleStatus",
GetShuffleStatusRequest.newBuilder().setShuffleName(shuffleId).build().toByteArray());
GetShuffleStatusResponse response;
try {
response = GetShuffleStatusResponse.parseFrom(responseBytes);
} catch (InvalidProtocolBufferException e) {
throw new RuntimeException("Failed to parse GetShuffleStatusResponse: "
+ SerializationUtil.prettyBytes(responseBytes), e);