@Override public MetaSaveResponseProto metaSave(RpcController controller, MetaSaveRequestProto req) throws ServiceException { try { server.metaSave(req.getFilename()); return VOID_METASAVE_RESPONSE; } catch (IOException e) { throw new ServiceException(e); } }
@Override public void metaSave(String filename) throws IOException { MetaSaveRequestProto req = MetaSaveRequestProto.newBuilder() .setFilename(filename).build(); try { rpcProxy.metaSave(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }