Class MongoDbExternal
java.lang.Object
io.debezium.connector.mongodb.junit.MongoDbExternal
- All Implemented Interfaces:
MongoDbDeployment,AutoCloseable,org.testcontainers.lifecycle.Startable
- Direct Known Subclasses:
DocumentDb
Dummy implementation of
MongoDbDeployment which simply wraps a
connection string to an arbitrary existing MongoDB deployment.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates externalMongoDbDeploymentwith connection string fromMONGO_CONNECTION_STRINGpropertyMongoDbExternal(String connectionString) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.testing.testcontainers.MongoDbDeployment
getAuthConnectionString, getNoAuthConnectionStringMethods inherited from interface org.testcontainers.lifecycle.Startable
close, getDependencies
-
Field Details
-
MONGO_CONNECTION_STRING
- See Also:
-
connectionString
-
-
Constructor Details
-
MongoDbExternal
public MongoDbExternal()Creates externalMongoDbDeploymentwith connection string fromMONGO_CONNECTION_STRINGproperty -
MongoDbExternal
-
-
Method Details
-
getConnectionString
- Specified by:
getConnectionStringin interfaceMongoDbDeployment
-
getHosts
-
start
public void start()- Specified by:
startin interfaceorg.testcontainers.lifecycle.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.testcontainers.lifecycle.Startable
-