Class JoinNotificationSignalImpl
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.common.JoinNotificationSignalImpl
-
- All Implemented Interfaces:
com.sun.enterprise.ee.cms.core.GroupStartupNotificationSignal,com.sun.enterprise.ee.cms.core.JoinNotificationSignal,com.sun.enterprise.ee.cms.core.RejoinableEvent,com.sun.enterprise.ee.cms.core.Signal
public class JoinNotificationSignalImpl extends Object implements com.sun.enterprise.ee.cms.core.JoinNotificationSignal
Implementation of JoinNotificationSignal- Version:
- $Revision$
- Author:
- Shreedhar Ganapathy Date: Feb 22, 2005
-
-
Constructor Summary
Constructors Constructor Description JoinNotificationSignalImpl(String memberToken, List<String> currentCoreMembers, List<String> allCurrentMembers, String groupName, long startTime, com.sun.enterprise.ee.cms.core.GMSConstants.startupType startupKind, com.sun.enterprise.ee.cms.core.RejoinSubevent rs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquire()Signal is acquired prior to processing of the signal to protect group resources being acquired from being affected by a race conditionList<String>getAllCurrentMembers()List<String>getCurrentCoreMembers()com.sun.enterprise.ee.cms.core.GMSConstants.startupTypegetEventSubType()StringgetGroupName()returns the group to which the member involved in the Signal belonged toMap<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 detailscom.sun.enterprise.ee.cms.spi.MemberStatesgetMemberState()StringgetMemberToken()returns the identity token of the member that caused this signal to be generated.com.sun.enterprise.ee.cms.core.RejoinSubeventgetRejoinSubevent()longgetStartTime()voidrelease()Signal is released after processing of the signal to bring the group resources to a state of availabilityvoidsetRs(com.sun.enterprise.ee.cms.core.RejoinSubevent rs)
-
-
-
Field Detail
-
logger
protected static final Logger logger
-
-
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 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- Exception when unable to aquire the signal
-
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- 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 PlannedShutdownSignal, the member token would be the member who joined or is being gracefully shutdown, respectively.- Specified by:
getMemberTokenin interfacecom.sun.enterprise.ee.cms.core.Signal
-
getCurrentCoreMembers
public List<String> getCurrentCoreMembers()
- Specified by:
getCurrentCoreMembersin interfacecom.sun.enterprise.ee.cms.core.JoinNotificationSignal
-
getAllCurrentMembers
public List<String> getAllCurrentMembers()
- Specified by:
getAllCurrentMembersin interfacecom.sun.enterprise.ee.cms.core.JoinNotificationSignal
-
getMemberState
public com.sun.enterprise.ee.cms.spi.MemberStates getMemberState()
- Specified by:
getMemberStatein interfacecom.sun.enterprise.ee.cms.core.JoinNotificationSignal
-
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:
getMemberDetailsin interfacecom.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:
getGroupNamein interfacecom.sun.enterprise.ee.cms.core.Signal- Returns:
- String
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfacecom.sun.enterprise.ee.cms.core.Signal
-
getEventSubType
public com.sun.enterprise.ee.cms.core.GMSConstants.startupType getEventSubType()
- Specified by:
getEventSubTypein interfacecom.sun.enterprise.ee.cms.core.GroupStartupNotificationSignal
-
getRejoinSubevent
public com.sun.enterprise.ee.cms.core.RejoinSubevent getRejoinSubevent()
- Specified by:
getRejoinSubeventin interfacecom.sun.enterprise.ee.cms.core.RejoinableEvent
-
setRs
public void setRs(com.sun.enterprise.ee.cms.core.RejoinSubevent rs)
-
-