cgl.narada.wsinfra.wsrm.storage
Class WsrmStorageService

java.lang.Object
  extended by cgl.narada.wsinfra.wsrm.storage.WsrmStorageService
Direct Known Subclasses:
WsrmStorageServiceImpl

public abstract class WsrmStorageService
extends Object

The WsrmStorageService provides accesses to 3 interfaces which cover the gamut of storage operations specific to the WSRM protocol.


Constructor Summary
WsrmStorageService()
           
 
Method Summary
static WsrmStorageService getInstance(String configFileLocation)
           
abstract  WsrmAuditStorageOperations getWsrmAuditStorageOperations()
          Retrieves the reference to WsrmAuditStorageOperations.
abstract  WsrmPolicyStorageOperations getWsrmPolicyStorageOperations()
          Retrieves the reference to WsrmPolicyStorageOperations.
abstract  WsrmProtocolStorageOperations getWsrmProtocolStorageOperations()
          Retrieves the reference to the WsrmProtocolStorageOperations.
abstract  WsrmSequenceInfoStorageOperations getWsrmSequenceInfoStorageOperations()
          Retrieves the reference to WsrmSequenceInfoStorageOperations.
abstract  void initialize()
          This method is used to initialize the storage interfaces and tables when the service starts up for the first time or after a scheduled downtime or is recovering from an unforeseen failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrmStorageService

public WsrmStorageService()
Method Detail

getInstance

public static WsrmStorageService getInstance(String configFileLocation)
                                      throws WsrmStorageException
Throws:
WsrmStorageException

initialize

public abstract void initialize()
                         throws WsrmStorageException
This method is used to initialize the storage interfaces and tables when the service starts up for the first time or after a scheduled downtime or is recovering from an unforeseen failure. This method checks for consistencies across the storage and proceeds to initialize the ProtocolStorageOperations, SequenceInfoOperations and AuditStorageOperations. This method throws an exception if there are storage related problems.

Throws:
WsrmStorageException

getWsrmProtocolStorageOperations

public abstract WsrmProtocolStorageOperations getWsrmProtocolStorageOperations()
                                                                        throws WsrmStorageException
Retrieves the reference to the WsrmProtocolStorageOperations. This method throws an exception if there were problems during the initialization of the StorageService due to inconsistencies or other storage related problems.

Throws:
WsrmStorageException

getWsrmSequenceInfoStorageOperations

public abstract WsrmSequenceInfoStorageOperations getWsrmSequenceInfoStorageOperations()
                                                                                throws WsrmStorageException
Retrieves the reference to WsrmSequenceInfoStorageOperations. This method throws an exception if there were problems during the initialization of the StorageService due to inconsistencies or other storage related problems.

Throws:
WsrmStorageException

getWsrmAuditStorageOperations

public abstract WsrmAuditStorageOperations getWsrmAuditStorageOperations()
                                                                  throws WsrmStorageException
Retrieves the reference to WsrmAuditStorageOperations. This method throws an exception if there were problems during the initialization of the StorageService due to inconsistencies or other storage related problems.

Throws:
WsrmStorageException

getWsrmPolicyStorageOperations

public abstract WsrmPolicyStorageOperations getWsrmPolicyStorageOperations()
                                                                    throws WsrmStorageException
Retrieves the reference to WsrmPolicyStorageOperations. This interface is especially useful in determing the WsrmSequencePolicies associated with sequences, whose sequence-identifier values have a partial match (i.e. the prefix is the same as the one previously stored here).

Throws:
WsrmStorageException


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