|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcgl.narada.wsinfra.wsr.storage.WsrStorageService
cgl.narada.wsinfra.wsr.storage.impl.WsrStorageServiceImpl
| Constructor Summary | |
WsrStorageServiceImpl(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. |
WsrGroupInfoStorageOperations |
getWsrGroupInfoStorageOperations()
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. |
WsrProtocolStorageOperations |
getWsrProtocolStorageOperations()
Retrieves the reference to the WsrmProtocolStorageOperations by using given properties file. |
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.wsr.storage.WsrStorageService |
getSinkStorageServiceInstance, getSourceStorageServiceInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WsrStorageServiceImpl(String propertiesFileName)
throws WsrStorageException
| Method Detail |
public void createNewConnection(String fileName)
throws WsrStorageException
WsrStorageException
public Connection getConnection()
throws WsrStorageException
WsrStorageException
public void initialize()
throws WsrStorageException
initialize in class WsrStorageServiceWsrStorageException
public Properties getProperties(String fileLocation)
throws WsrStorageException
WsrStorageException
public void loadProperties(String fileName)
throws WsrStorageException
WsrStorageExceptionpublic 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 WsrProtocolStorageOperations getWsrProtocolStorageOperations()
throws WsrStorageException
getWsrProtocolStorageOperations in class WsrStorageServiceWsrStorageException
public WsrGroupInfoStorageOperations getWsrGroupInfoStorageOperations()
throws WsrStorageException
getWsrGroupInfoStorageOperations in class WsrStorageServiceWsrStorageExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||