Package io.debezium.connector.sqlserver
Class SqlServerConnectorTask
- java.lang.Object
-
- org.apache.kafka.connect.source.SourceTask
-
- io.debezium.connector.common.BaseSourceTask<SqlServerPartition,SqlServerOffsetContext>
-
- io.debezium.connector.sqlserver.SqlServerConnectorTask
-
- All Implemented Interfaces:
org.apache.kafka.connect.connector.Task
public class SqlServerConnectorTask extends BaseSourceTask<SqlServerPartition,SqlServerOffsetContext>
The main task executing streaming from SQL Server. Responsible for lifecycle management the streaming code.- Author:
- Jiri Pechanec
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.connector.common.BaseSourceTask
BaseSourceTask.State
-
-
Field Summary
Fields Modifier and Type Field Description private static StringCONTEXT_NAMEprivate SqlServerConnectiondataConnectionprivate ErrorHandlererrorHandlerprivate static org.slf4j.LoggerLOGGERprivate SqlServerConnectionmetadataConnectionprivate ChangeEventQueue<DataChangeEvent>queueprivate SqlServerDatabaseSchemaschemaprivate SqlServerTaskContexttaskContext
-
Constructor Summary
Constructors Constructor Description SqlServerConnectorTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.kafka.connect.source.SourceRecord>doPoll()protected voiddoStop()protected Iterable<Field>getAllConfigurationFields()ChangeEventSourceCoordinator<SqlServerPartition,SqlServerOffsetContext>start(Configuration config)Stringversion()-
Methods inherited from class io.debezium.connector.common.BaseSourceTask
commit, commitRecord, getPreviousOffsets, poll, start, stop
-
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
CONTEXT_NAME
private static final String CONTEXT_NAME
- See Also:
- Constant Field Values
-
taskContext
private volatile SqlServerTaskContext taskContext
-
queue
private volatile ChangeEventQueue<DataChangeEvent> queue
-
dataConnection
private volatile SqlServerConnection dataConnection
-
metadataConnection
private volatile SqlServerConnection metadataConnection
-
errorHandler
private volatile ErrorHandler errorHandler
-
schema
private volatile SqlServerDatabaseSchema schema
-
-
Method Detail
-
version
public String version()
-
start
public ChangeEventSourceCoordinator<SqlServerPartition,SqlServerOffsetContext> start(Configuration config)
- Specified by:
startin classBaseSourceTask<SqlServerPartition,SqlServerOffsetContext>
-
doPoll
public List<org.apache.kafka.connect.source.SourceRecord> doPoll() throws InterruptedException
- Specified by:
doPollin classBaseSourceTask<SqlServerPartition,SqlServerOffsetContext>- Throws:
InterruptedException
-
doStop
protected void doStop()
- Specified by:
doStopin classBaseSourceTask<SqlServerPartition,SqlServerOffsetContext>
-
getAllConfigurationFields
protected Iterable<Field> getAllConfigurationFields()
- Specified by:
getAllConfigurationFieldsin classBaseSourceTask<SqlServerPartition,SqlServerOffsetContext>
-
-