com.sun.enterprise.ee.cms.impl.common
Class MessageSignalImpl

java.lang.Object
  extended by com.sun.enterprise.ee.cms.impl.common.MessageSignalImpl
All Implemented Interfaces:
MessageSignal, Signal

public class MessageSignalImpl
extends Object
implements MessageSignal

Implements MessageSignal and provides methods to access message sent by a remote member.

Version:
$Revision: 1261 $
Author:
Shreedhar Ganapathy Date: Jan 20, 2004

Constructor Summary
MessageSignalImpl(byte[] message, String targetComponent, String sender, String groupName, long startTime)
           
 
Method Summary
 void acquire()
          Signal is acquired prior to processing of the signal to protect group resources being acquired from being affected by a race condition
 String getGroupName()
          returns the group to which the member involved in the Signal belonged to
 Map<Serializable,Serializable> getMemberDetails()
           
 String getMemberToken()
           
 byte[] getMessage()
          Returns the message(payload) as a byte array.
 long getStartTime()
           
 String getTargetComponent()
          Returns the target component in this member to which this message is addressed.
 void release()
          Signal is released after processing of the signal to bring the group resources to a state of availability
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageSignalImpl

public MessageSignalImpl(byte[] message,
                         String targetComponent,
                         String sender,
                         String groupName,
                         long startTime)
Method Detail

getTargetComponent

public String getTargetComponent()
Returns the target component in this member to which this message is addressed.

Specified by:
getTargetComponent in interface MessageSignal
Returns:
String targetComponent

getMessage

public byte[] getMessage()
Returns the message(payload) as a byte array.

Specified by:
getMessage in interface MessageSignal
Returns:
byte[]

acquire

public void acquire()
             throws SignalAcquireException
Signal is acquired prior to processing of the signal to protect group resources being acquired from being affected by a race condition

Specified by:
acquire in interface Signal
Throws:
SignalAcquireException

release

public void release()
             throws SignalReleaseException
Signal is released after processing of the signal to bring the group resources to a state of availability

Specified by:
release in interface Signal
Throws:
SignalReleaseException

getMemberToken

public String getMemberToken()
Specified by:
getMemberToken in interface Signal

getMemberDetails

public Map<Serializable,Serializable> getMemberDetails()
Specified by:
getMemberDetails in interface Signal

getGroupName

public String getGroupName()
returns the group to which the member involved in the Signal belonged to

Specified by:
getGroupName in interface Signal
Returns:
String

getStartTime

public long getStartTime()
Specified by:
getStartTime in interface Signal


Copyright © 2012. All Rights Reserved.