Package io.debezium.connector.mongodb
Class AbstractMongoIT
java.lang.Object
io.debezium.connector.mongodb.AbstractMongoIT
- Direct Known Subclasses:
ConnectionIT
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Configurationprotected io.debezium.connector.mongodb.connection.MongoDbConnectionprotected io.debezium.connector.mongodb.MongoDbTaskContextprotected static final org.slf4j.Loggerprotected static MongoDbDeploymentprotected io.debezium.connector.mongodb.connection.ReplicaSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidafterAll()static voidvoidprotected com.mongodb.client.MongoClientconnect()private voidinitialize(boolean restartFromBeginning) A method that will initialize the state after the configuration is changed.protected voidreuseConfiguration(Configuration config) A method that will initialize the state after the configuration is changed, reusing the same partition offsets that were previously used.protected voiduseConfiguration(Configuration config) A method that will initialize the state after the configuration is changed.
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
mongo
-
config
-
context
protected io.debezium.connector.mongodb.MongoDbTaskContext context -
replicaSet
protected io.debezium.connector.mongodb.connection.ReplicaSet replicaSet -
connection
protected io.debezium.connector.mongodb.connection.MongoDbConnection connection
-
-
Constructor Details
-
AbstractMongoIT
public AbstractMongoIT()
-
-
Method Details
-
beforeAll
public static void beforeAll() -
afterAll
public static void afterAll() -
connect
protected com.mongodb.client.MongoClient connect() -
beforeEach
public void beforeEach() -
useConfiguration
A method that will initialize the state after the configuration is changed.- Parameters:
config- the configuration; may not be null
-
reuseConfiguration
A method that will initialize the state after the configuration is changed, reusing the same partition offsets that were previously used.- Parameters:
config- the configuration; may not be null
-
initialize
private void initialize(boolean restartFromBeginning) A method that will initialize the state after the configuration is changed.- Parameters:
restartFromBeginning-trueif the context should have no prior partition offsets, orfalseif the partition offsets that exist at this time should be reused
-