@Override public DoPreUpgradeResponseProto doPreUpgrade(RpcController controller, DoPreUpgradeRequestProto request) throws ServiceException { try { impl.doPreUpgrade(convert(request.getJid())); return DoPreUpgradeResponseProto.getDefaultInstance(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public void doPreUpgrade(String jid) throws IOException { try { rpcProxy.doPreUpgrade(NULL_CONTROLLER, DoPreUpgradeRequestProto.newBuilder() .setJid(convertJournalId(jid)) .build()); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }