cgl.narada.wsinfra.wsr.storage
Class WsrStorageService

java.lang.Object
  extended bycgl.narada.wsinfra.wsr.storage.WsrStorageService
Direct Known Subclasses:
WsrStorageServiceImpl

public abstract class WsrStorageService
extends Object

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


Constructor Summary
WsrStorageService()
           
 
Method Summary
static WsrStorageService getSinkStorageServiceInstance(String configFileLocation)
           
static WsrStorageService getSourceStorageServiceInstance(String configFileLocation)
           
abstract  WsrGroupInfoStorageOperations getWsrGroupInfoStorageOperations()
          Retrieves the reference to WsrSequenceInfoStorageOperations.
abstract  WsrProtocolStorageOperations getWsrProtocolStorageOperations()
          Retrieves the reference to the WsrProtocolStorageOperations.
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

WsrStorageService

public WsrStorageService()
Method Detail

getSinkStorageServiceInstance

public static WsrStorageService getSinkStorageServiceInstance(String configFileLocation)
                                                       throws WsrStorageException
Throws:
WsrStorageException

getSourceStorageServiceInstance

public static WsrStorageService getSourceStorageServiceInstance(String configFileLocation)
                                                         throws WsrStorageException
Throws:
WsrStorageException

initialize

public abstract void initialize()
                         throws WsrStorageException
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:
WsrStorageException

getWsrProtocolStorageOperations

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

Throws:
WsrStorageException

getWsrGroupInfoStorageOperations

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

Throws:
WsrStorageException