Class FailureRecoverySignalImpl

  • All Implemented Interfaces:
    com.sun.enterprise.ee.cms.core.AliveAndReadySignal, com.sun.enterprise.ee.cms.core.FailureNotificationSignal, com.sun.enterprise.ee.cms.core.FailureRecoverySignal, com.sun.enterprise.ee.cms.core.Signal

    public class FailureRecoverySignalImpl
    extends FailureNotificationSignalImpl
    implements com.sun.enterprise.ee.cms.core.FailureRecoverySignal
    Implements the FailureRecoverySignal Interface and provides operations corresponding to a recovery oriented Signal's behavior
    Version:
    $Revision$
    Author:
    Shreedhar Ganapathy Date: November 07, 2003
    • Constructor Detail

      • FailureRecoverySignalImpl

        public FailureRecoverySignalImpl​(java.lang.String componentName,
                                         java.lang.String failedMember,
                                         java.lang.String groupName,
                                         long startTime)
    • Method Detail

      • acquire

        public void acquire()
                     throws com.sun.enterprise.ee.cms.core.SignalAcquireException
        Must be called by client before beginning any recovery operation in order to get support of failure fencing.
        Specified by:
        acquire in interface com.sun.enterprise.ee.cms.core.Signal
        Overrides:
        acquire in class FailureNotificationSignalImpl
        Throws:
        com.sun.enterprise.ee.cms.core.SignalAcquireException - Exception when signal is not acquired
      • release

        public void release()
                     throws com.sun.enterprise.ee.cms.core.SignalReleaseException
        Must be called by client after recovery operation is complete to bring the group state up-to-date on this recovery operation. Not doing so will leave a stale entry in the group's state.
        Specified by:
        release in interface com.sun.enterprise.ee.cms.core.Signal
        Overrides:
        release in class FailureNotificationSignalImpl
        Throws:
        com.sun.enterprise.ee.cms.core.SignalReleaseException - the exception when signal is not released
      • getComponentName

        public java.lang.String getComponentName()
        Specified by:
        getComponentName in interface com.sun.enterprise.ee.cms.core.FailureRecoverySignal