public GetCurrentEditLogTxidResponseProto getCurrentEditLogTxid(RpcController controller, GetCurrentEditLogTxidRequestProto req) throws ServiceException { try { return GetCurrentEditLogTxidResponseProto.newBuilder().setTxid( server.getCurrentEditLogTxid()).build(); } catch (IOException e) { throw new ServiceException(e); } }
public long getCurrentEditLogTxid() throws IOException { GetCurrentEditLogTxidRequestProto req = GetCurrentEditLogTxidRequestProto .getDefaultInstance(); try { return rpcProxy.getCurrentEditLogTxid(null, req).getTxid(); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }