Package com.sleepycat.je.rep

Examples of com.sleepycat.je.rep.MasterStateException


    void masterTransitionCleanup()
        throws DatabaseException {
        hardRecoveryElectionException = null;
        replay.abortOldTxns();
        consistencyTracker.forceTripLatches
            (new MasterStateException(repNode.getRepImpl().
                                      getStateChangeEvent()));
    }
View Full Code Here


        }

        /* Check if the node itself is the master. */
        final InetSocketAddress masterAddress = getMasterSocket();
        if (masterAddress.equals(node.getSocketAddress())) {
            throw new MasterStateException(masterErrorMessage);
        }
    }
View Full Code Here

            Fail fail = (Fail) resp;
            switch (fail.getReason()) {
                case MEMBER_NOT_FOUND:
                    return new MemberNotFoundException(fail.getMessage());
                case IS_MASTER:
                    return new MasterStateException(fail.getMessage());
                case IS_ALIVE:
                    return new ReplicaStateException(fail.getMessage());
                case TRANSFER_FAIL:
                    return new MasterTransferFailureException
                        (fail.getMessage());
View Full Code Here

                                              " It had been removed.");
        }

        /* Check if the node is the master itself. */
        if (nodeName.equals(getNodeName())) {
            throw new MasterStateException(getRepImpl().
                                           getStateChangeEvent());
        }
    }
View Full Code Here

                                              " It had been removed.");
        }
        final InetSocketAddress masterAddress= getMasterSocket();
        /* Check if the node is itself the master. */
        if (masterAddress.equals(node.getSocketAddress())) {
            throw new MasterStateException("Cannot remove an active master");
        }
        final MessageExchange me = groupProtocol.new MessageExchange
            (masterAddress,
             GroupService.SERVICE_NAME,
             groupProtocol.new RemoveMember(nodeName));
View Full Code Here

            switch (fail.getReason()) {
                case MEMBER_NOT_FOUND:
                    return new MemberNotFoundException(fail.getMessage());

                case IS_MASTER:
                    return new MasterStateException(fail.getMessage());

                default:
                    EnvironmentFailureException.
                        unexpectedState(fail.getMessage());
            }
View Full Code Here

    void masterTransitionCleanup()
        throws DatabaseException {

        replay.abortOldTxns();
        consistencyTracker.forceTripLatches
            (new MasterStateException(repNode.getRepImpl().
                                      getStateChangeEvent()));
    }
View Full Code Here

                                              "the group:" + group.getName() +
                                              " It had been removed.");
        }
        /* Check if the node is the master itself. */
        if (nodeName.equals(getNodeName())) {
            throw new MasterStateException(getRepImpl().
                                           getStateChangeEvent());
        }

        /*
         * First remove it from the cached group, effectively setting new
View Full Code Here

TOP

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

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.