|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WsrProtocolStorageOperations
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 |
|---|
void processAcknowledgementsOnGroup(String groupId,
long[] ackSequenceNumbers)
throws WsrStorageException
WsrStorageException
void processAcknowledgementOnGroup(String groupId,
long ackSequenceNumber)
throws WsrStorageException
WsrStorageException
void processFaultOnGroup(String groupId,
long sequenceNumber,
QName fault)
throws WsrStorageException
WsrStorageException
long[] getUnacknowledgedSequenceNumbers(String groupId,
long upUntilSequenceNumber)
throws WsrStorageException
WsrStorageException
long[] getUnacknowledgedSequenceNumbers(String groupId)
throws WsrStorageException
WsrStorageException
long[] getUnDeliveredSequenceNumbers(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
long[] getUnDeliveredSequenceNumbers(String groupId)
throws WsrStorageException
WsrStorageException
long[] getAcknowledgedSequenceNumbers(String groupId)
throws WsrStorageException
WsrStorageException
long[] getSequenceNumbers(String groupId)
throws WsrStorageException
WsrStorageException
long getSequenceNumberLastAssigned(String groupId)
throws WsrStorageException
WsrStorageException
void store(WsrStorageWidgetImpl widget)
throws WsrStorageException
WsrStorageException
boolean hasStoredElements(String groupId)
throws WsrStorageException
WsrStorageException
boolean hasStoredElement(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
WsrStorageWidgetImpl getStoredElement(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
WsrStorageWidgetImpl[] getStoredElements(String groupId,
long[] sequenceNumbers)
throws WsrStorageException
WsrStorageException
void deleteStoredElement(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
void storeGroupTerminationInfo(WsrGroupTerminationInfoImpl groupTerminationInfo)
throws WsrStorageException
WsrStorageException
byte getMessageStatus(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
String getMessageFault(String groupId,
long sequenceNumber)
throws WsrStorageException
WsrStorageException
WsrGroupTerminationInfoImpl getGroupTerminationInfo(String groupId)
throws WsrStorageException
WsrStorageException
void deleteGroupTerminationInfo(String groupId)
throws WsrStorageException
WsrStorageException
void resetRetransmissionTime(WsrStorageWidgetImpl wsrStorageWidgetImpl,
long retransmissionTime)
throws WsrStorageException
WsrStorageException
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 | ||||||||