Class FailureNotificationSignalImpl

  • All Implemented Interfaces:
    com.sun.enterprise.ee.cms.core.AliveAndReadySignal, com.sun.enterprise.ee.cms.core.FailureNotificationSignal, com.sun.enterprise.ee.cms.core.Signal
    Direct Known Subclasses:
    FailureRecoverySignalImpl

    public class FailureNotificationSignalImpl
    extends Object
    implements com.sun.enterprise.ee.cms.core.FailureNotificationSignal
    Implements FailureNotificationSignal
    Version:
    $Revision$
    Author:
    Shreedhar Ganapathy Date: Jan 21, 2004
    • Constructor Detail

      • FailureNotificationSignalImpl

        public FailureNotificationSignalImpl​(String failedMember,
                                             String groupName,
                                             long startTime)
    • 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 that are 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 - the exception when signal is not acquired
      • 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 - the exception when signal is not released
      • getMemberToken

        public String getMemberToken()
        returns the identity token of the failed member
        Specified by:
        getMemberToken in interface com.sun.enterprise.ee.cms.core.Signal
      • getFailedMemberToken

        public String getFailedMemberToken()
        Deprecated.
        returns the identity token of the failed member
        Specified by:
        getFailedMemberToken in interface com.sun.enterprise.ee.cms.core.FailureNotificationSignal
        Returns:
        java.lang.String
      • getMemberDetails

        public Map<Serializable,​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 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
      • 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