cgl.narada.wsinfra.wsrm.storage
Interface WsrmAuditStorageOperations

All Known Implementing Classes:
WsrmAuditStorageOperationsImpl

public interface WsrmAuditStorageOperations

This provides a set of operations which will be useful for audit related functions. The stored elements are stored without the application/message body. These can be retrieved from the WsrmProtocolStorageOperations. The functions performed here include
(a) Storing individual exchanges.
(b) Retrieving the total number of exchanges on a sequence
(c) The exchanges could include sequence creation requests & responses, acknowledgements (both positive and negative), retransmissions.


Method Summary
 long getNumberOfAcknowledgements(String sequenceIdentifier)
          Retrieves the total number of acknowledgements on a given Sequence.
 long getNumberOfNegativeAcknowledgements(String sequenceIdentifier)
          Retrieves the total number of negative acknowledgements on a given Sequence.
 long getNumberOfRetransmissions(String sequenceIdentifier)
          Retrieves the total number of retransmissions on a given Sequence.
 long getNumberOfSequenceCreationRequests()
          Retrieves the total number of sequence creation requests.
 long getNumberOfSuccesfulCreationRequests()
          Retrieves the total number of successful sequence creation requests.
 long getTotalNumberOfExchanges(String sequenceIdentifier)
          Retrives the total number of exchanges on a given Sequence.
 void storeWsrmExchange(WsrmExchange wsrmExchange)
          Stores a WsrmExchange to storage.
 

Method Detail

storeWsrmExchange

void storeWsrmExchange(WsrmExchange wsrmExchange)
Stores a WsrmExchange to storage. This method throws an exception if there are storage related problems.


getTotalNumberOfExchanges

long getTotalNumberOfExchanges(String sequenceIdentifier)
                               throws WsrmStorageException
Retrives the total number of exchanges on a given Sequence. This method throws an exception if the Sequence specified in the sequenceIdentifier is an unknown one or if there are storage problems.

Throws:
WsrmStorageException

getNumberOfAcknowledgements

long getNumberOfAcknowledgements(String sequenceIdentifier)
                                 throws WsrmStorageException
Retrieves the total number of acknowledgements on a given Sequence. This method throws an exception if the Sequence specified in the sequenceIdentifier is an unknown one or if there are storage problems.

Throws:
WsrmStorageException

getNumberOfNegativeAcknowledgements

long getNumberOfNegativeAcknowledgements(String sequenceIdentifier)
                                         throws WsrmStorageException
Retrieves the total number of negative acknowledgements on a given Sequence. This method throws an exception if the Sequence specified in the sequenceIdentifier is an unknown one or if there are storage problems.

Throws:
WsrmStorageException

getNumberOfRetransmissions

long getNumberOfRetransmissions(String sequenceIdentifier)
                                throws WsrmStorageException
Retrieves the total number of retransmissions on a given Sequence. This method throws an exception if the Sequence specified in the sequenceIdentifier is an unknown one or if there are storage problems.

Throws:
WsrmStorageException

getNumberOfSequenceCreationRequests

long getNumberOfSequenceCreationRequests()
Retrieves the total number of sequence creation requests. This method throws an exception if the Sequence specified in the sequenceIdentifier is an unknown one or if there are storage problems.


getNumberOfSuccesfulCreationRequests

long getNumberOfSuccesfulCreationRequests()
Retrieves the total number of successful sequence creation requests. This method throws an exception if the Sequence specified in the sequenceIdentifier is an unknown one or if there are storage problems.



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