cgl.narada.wsinfra.wsrm.storage.impl
Class WsrmStorageWidgetImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsrm.storage.impl.WsrmStorageWidgetImpl
All Implemented Interfaces:
WsrmStorageWidget

public class WsrmStorageWidgetImpl
extends Object
implements WsrmStorageWidget

The WSRM storage widget encapsulates the WSRM message that was either sent or received. The storage widget contains other information which is useful for querying purposes. Finally, the widget also keeps track of whether a message was acknowledged or if an acknowledgement was sent for the message in question.


Constructor Summary
WsrmStorageWidgetImpl(byte[] marshalledBytes)
           
WsrmStorageWidgetImpl(String sequenceIdentifier, long messageNumber, boolean acknowledgementInfo, long ackTimestampInfo, EnvelopeDocument envelopeDocument)
           
 
Method Summary
 boolean getAcknowledgementInfo()
          Retrieve the acknowledgement info
 long getAckTimestampInfo()
          Retrieve the timestamp associated with this storage widget.
 byte[] getBytes()
          Gets a serialized representation of the message
 EnvelopeDocument getEnvelope()
          Get the original Envelope associated with the message
 long getMessageNumber()
          Gets the message number associated with the message
 String getSequenceIdentifier()
          Get the sequence identifier associated with the messsage
 void resetAckTimestampInfo(long interval)
          Reset the ackInterval to the value specified in specified in the method parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrmStorageWidgetImpl

public WsrmStorageWidgetImpl(String sequenceIdentifier,
                             long messageNumber,
                             boolean acknowledgementInfo,
                             long ackTimestampInfo,
                             EnvelopeDocument envelopeDocument)

WsrmStorageWidgetImpl

public WsrmStorageWidgetImpl(byte[] marshalledBytes)
Method Detail

getAcknowledgementInfo

public boolean getAcknowledgementInfo()
Retrieve the acknowledgement info

Specified by:
getAcknowledgementInfo in interface WsrmStorageWidget

getAckTimestampInfo

public long getAckTimestampInfo()
Retrieve the timestamp associated with this storage widget. If the acknowledgement info associated with storage widget is FALSE, this timestamp indicates the TICK at which the wsrmMessage should be Acknowledged/Retransmitted. The TICK takes the following vales at the following roles. (a) At SOURCE -- CurrentTime + RetransmissionInterval (b) AT DESTINATION -- CurrentTime + AcknowledgementInterval

Specified by:
getAckTimestampInfo in interface WsrmStorageWidget

resetAckTimestampInfo

public void resetAckTimestampInfo(long interval)
Reset the ackInterval to the value specified in specified in the method parameter. This is used AFTER a retransmission

Specified by:
resetAckTimestampInfo in interface WsrmStorageWidget

getSequenceIdentifier

public String getSequenceIdentifier()
Get the sequence identifier associated with the messsage

Specified by:
getSequenceIdentifier in interface WsrmStorageWidget

getMessageNumber

public long getMessageNumber()
Gets the message number associated with the message

Specified by:
getMessageNumber in interface WsrmStorageWidget

getEnvelope

public EnvelopeDocument getEnvelope()
Get the original Envelope associated with the message

Specified by:
getEnvelope in interface WsrmStorageWidget

getBytes

public byte[] getBytes()
Gets a serialized representation of the message

Specified by:
getBytes in interface WsrmStorageWidget


For comments and suggestions please send e-mail to The NaradaBrokering Project