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

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

public class WsrmAuditStorageOperationsImpl
extends Object
implements WsrmAuditStorageOperations

Title:WsrmAuditStorageOperationsImpl

Description: Handles Audit storage tasks


Constructor Summary
WsrmAuditStorageOperationsImpl()
          default constructor
WsrmAuditStorageOperationsImpl(Connection connection)
          default constructor
 
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.
static void main(String[] args)
           
 void storeWsrmExchange(WsrmExchange wsrmExchange)
          Stores a WsrmExchange to storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrmAuditStorageOperationsImpl

public WsrmAuditStorageOperationsImpl()
default constructor


WsrmAuditStorageOperationsImpl

public WsrmAuditStorageOperationsImpl(Connection connection)
default constructor

Method Detail

storeWsrmExchange

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

Specified by:
storeWsrmExchange in interface WsrmAuditStorageOperations

getTotalNumberOfExchanges

public 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.

Specified by:
getTotalNumberOfExchanges in interface WsrmAuditStorageOperations
Throws:
WsrmStorageException

getNumberOfAcknowledgements

public 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.

Specified by:
getNumberOfAcknowledgements in interface WsrmAuditStorageOperations
Throws:
WsrmStorageException

getNumberOfNegativeAcknowledgements

public 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.

Specified by:
getNumberOfNegativeAcknowledgements in interface WsrmAuditStorageOperations
Throws:
WsrmStorageException

getNumberOfRetransmissions

public 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.

Specified by:
getNumberOfRetransmissions in interface WsrmAuditStorageOperations
Throws:
WsrmStorageException

getNumberOfSequenceCreationRequests

public 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.

Specified by:
getNumberOfSequenceCreationRequests in interface WsrmAuditStorageOperations

getNumberOfSuccesfulCreationRequests

public 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.

Specified by:
getNumberOfSuccesfulCreationRequests in interface WsrmAuditStorageOperations

main

public static void main(String[] args)


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