Class FailureRecoverySignalImpl
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.common.FailureNotificationSignalImpl
-
- com.sun.enterprise.ee.cms.impl.common.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
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.ee.cms.impl.common.FailureNotificationSignalImpl
ctx, failedMember, groupName, logger, MEMBER_DETAILS, startTime
-
-
Constructor Summary
Constructors Constructor Description FailureRecoverySignalImpl(java.lang.String componentName, java.lang.String failedMember, java.lang.String groupName, long startTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquire()Must be called by client before beginning any recovery operation in order to get support of failure fencing.java.lang.StringgetComponentName()voidrelease()Must be called by client after recovery operation is complete to bring the group state up-to-date on this recovery operation.-
Methods inherited from class com.sun.enterprise.ee.cms.impl.common.FailureNotificationSignalImpl
getCurrentView, getFailedMemberToken, getGroupName, getMemberDetails, getMemberToken, getPreviousView, getStartTime
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.ee.cms.core.AliveAndReadySignal
getCurrentView, getPreviousView
-
-
-
-
Method Detail
-
acquire
public void acquire() throws com.sun.enterprise.ee.cms.core.SignalAcquireExceptionMust be called by client before beginning any recovery operation in order to get support of failure fencing.- Specified by:
acquirein interfacecom.sun.enterprise.ee.cms.core.Signal- Overrides:
acquirein classFailureNotificationSignalImpl- 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.SignalReleaseExceptionMust 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:
releasein interfacecom.sun.enterprise.ee.cms.core.Signal- Overrides:
releasein classFailureNotificationSignalImpl- Throws:
com.sun.enterprise.ee.cms.core.SignalReleaseException- the exception when signal is not released
-
getComponentName
public java.lang.String getComponentName()
- Specified by:
getComponentNamein interfacecom.sun.enterprise.ee.cms.core.FailureRecoverySignal
-
-