@Override public void triggerBlockReport(BlockReportOptions options) throws IOException { try { rpcProxy.triggerBlockReport(NULL_CONTROLLER, TriggerBlockReportRequestProto.newBuilder(). setIncremental(options.isIncremental()). build()); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }
@Override public TriggerBlockReportResponseProto triggerBlockReport( RpcController unused, TriggerBlockReportRequestProto request) throws ServiceException { try { impl.triggerBlockReport(new BlockReportOptions.Factory(). setIncremental(request.getIncremental()).build()); } catch (IOException e) { throw new ServiceException(e); } return TRIGGER_BLOCK_REPORT_RESP; }