@Override public TruncateResponseProto truncate(RpcController controller, TruncateRequestProto req) throws ServiceException { try { boolean result = server.truncate(req.getSrc(), req.getNewLength(), req.getClientName()); return TruncateResponseProto.newBuilder().setResult(result).build(); } catch (IOException e) { throw new ServiceException(e); } }