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.StateNested 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 Stringprivate SqlServerConnectionprivate SqlServerErrorHandlerprivate static final org.slf4j.Loggerprivate SqlServerConnectionprivate ChangeEventQueue<DataChangeEvent>private SqlServerDatabaseSchemaprivate SqlServerTaskContextFields inherited from class io.debezium.connector.common.BaseSourceTask
coordinatorFields inherited from class org.apache.kafka.connect.source.SourceTask
context, TRANSACTION_BOUNDARY_CONFIG -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.debezium.connector.common.BaseSourceTask
commit, commitRecord, getAvailableSignalChannels, getNotificationChannels, getPreviousOffsets, getTaskState, logStatistics, poll, registerServiceProviders, start, stop, validateAndLoadSchemaHistory, withMaskedSensitiveOptionsMethods 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:
startin classBaseSourceTask<SqlServerPartition,SqlServerOffsetContext>
-
doPoll
- Specified by:
doPollin classBaseSourceTask<SqlServerPartition,SqlServerOffsetContext> - Throws:
InterruptedException
-
resetErrorHandlerRetriesIfNeeded
protected void resetErrorHandlerRetriesIfNeeded()- Overrides:
resetErrorHandlerRetriesIfNeededin classBaseSourceTask<SqlServerPartition,SqlServerOffsetContext>
-
doStop
protected void doStop()- Specified by:
doStopin classBaseSourceTask<SqlServerPartition,SqlServerOffsetContext>
-
getAllConfigurationFields
- Specified by:
getAllConfigurationFieldsin classBaseSourceTask<SqlServerPartition,SqlServerOffsetContext>
-