Class FailureNotificationSignalImpl
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.common.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 java.lang.Object implements com.sun.enterprise.ee.cms.core.FailureNotificationSignalImplements FailureNotificationSignal- Version:
- $Revision$
- Author:
- Shreedhar Ganapathy Date: Jan 21, 2004
-
-
Field Summary
Fields Modifier and Type Field Description protected GMSContextctxprotected java.lang.StringfailedMemberprotected java.lang.StringgroupNameprotected static java.util.logging.Loggerloggerprotected static java.lang.StringMEMBER_DETAILSprotected longstartTime
-
Constructor Summary
Constructors Constructor Description FailureNotificationSignalImpl(java.lang.String failedMember, java.lang.String groupName, long startTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidacquire()Signal is acquired prior to processing of the signal to protect group resources that are being acquired from being affected by a race conditioncom.sun.enterprise.ee.cms.core.AliveAndReadyViewgetCurrentView()java.lang.StringgetFailedMemberToken()Deprecated.java.lang.StringgetGroupName()returns the group to which the member involved in the Signal belonged tojava.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 detailsjava.lang.StringgetMemberToken()returns the identity token of the failed membercom.sun.enterprise.ee.cms.core.AliveAndReadyViewgetPreviousView()longgetStartTime()voidrelease()Signal is released after processing of the signal to bring the group resources to a state of availability
-
-
-
Field Detail
-
failedMember
protected java.lang.String failedMember
-
groupName
protected java.lang.String groupName
-
MEMBER_DETAILS
protected static final java.lang.String MEMBER_DETAILS
- See Also:
- Constant Field Values
-
ctx
protected GMSContext ctx
-
logger
protected static final java.util.logging.Logger logger
-
startTime
protected long startTime
-
-
Method Detail
-
acquire
public void acquire() throws com.sun.enterprise.ee.cms.core.SignalAcquireExceptionSignal 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:
acquirein interfacecom.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.SignalReleaseExceptionSignal is released after processing of the signal to bring the group resources to a state of availability- Specified by:
releasein interfacecom.sun.enterprise.ee.cms.core.Signal- Throws:
com.sun.enterprise.ee.cms.core.SignalReleaseException- the exception when signal is not released
-
getMemberToken
public java.lang.String getMemberToken()
returns the identity token of the failed member- Specified by:
getMemberTokenin interfacecom.sun.enterprise.ee.cms.core.Signal
-
getFailedMemberToken
public java.lang.String getFailedMemberToken()
Deprecated.returns the identity token of the failed member- Specified by:
getFailedMemberTokenin interfacecom.sun.enterprise.ee.cms.core.FailureNotificationSignal- Returns:
- java.lang.String
-
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:
getMemberDetailsin interfacecom.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:
getGroupNamein interfacecom.sun.enterprise.ee.cms.core.Signal- Returns:
- String
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfacecom.sun.enterprise.ee.cms.core.Signal
-
getCurrentView
public com.sun.enterprise.ee.cms.core.AliveAndReadyView getCurrentView()
- Specified by:
getCurrentViewin interfacecom.sun.enterprise.ee.cms.core.AliveAndReadySignal
-
getPreviousView
public com.sun.enterprise.ee.cms.core.AliveAndReadyView getPreviousView()
- Specified by:
getPreviousViewin interfacecom.sun.enterprise.ee.cms.core.AliveAndReadySignal
-
-