public abstract class AbstractMongoIT extends Object implements Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
config |
protected io.debezium.connector.mongodb.MongoDbTaskContext |
context |
protected static org.slf4j.Logger |
logger |
protected io.debezium.connector.mongodb.ConnectionContext.MongoPrimary |
primary |
protected io.debezium.connector.mongodb.ReplicaSet |
replicaSet |
| Constructor and Description |
|---|
AbstractMongoIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEach() |
void |
beforeEach() |
protected BiConsumer<String,Throwable> |
connectionErrorHandler(int numErrorsBeforeFailing) |
private void |
initialize(boolean restartFromBeginning)
A method that will initialize the state after the configuration is changed.
|
protected void |
reuseConfiguration(Configuration config)
A method that will initialize the state after the configuration is changed, reusing the same partition offsets that
were previously used.
|
protected void |
useConfiguration(Configuration config)
A method that will initialize the state after the configuration is changed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timeprotected static final org.slf4j.Logger logger
protected Configuration config
protected io.debezium.connector.mongodb.MongoDbTaskContext context
protected io.debezium.connector.mongodb.ReplicaSet replicaSet
protected io.debezium.connector.mongodb.ConnectionContext.MongoPrimary primary
public void beforeEach()
protected void useConfiguration(Configuration config)
config - the configuration; may not be nullprotected void reuseConfiguration(Configuration config)
config - the configuration; may not be nullprivate void initialize(boolean restartFromBeginning)
restartFromBeginning - true if the context should have no prior partition offsets, or false if the
partition offsets that exist at this time should be reusedpublic void afterEach()
protected BiConsumer<String,Throwable> connectionErrorHandler(int numErrorsBeforeFailing)
Copyright © 2018 JBoss by Red Hat. All rights reserved.