|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class pertains to storage operations related to the WSR protocol.
These include functions such as
(a) Storage of sent/received messages over a group.
(b) Processing acknowledgements for a given group from over a set
of sequence numbers.
(c) Retrieving messages for retransmissions.
(d) Retrieving the message numbers for a given group that have
not been acknowledged yet.
(e) Retrieval of the last message number for a group.
| Method Summary | |
void |
deleteGroupTerminationInfo(String groupId)
Delete the GroupTerminationInfo object. |
void |
deleteStoredElement(String groupId,
long sequenceNumber)
Removes stored WsrStorageWidget from storage. |
long[] |
getAcknowledgedSequenceNumbers(String groupId)
Retrieves the list of sequence numbers that have been acknowledged This method throws WsrStorageException. |
WsrGroupTerminationInfoImpl |
getGroupTerminationInfo(String groupId)
Retrieves the GroupTerminationInfo object. |
String |
getMessageFault(String groupId,
long sequenceNumber)
Gets the Fault associate with the message if message is faulted from storage |
byte |
getMessageStatus(String groupId,
long sequenceNumber)
Gets the Status of the Message from storage |
long |
getSequenceNumberLastAssigned(String groupId)
Retrieves the sequence number that was last assigned on a given group. |
long[] |
getSequenceNumbers(String groupId)
Retrieves the list of all sequence numbers |
WsrStorageWidgetImpl |
getStoredElement(String groupId,
long sequenceNumber)
Retrieves a stored WsrStorageWidget from storage. |
WsrStorageWidgetImpl[] |
getStoredElements(String groupId,
long[] sequenceNumbers)
Retrieves stored WsrStorageWidgets from storage. |
long[] |
getUnacknowledgedSequenceNumbers(String groupId)
Retrieves the list of sequence numbers that have NOT been acknowledged and faulted for a given group. |
long[] |
getUnacknowledgedSequenceNumbers(String groupId,
long upUntilSequenceNumber)
Retrieves the list of sequence numbers that have NOT been acknowledged, up until the sequence number specified in upUntilSequenceNumber This method throws an exception under the following conditions. |
long[] |
getUnDeliveredSequenceNumbers(String groupId)
Retrieves the list of sequence numbers that have NOT been Delivered for a given group.This method throws an exception if the group specified by groupId is an unknown one or if there are other storage problems. |
long[] |
getUnDeliveredSequenceNumbers(String groupId,
long sequenceNumber)
Retrieves the list of sequence numbers that have NOT been Delivered, and have sequenceNumber greater than specified sequenceNumber This method throws an exception under the following conditions. |
boolean |
hasStoredElement(String groupId,
long sequenceNumber)
Check to see if there is a widget that has been stored for a specific sequence number in a given group |
boolean |
hasStoredElements(String groupId)
Checks to see if there are widgets that have been stored for the group in question. |
void |
processAcknowledgementOnGroup(String groupId,
long ackSequenceNumber)
Processes an acknowledgement received on a given group for a specific sequence number. |
void |
processAcknowledgementsOnGroup(String groupId,
long[] ackSequenceNumbers)
Processes a set of acknowledgements received on a given group. |
void |
processFaultOnGroup(String groupId,
long sequenceNumber,
QName fault)
Processes Fault received on a given group for a specific sequence number. |
void |
resetNumberOfRetries(WsrStorageWidgetImpl wsrStorageWidgetImpl,
byte numberOfRetries)
Reset the Number Of Retries associated with the retransmission of the message |
void |
resetRetransmissionTime(WsrStorageWidgetImpl wsrStorageWidgetImpl,
long retransmissionTime)
Reset the Retranmission Time associated with the message |
void |
store(WsrStorageWidgetImpl widget)
Store a WSR message to storage. |
void |
storeGroupTerminationInfo(WsrGroupTerminationInfoImpl groupTerminationInfo)
Stores the GroupTerminationInfo object. |
| Method Detail |
public void processAcknowledgementsOnGroup(String groupId,
long[] ackSequenceNumbers)
throws WsrStorageException
WsrStorageException
public void processAcknowledgementOnGroup(String groupId,
long ackSequenceNumber)
throws WsrStorageException
WsrStorageException
public void processFaultOnGroup(String groupId,
long sequenceNumber,
QName fault)
throws WsrStorageException
WsrStorageException
public long[] getUnacknowledgedSequenceNumbers(String groupId,
long upUntilSequenceNumber)
throws WsrStorageException
WsrStorageException
public long[] getUnacknowledgedSequenceNumbers(String groupId)
throws WsrStorageException
WsrStorageException
public long[] getUnDeliveredSequenceNumbers(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
public long[] getUnDeliveredSequenceNumbers(String groupId)
throws WsrStorageException
WsrStorageException
public long[] getAcknowledgedSequenceNumbers(String groupId)
throws WsrStorageException
WsrStorageException
public long[] getSequenceNumbers(String groupId)
throws WsrStorageException
WsrStorageException
public long getSequenceNumberLastAssigned(String groupId)
throws WsrStorageException
WsrStorageException
public void store(WsrStorageWidgetImpl widget)
throws WsrStorageException
WsrStorageException
public boolean hasStoredElements(String groupId)
throws WsrStorageException
WsrStorageException
public boolean hasStoredElement(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
public WsrStorageWidgetImpl getStoredElement(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
public WsrStorageWidgetImpl[] getStoredElements(String groupId,
long[] sequenceNumbers)
throws WsrStorageException
WsrStorageException
public void deleteStoredElement(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
public void storeGroupTerminationInfo(WsrGroupTerminationInfoImpl groupTerminationInfo)
throws WsrStorageException
WsrStorageException
public byte getMessageStatus(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
public String getMessageFault(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
public WsrGroupTerminationInfoImpl getGroupTerminationInfo(String groupId)
throws WsrStorageException
WsrStorageException
public void deleteGroupTerminationInfo(String groupId)
throws WsrStorageException
WsrStorageException
public void resetRetransmissionTime(WsrStorageWidgetImpl wsrStorageWidgetImpl,
long retransmissionTime)
throws WsrStorageException
WsrStorageException
public void resetNumberOfRetries(WsrStorageWidgetImpl wsrStorageWidgetImpl,
byte numberOfRetries)
throws WsrStorageException
WsrStorageException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||