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
-
-
Constructor Summary
Constructors Constructor Description MongoDatabaseClient(String url, String username, String password, String authSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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)
-
-
-
Method Detail
-
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)
-
-