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
Nested classes/interfaces inherited from class org.apache.kafka.connect.source.SourceTask
org.apache.kafka.connect.source.SourceTask.TransactionBoundary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private SqlServerConnection
private SqlServerErrorHandler
private static final org.slf4j.Logger
private SqlServerConnection
private ChangeEventQueue
<DataChangeEvent> private SqlServerDatabaseSchema
private SqlServerTaskContext
Fields inherited from class io.debezium.connector.common.BaseSourceTask
coordinator
Fields inherited from class org.apache.kafka.connect.source.SourceTask
context, TRANSACTION_BOUNDARY_CONFIG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList
<org.apache.kafka.connect.source.SourceRecord> doPoll()
protected void
doStop()
protected void
resetErrorHandlerRetriesIfNeeded
(List<org.apache.kafka.connect.source.SourceRecord> records) start
(Configuration config) version()
Methods inherited from class io.debezium.connector.common.BaseSourceTask
commit, commitRecord, getAvailableSignalChannels, getAvailableSignalChannelWriter, getNotificationChannels, getPreviousOffsets, getTaskState, isLogPositionAvailable, logStatistics, poll, registerServiceProviders, start, stop, validateAndLoadSchemaHistory, withMaskedSensitiveOptions
Methods inherited from class org.apache.kafka.connect.source.SourceTask
commitRecord, initialize
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CONTEXT_NAME
- See Also:
-
taskContext
-
queue
-
dataConnection
-
metadataConnection
-
errorHandler
-
schema
-
-
Constructor Details
-
SqlServerConnectorTask
public SqlServerConnectorTask()
-
-
Method Details
-
version
-
start
public ChangeEventSourceCoordinator<SqlServerPartition,SqlServerOffsetContext> start(Configuration config) - Specified by:
start
in classBaseSourceTask<SqlServerPartition,
SqlServerOffsetContext>
-
doPoll
- Specified by:
doPoll
in classBaseSourceTask<SqlServerPartition,
SqlServerOffsetContext> - Throws:
InterruptedException
-
resetErrorHandlerRetriesIfNeeded
protected void resetErrorHandlerRetriesIfNeeded(List<org.apache.kafka.connect.source.SourceRecord> records) - Overrides:
resetErrorHandlerRetriesIfNeeded
in classBaseSourceTask<SqlServerPartition,
SqlServerOffsetContext>
-
doStop
protected void doStop()- Specified by:
doStop
in classBaseSourceTask<SqlServerPartition,
SqlServerOffsetContext>
-
getAllConfigurationFields
- Specified by:
getAllConfigurationFields
in classBaseSourceTask<SqlServerPartition,
SqlServerOffsetContext>
-