Class FailureSuspectedSignalImpl

  • All Implemented Interfaces:
    com.sun.enterprise.ee.cms.core.FailureSuspectedSignal, com.sun.enterprise.ee.cms.core.Signal

    public class FailureSuspectedSignalImpl
    extends Object
    implements com.sun.enterprise.ee.cms.core.FailureSuspectedSignal
    Version:
    $Revision$
    Author:
    Shreedhar Ganapathy Date: Sep 14, 2005
    • Constructor Detail

      • FailureSuspectedSignalImpl

        public FailureSuspectedSignalImpl​(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 being acquired from being affected by a race condition Signal must be mandatorily acquired before any processing for recovery operations.
        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 Signal should be madatorily released after recovery process is completed.
        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 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 GracefulShutdownSignal, 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
      • 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()
        returns the start time of the member involved in this Signal.
        Specified by:
        getStartTime in interface com.sun.enterprise.ee.cms.core.Signal
        Returns:
        long - time stamp of when this member started