Package com.sleepycat.je.rep

Examples of com.sleepycat.je.rep.InsufficientReplicasException


        if (requiredAckCount > activeReplicaCount) {
            /* Check for possible activation of Primary */
            if (repNode.tryActivatePrimary()) {
                txn.resetRequiredAckCount();
            } else {
                InsufficientReplicasException ire =
                    new InsufficientReplicasException
                        (txn, ackPolicy, requiredAckCount,
                         repNode.feederManager().activeReplicas());
                LoggerUtils.info(envLogger, this, ire.getMessage());
                throw ire;
            }
        }
        feederTxns.setupForAcks(txn);
    }
View Full Code Here


        }
        if (repNode.tryActivatePrimary()) {
            return;
        }

        throw new InsufficientReplicasException
            (txn, ackPolicy, requiredReplicaCount, activeReplicas());
    }
View Full Code Here

        if (requiredAckCount > activeReplicaCount) {
            /* Check for possible activation of Primary */
            if (repNode.tryActivatePrimary()) {
                txn.resetRequiredAckCount();
            } else {
                InsufficientReplicasException ire =
                    new InsufficientReplicasException
                        (txn, ackPolicy, requiredAckCount,
                         repNode.feederManager().activeReplicas());
                LoggerUtils.info(envLogger, this, ire.getMessage());
                throw ire;
            }
        }
        feederTxns.setupForAcks(txn);
    }
View Full Code Here

        }
        if (repNode.tryActivatePrimary()) {
            return;
        }

        throw new InsufficientReplicasException
            (txn, ackPolicy, requiredReplicaCount, activeReplicas());
    }
View Full Code Here

TOP

Related Classes of com.sleepycat.je.rep.InsufficientReplicasException

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.