Package com.sun.enterprise.ee.cms.spi

Examples of com.sun.enterprise.ee.cms.spi.MemberStates


            return false;
        }
    }
   
    static boolean isInstanceReady(Signal notification) {
        MemberStates state = ((JoinNotificationSignal)notification).getMemberState();
        if (_logger.isLoggable(Level.FINE)) {       
            _logger.fine("isAliveAndReady = " + state.equals(MemberStates.ALIVEANDREADY));
        }
        return state.equals(MemberStates.ALIVEANDREADY);
    }
View Full Code Here


            (((PlannedShutdownSignal)signal).getEventSubType().equals(
                    GMSConstants.shutdownType.GROUP_SHUTDOWN));
            onFailure(signal.getGroupName(), signal.getMemberToken(),
                    isClusterShutdown);
        } else if (signal instanceof JoinNotificationSignal){
             MemberStates memberState =
                ((JoinNotificationSignal) signal).getMemberState();
            if (_logger.isLoggable(Level.FINE)) {
                _logger.log(Level.FINE,
                    "clb.recieved_join_notification_for_instance",
                    new Object[]{signal.getMemberToken(), clusterName, memberState.name()});
            }
            //if member state is ALIVEANDREADY, then mark this instance as
            //recovered, this has to be case of network outage
            //if member state is READY then JOINANDREADY event will come,
            //and instance will be marked healthy then
View Full Code Here

            //Changing such that threshold of 6 seconds and
            //timeout of 0 seconds is used. This will ensure value
            //is returned from maintained GMS state cache.
            //These values will later be used as default and this
            //change will be reverted back
            MemberStates state = groupHandle.getMemberState(core,
                    6000L, 0L);
            if (state == MemberStates.ALIVEANDREADY
                    || state == MemberStates.READY) {
                healthyInstances.add(core);
            } else if (state == MemberStates.UNKNOWN) {
                MemberStates pollState = groupHandle.getMemberState(core, 6000L, 3000L);
                if ( pollState == MemberStates.ALIVEANDREADY ||  pollState == MemberStates.READY) {
                    healthyInstances.add(core);
                } else {
                    long duration = System.currentTimeMillis() - startTime;
                    if (logger.isLoggable(Level.FINER)) {
View Full Code Here

            //Changing such that threshold of 6 seconds and
            //timeout of 0 seconds is used. This will ensure value
            //is returned from maintained GMS state cache.
            //These values will later be used as default and this
            //change will be reverted back
            MemberStates state = groupHandle.getMemberState(core,
                    6000L, 0L);
            if (state == MemberStates.ALIVEANDREADY
                    || state == MemberStates.READY) {
                healthyInstances.add(core);
            } else if (state == MemberStates.UNKNOWN) {
                MemberStates pollState = groupHandle.getMemberState(core, 6000L, 3000L);
                if ( pollState == MemberStates.ALIVEANDREADY ||  pollState == MemberStates.READY) {
                    healthyInstances.add(core);
                } else {
                    long duration = System.currentTimeMillis() - startTime;
                    if (_logger.isLoggable(Level.FINER)) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.cms.spi.MemberStates

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.