Class MongoDatabaseClient
java.lang.Object
io.debezium.testing.system.tools.databases.mongodb.MongoDatabaseClient
- All Implemented Interfaces:
DatabaseClient<com.mongodb.client.MongoClient,RuntimeException>
public class MongoDatabaseClient
extends Object
implements DatabaseClient<com.mongodb.client.MongoClient,RuntimeException>
- Author:
- Jakub Cechacek
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMongoDatabaseClient(String url, String username, String password, String authSource) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleandoExecute(Commands<com.mongodb.client.MongoClient, RuntimeException> commands) voidexecute(Commands<com.mongodb.client.MongoClient, RuntimeException> commands) voidexecute(String database, Commands<com.mongodb.client.MongoDatabase, RuntimeException> commands) voidexecute(String database, String collection, Commands<com.mongodb.client.MongoCollection<org.bson.Document>, RuntimeException> commands)
-
Field Details
-
url
-
username
-
password
-
authSource
-
-
Constructor Details
-
MongoDatabaseClient
-
-
Method Details
-
doExecute
private boolean doExecute(Commands<com.mongodb.client.MongoClient, RuntimeException> commands) throws RuntimeException- Throws:
RuntimeException
-
execute
public void execute(Commands<com.mongodb.client.MongoClient, RuntimeException> commands) throws RuntimeException- Specified by:
executein interfaceDatabaseClient<com.mongodb.client.MongoClient,RuntimeException> - Throws:
RuntimeException
-
execute
public void execute(String database, Commands<com.mongodb.client.MongoDatabase, RuntimeException> commands) -
execute
public void execute(String database, String collection, Commands<com.mongodb.client.MongoCollection<org.bson.Document>, RuntimeException> commands)
-