|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.wsinfra.wsrm.storage.WsrmStorageService
cgl.narada.wsinfra.wsrm.storage.impl.WsrmStorageServiceImpl
public class WsrmStorageServiceImpl
Title: WsrmStorageServiceImpl
Description: The WsrmStorageService provides accesses to 3 interfaces which cover the gamut of storage operations specific to the WSRM protocol.
| Constructor Summary | |
|---|---|
WsrmStorageServiceImpl(String propertiesFileName)
|
|
| Method Summary | |
|---|---|
void |
createNewConnection(String fileName)
creates database connection |
Connection |
getConnection()
gets the connection object to the database |
String |
getConnectionInfo()
returns connection information |
Properties |
getProperties(String fileLocation)
gets Properties object by given file location. |
WsrmAuditStorageOperations |
getWsrmAuditStorageOperations()
Retrieves the reference to WsrmAuditStorageOperations by using given properties file. |
WsrmPolicyStorageOperations |
getWsrmPolicyStorageOperations()
Retrieves the reference to WsrmPolicyStorageOperations. |
WsrmProtocolStorageOperations |
getWsrmProtocolStorageOperations()
Retrieves the reference to the WsrmProtocolStorageOperations by using given properties file. |
WsrmSequenceInfoStorageOperations |
getWsrmSequenceInfoStorageOperations()
Retrieves the reference to WsrmSequenceInfoStorageOperations by using given properties file.This method throws an exception if there were problems during the initialization of the StorageService due to inconsistencies or other storage related problems. |
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. |
void |
loadProperties(String fileName)
loads parameters to connect database from properties file |
static void |
main(String[] args)
|
void |
setConnectionParameters(String provider,
String host,
String db)
sets connection parameters |
void |
setConnectionParameters(String provider,
String host,
String port,
String db)
sets connection parameters |
void |
setConnnectionInfo(String connectInfo)
sets connection info without setting parameters |
void |
setConnnectionInfo(String provider,
String host,
String db)
compose connection information from provided parameters |
void |
setConnnectionInfo(String provider,
String host,
String port,
String db)
compose connection information from provided parameter |
void |
setDbDriver(String dbDriver)
sets jdbc driver |
void |
setUserParameters(String uname,
String password)
sets user name and passwords |
| Methods inherited from class cgl.narada.wsinfra.wsrm.storage.WsrmStorageService |
|---|
getInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WsrmStorageServiceImpl(String propertiesFileName)
throws WsrmStorageException
WsrmStorageException| Method Detail |
|---|
public void createNewConnection(String fileName)
throws WsrmStorageException
WsrmStorageException
public Connection getConnection()
throws WsrmStorageException
WsrmStorageException
public void initialize()
throws WsrmStorageException
initialize in class WsrmStorageServiceWsrmStorageException
public Properties getProperties(String fileLocation)
throws WsrmStorageException
WsrmStorageException
public void loadProperties(String fileName)
throws WsrmStorageException
WsrmStorageExceptionpublic void setDbDriver(String dbDriver)
public void setConnectionParameters(String provider,
String host,
String db)
public void setConnectionParameters(String provider,
String host,
String port,
String db)
public void setConnnectionInfo(String connectInfo)
public void setConnnectionInfo(String provider,
String host,
String db)
public void setConnnectionInfo(String provider,
String host,
String port,
String db)
public String getConnectionInfo()
public void setUserParameters(String uname,
String password)
public WsrmProtocolStorageOperations getWsrmProtocolStorageOperations()
throws WsrmStorageException
getWsrmProtocolStorageOperations in class WsrmStorageServiceWsrmStorageException
public WsrmSequenceInfoStorageOperations getWsrmSequenceInfoStorageOperations()
throws WsrmStorageException
getWsrmSequenceInfoStorageOperations in class WsrmStorageServiceWsrmStorageException
public WsrmAuditStorageOperations getWsrmAuditStorageOperations()
throws WsrmStorageException
getWsrmAuditStorageOperations in class WsrmStorageServiceWsrmStorageException
public WsrmPolicyStorageOperations getWsrmPolicyStorageOperations()
throws WsrmStorageException
WsrmStorageService
getWsrmPolicyStorageOperations in class WsrmStorageServiceWsrmStorageExceptionpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||