Interface DatabaseController<C extends DatabaseClient<?,?>>
-
- All Known Subinterfaces:
MongoDatabaseController,SqlDatabaseController
- All Known Implementing Classes:
AbstractOcpDatabaseController,OcpDB2Controller,OcpMongoController,OcpSqlDatabaseController,OcpSqlServerController
public interface DatabaseController<C extends DatabaseClient<?,?>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CgetDatabaseClient(String username, String password)Creates database client for database using given username and passwordStringgetDatabaseHostname()intgetDatabasePort()StringgetDatabaseUrl()default voidinitialize()Database initialisationvoidreload()Reloads the database to initial state
-
-
-
Method Detail
-
getDatabaseHostname
String getDatabaseHostname()
- Returns:
- hostname of the database
-
getDatabasePort
int getDatabasePort()
- Returns:
- port of the database
-
getDatabaseUrl
String getDatabaseUrl()
- Returns:
- connection url of the database
-
getDatabaseClient
C getDatabaseClient(String username, String password)
Creates database client for database using given username and password- Parameters:
username- usernamepassword- password- Returns:
- database client
-
reload
void reload() throws InterruptedExceptionReloads the database to initial state- Throws:
InterruptedException- on timing issue
-
initialize
default void initialize() throws InterruptedExceptionDatabase initialisation- Throws:
InterruptedException- on timing issue
-
-