@Override public RollEditsResponseProto rollEdits(RpcController controller, RollEditsRequestProto request) throws ServiceException { try { long txid = server.rollEdits(); return RollEditsResponseProto.newBuilder() .setNewSegmentTxId(txid) .build(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public long rollEdits() throws AccessControlException, IOException { try { RollEditsResponseProto resp = rpcProxy.rollEdits(null, VOID_ROLLEDITS_REQUEST); return resp.getNewSegmentTxId(); } catch (ServiceException se) { throw ProtobufHelper.getRemoteException(se); } }
@Override public long rollEdits() throws IOException { try { RollEditsResponseProto resp = rpcProxy.rollEdits(null, VOID_ROLLEDITS_REQUEST); return resp.getNewSegmentTxId(); } catch (ServiceException se) { throw ProtobufHelper.getRemoteException(se); } }