public class Db2ConnectorTask
extends io.debezium.connector.common.BaseSourceTask
| Modifier and Type | Field and Description |
|---|---|
private static String |
CONTEXT_NAME |
private Db2Connection |
dataConnection |
private io.debezium.pipeline.ErrorHandler |
errorHandler |
private static org.slf4j.Logger |
LOGGER |
private Db2Connection |
metadataConnection |
private io.debezium.connector.base.ChangeEventQueue<io.debezium.pipeline.DataChangeEvent> |
queue |
private Db2DatabaseSchema |
schema |
private Db2TaskContext |
taskContext |
| Constructor and Description |
|---|
Db2ConnectorTask() |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.kafka.connect.source.SourceRecord> |
doPoll() |
void |
doStop() |
protected Iterable<io.debezium.config.Field> |
getAllConfigurationFields() |
protected io.debezium.pipeline.spi.OffsetContext |
getPreviousOffset(io.debezium.pipeline.spi.OffsetContext.Loader loader)
Loads the connector's persistent offset (if present) via the given loader.
|
io.debezium.pipeline.ChangeEventSourceCoordinator |
start(io.debezium.config.Configuration config) |
String |
version() |
private static final org.slf4j.Logger LOGGER
private static final String CONTEXT_NAME
private volatile Db2TaskContext taskContext
private volatile io.debezium.connector.base.ChangeEventQueue<io.debezium.pipeline.DataChangeEvent> queue
private volatile Db2Connection dataConnection
private volatile Db2Connection metadataConnection
private volatile io.debezium.pipeline.ErrorHandler errorHandler
private volatile Db2DatabaseSchema schema
public String version()
public io.debezium.pipeline.ChangeEventSourceCoordinator start(io.debezium.config.Configuration config)
start in class io.debezium.connector.common.BaseSourceTaskprotected io.debezium.pipeline.spi.OffsetContext getPreviousOffset(io.debezium.pipeline.spi.OffsetContext.Loader loader)
getPreviousOffset in class io.debezium.connector.common.BaseSourceTaskpublic List<org.apache.kafka.connect.source.SourceRecord> doPoll() throws InterruptedException
doPoll in class io.debezium.connector.common.BaseSourceTaskInterruptedExceptionpublic void doStop()
doStop in class io.debezium.connector.common.BaseSourceTaskprotected Iterable<io.debezium.config.Field> getAllConfigurationFields()
getAllConfigurationFields in class io.debezium.connector.common.BaseSourceTaskCopyright © 2021 JBoss by Red Hat. All rights reserved.