Class MessageSignalImpl
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.common.MessageSignalImpl
-
- All Implemented Interfaces:
com.sun.enterprise.ee.cms.core.MessageSignal,com.sun.enterprise.ee.cms.core.Signal
public class MessageSignalImpl extends java.lang.Object implements com.sun.enterprise.ee.cms.core.MessageSignalImplements MessageSignal and provides methods to access message sent by a remote member.- Version:
- $Revision$
- Author:
- Shreedhar Ganapathy Date: Jan 20, 2004
-
-
Constructor Summary
Constructors Constructor Description MessageSignalImpl(byte[] message, java.lang.String targetComponent, java.lang.String sender, java.lang.String groupName, long startTime)
-
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 conditionjava.lang.StringgetGroupName()returns the group to which the member involved in the Signal belonged tojava.util.Map<java.io.Serializable,java.io.Serializable>getMemberDetails()java.lang.StringgetMemberToken()byte[]getMessage()Returns the message(payload) as a byte array.longgetStartTime()java.lang.StringgetTargetComponent()Returns the target component in this member to which this message is addressed.voidrelease()Signal is released after processing of the signal to bring the group resources to a state of availability
-
-
-
Method Detail
-
getTargetComponent
public java.lang.String getTargetComponent()
Returns the target component in this member to which this message is addressed.- Specified by:
getTargetComponentin interfacecom.sun.enterprise.ee.cms.core.MessageSignal- Returns:
- String targetComponent
-
getMessage
public byte[] getMessage()
Returns the message(payload) as a byte array.- Specified by:
getMessagein interfacecom.sun.enterprise.ee.cms.core.MessageSignal- Returns:
- byte[]
-
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 java.lang.String getMemberToken()
- Specified by:
getMemberTokenin interfacecom.sun.enterprise.ee.cms.core.Signal
-
getMemberDetails
public java.util.Map<java.io.Serializable,java.io.Serializable> getMemberDetails()
- Specified by:
getMemberDetailsin interfacecom.sun.enterprise.ee.cms.core.Signal
-
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
-
-