Class AbstractDockerSqlDatabaseController<C extends org.testcontainers.containers.JdbcDatabaseContainer<?>>
java.lang.Object
io.debezium.testing.system.tools.databases.AbstractDockerDatabaseController<C,SqlDatabaseClient>
io.debezium.testing.system.tools.databases.AbstractDockerSqlDatabaseController<C>
- All Implemented Interfaces:
DatabaseController<SqlDatabaseClient>,SqlDatabaseController
- Direct Known Subclasses:
DockerDB2Controller,DockerMysqlController,DockerOracleController,DockerPostgreSqlController,DockerSqlServerController
public abstract class AbstractDockerSqlDatabaseController<C extends org.testcontainers.containers.JdbcDatabaseContainer<?>>
extends AbstractDockerDatabaseController<C,SqlDatabaseClient>
implements SqlDatabaseController
-
Field Summary
FieldsFields inherited from interface io.debezium.testing.system.tools.databases.SqlDatabaseController
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDatabaseClient(String username, String password) Creates database client for database using given username and passwordvoidreload()Reloads the database to initial stateMethods inherited from class io.debezium.testing.system.tools.databases.AbstractDockerDatabaseController
getDatabaseHostname, getPublicDatabaseHostname, getPublicDatabasePortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.testing.system.tools.databases.DatabaseController
getDatabaseHostname, getDatabasePort, getPublicDatabaseHostname, getPublicDatabasePort, initialize
-
Field Details
-
container
-
-
Constructor Details
-
AbstractDockerSqlDatabaseController
-
-
Method Details
-
getPublicDatabaseUrl
- Specified by:
getPublicDatabaseUrlin interfaceDatabaseController<C extends org.testcontainers.containers.JdbcDatabaseContainer<?>>- Returns:
- publicly available connection url of the database
-
getDatabaseClient
Description copied from interface:DatabaseControllerCreates database client for database using given username and password- Specified by:
getDatabaseClientin interfaceDatabaseController<C extends org.testcontainers.containers.JdbcDatabaseContainer<?>>- Specified by:
getDatabaseClientin interfaceSqlDatabaseController- Parameters:
username- usernamepassword- password- Returns:
- database client
-
reload
public void reload()Description copied from interface:DatabaseControllerReloads the database to initial state- Specified by:
reloadin interfaceDatabaseController<C extends org.testcontainers.containers.JdbcDatabaseContainer<?>>- Overrides:
reloadin classAbstractDockerDatabaseController<C extends org.testcontainers.containers.JdbcDatabaseContainer<?>,SqlDatabaseClient>
-