Class JoinedAndReadyNotificationSignalImpl

  • All Implemented Interfaces:
    com.sun.enterprise.ee.cms.core.AliveAndReadySignal, com.sun.enterprise.ee.cms.core.GroupStartupNotificationSignal, com.sun.enterprise.ee.cms.core.JoinedAndReadyNotificationSignal, com.sun.enterprise.ee.cms.core.RejoinableEvent, com.sun.enterprise.ee.cms.core.Signal

    public class JoinedAndReadyNotificationSignalImpl
    extends java.lang.Object
    implements com.sun.enterprise.ee.cms.core.JoinedAndReadyNotificationSignal
    Implements JoinedAndReadyNotificationSignal
    Author:
    Sheetal Vartak Date: 11/13/07
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.logging.Logger logger  
    • Constructor Summary

      Constructors 
      Constructor Description
      JoinedAndReadyNotificationSignalImpl​(java.lang.String memberToken, java.util.List<java.lang.String> currentCoreMembers, java.util.List<java.lang.String> allCurrentMembers, java.lang.String groupName, long startTime, com.sun.enterprise.ee.cms.core.GMSConstants.startupType startupKind, com.sun.enterprise.ee.cms.core.RejoinSubevent rs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void acquire()
      Signal is acquired prior to processing of the signal to protect group resources being acquired from being affected by a race condition
      java.util.List<java.lang.String> getAllCurrentMembers()  
      java.util.List<java.lang.String> getCurrentCoreMembers()  
      com.sun.enterprise.ee.cms.core.AliveAndReadyView getCurrentView()  
      com.sun.enterprise.ee.cms.core.GMSConstants.startupType getEventSubType()  
      java.lang.String getGroupName()
      returns the group to which the member involved in the Signal belonged to
      java.util.Map<java.io.Serializable,​java.io.Serializable> getMemberDetails()
      returns the details of the member who caused this Signal to be generated returns a Map containing key-value pairs constituting data pertaining to the member's details
      java.lang.String getMemberToken()
      returns the identity token of the member that caused this signal to be generated.
      com.sun.enterprise.ee.cms.core.AliveAndReadyView getPreviousView()  
      com.sun.enterprise.ee.cms.core.RejoinSubevent getRejoinSubevent()  
      long getStartTime()  
      void release()
      Signal is released after processing of the signal to bring the group resources to a state of availability
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected static final java.util.logging.Logger logger
    • Constructor Detail

      • JoinedAndReadyNotificationSignalImpl

        public JoinedAndReadyNotificationSignalImpl​(java.lang.String memberToken,
                                                    java.util.List<java.lang.String> currentCoreMembers,
                                                    java.util.List<java.lang.String> allCurrentMembers,
                                                    java.lang.String groupName,
                                                    long startTime,
                                                    com.sun.enterprise.ee.cms.core.GMSConstants.startupType startupKind,
                                                    com.sun.enterprise.ee.cms.core.RejoinSubevent rs)
    • Method Detail

      • acquire

        public void acquire()
                     throws com.sun.enterprise.ee.cms.core.SignalAcquireException
        Signal is acquired prior to processing of the signal to protect group resources being acquired from being affected by a race condition
        Specified by:
        acquire in interface com.sun.enterprise.ee.cms.core.Signal
        Throws:
        com.sun.enterprise.ee.cms.core.SignalAcquireException - Exception when unable to acquire the signal
      • release

        public void release()
                     throws com.sun.enterprise.ee.cms.core.SignalReleaseException
        Signal is released after processing of the signal to bring the group resources to a state of availability
        Specified by:
        release in interface com.sun.enterprise.ee.cms.core.Signal
        Throws:
        com.sun.enterprise.ee.cms.core.SignalReleaseException - Exception when unable to release the signal
      • getMemberToken

        public java.lang.String getMemberToken()
        returns the identity token of the member that caused this signal to be generated. For instance, in the case of a MessageSignal, this member token would be the sender. In the case of a FailureNotificationSignal, this member token would be the failed member. In the case of a JoinNotificationSignal or PlannedShutdownSignal, the member token would be the member who joined or is being gracefully shutdown, respectively.
        Specified by:
        getMemberToken in interface com.sun.enterprise.ee.cms.core.Signal
      • getCurrentCoreMembers

        public java.util.List<java.lang.String> getCurrentCoreMembers()
        Specified by:
        getCurrentCoreMembers in interface com.sun.enterprise.ee.cms.core.JoinedAndReadyNotificationSignal
      • getAllCurrentMembers

        public java.util.List<java.lang.String> getAllCurrentMembers()
        Specified by:
        getAllCurrentMembers in interface com.sun.enterprise.ee.cms.core.JoinedAndReadyNotificationSignal
      • getMemberDetails

        public java.util.Map<java.io.Serializable,​java.io.Serializable> getMemberDetails()
        returns the details of the member who caused this Signal to be generated returns a Map containing key-value pairs constituting data pertaining to the member's details
        Specified by:
        getMemberDetails in interface com.sun.enterprise.ee.cms.core.Signal
        Returns:
        Map <Serializable, Serializable>
      • getGroupName

        public java.lang.String getGroupName()
        returns the group to which the member involved in the Signal belonged to
        Specified by:
        getGroupName in interface com.sun.enterprise.ee.cms.core.Signal
        Returns:
        String
      • getStartTime

        public long getStartTime()
        Specified by:
        getStartTime in interface com.sun.enterprise.ee.cms.core.Signal
      • getEventSubType

        public com.sun.enterprise.ee.cms.core.GMSConstants.startupType getEventSubType()
        Specified by:
        getEventSubType in interface com.sun.enterprise.ee.cms.core.GroupStartupNotificationSignal
      • getRejoinSubevent

        public com.sun.enterprise.ee.cms.core.RejoinSubevent getRejoinSubevent()
        Specified by:
        getRejoinSubevent in interface com.sun.enterprise.ee.cms.core.RejoinableEvent
      • getCurrentView

        public com.sun.enterprise.ee.cms.core.AliveAndReadyView getCurrentView()
        Specified by:
        getCurrentView in interface com.sun.enterprise.ee.cms.core.AliveAndReadySignal
      • getPreviousView

        public com.sun.enterprise.ee.cms.core.AliveAndReadyView getPreviousView()
        Specified by:
        getPreviousView in interface com.sun.enterprise.ee.cms.core.AliveAndReadySignal