Package org.xtreemfs.babudb.replication.service.ReplicationStage

Examples of org.xtreemfs.babudb.replication.service.ReplicationStage.Range


        LSN next = new LSN (actual.getViewId(), actual.getSequenceNo() + 1L);

        if (stage.missing != null &&
            next.compareTo(stage.missing.end) < 0) {
           
            stage.missing = new Range(actual, stage.missing.end);
           
            stage.setLogic(REQUEST, "There are still some logEntries " +
                    "missing after loading the database.");
        } else {
            String msg = (loaded) ? "Loading finished with LSN(" + actual +
View Full Code Here


            Logging.logError(Logging.LEVEL_WARN, this, lee);
            finish();
        } catch (BabuDBException be) {
            // the insert failed due an DB error
            Logging.logError(Logging.LEVEL_WARN, this, be);
            stage.missing = new Range(stage.getBabuDB().getState(), stage.missing.end);
            stage.setLogic(LOAD, be.getMessage());
        } finally {
            if (logEntries!=null) {
                for (ReusableBuffer buf : logEntries) {
                    if (buf != null) BufferPool.free(buf);
View Full Code Here

        LSN next = new LSN (actual.getViewId(), actual.getSequenceNo() + 1L);
       
        // we are still missing some entries (the request was too large)
        // update the missing entries
        if (next.compareTo(stage.missing.end) < 0) {
            stage.missing = new Range(actual, stage.missing.end);

         // all went fine --> back to basic
        } else {
            stage.missing = null;
            stage.setLogic(BASIC, "Request went fine, we can go on with the basicLogic.");
View Full Code Here

            stage.finalizeRequest(op);
            return;
        } else if(!lsn.equals(expected)){
            // we missed one or more entries
            stage.getQueue().add(op);
            stage.missing = new Range(actual, lsn);
            stage.setLogic(REQUEST, "We missed some LogEntries from " +
                    actual.toString() + " to "+ lsn.toString() + ".");
            return;
        }
       
View Full Code Here

TOP

Related Classes of org.xtreemfs.babudb.replication.service.ReplicationStage.Range

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.