Package io.debezium.connector.mysql
Class MySqlConnectorTask
java.lang.Object
org.apache.kafka.connect.source.SourceTask
io.debezium.connector.common.BaseSourceTask<P,O>
io.debezium.connector.binlog.BinlogSourceTask<MySqlPartition,MySqlOffsetContext>
io.debezium.connector.mysql.MySqlConnectorTask
- All Implemented Interfaces:
org.apache.kafka.connect.connector.Task
The main task executing streaming from MySQL.
Responsible for lifecycle management of the streaming code.
- Author:
- Jiri Pechanec
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.connector.binlog.BinlogSourceTask
BinlogSourceTask.BinlogHeartbeatErrorHandlerNested 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 BinlogConnectorConnectionprivate BinlogConnectorConnectionprivate static final Stringprivate ErrorHandlerprivate static final org.slf4j.Loggerprivate ChangeEventQueue<DataChangeEvent>private MySqlDatabaseSchemaprivate MySqlTaskContextFields 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
Modifier and TypeMethodDescriptionList<org.apache.kafka.connect.source.SourceRecord>doPoll()protected voiddoStop()protected LonggetReadOnlyIncrementalSnapshotSignalOffset(MySqlOffsetContext previousOffset) private MySqlValueConvertersgetValueConverters(MySqlConnectorConfig configuration) start(Configuration configuration) version()Methods inherited from class io.debezium.connector.binlog.BinlogSourceTask
resetOffset, validateBinlogConfiguration, validateSnapshotFeasibilityMethods inherited from class io.debezium.connector.common.BaseSourceTask
commit, commitRecord, getAvailableSignalChannels, getNotificationChannels, getPreviousOffsets, getTaskState, isLogPositionAvailable, logStatistics, poll, registerServiceProviders, resetErrorHandlerRetriesIfNeeded, 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
-
connection
-
beanRegistryJdbcConnection
-
errorHandler
-
schema
-
-
Constructor Details
-
MySqlConnectorTask
public MySqlConnectorTask()
-
-
Method Details
-
version
-
start
public ChangeEventSourceCoordinator<MySqlPartition,MySqlOffsetContext> start(Configuration configuration) - Specified by:
startin classBaseSourceTask<MySqlPartition,MySqlOffsetContext>
-
getValueConverters
-
doPoll
- Specified by:
doPollin classBaseSourceTask<MySqlPartition,MySqlOffsetContext> - Throws:
InterruptedException
-
doStop
protected void doStop()- Specified by:
doStopin classBaseSourceTask<MySqlPartition,MySqlOffsetContext>
-
getAllConfigurationFields
- Specified by:
getAllConfigurationFieldsin classBaseSourceTask<MySqlPartition,MySqlOffsetContext>
-
getReadOnlyIncrementalSnapshotSignalOffset
- Specified by:
getReadOnlyIncrementalSnapshotSignalOffsetin classBinlogSourceTask<MySqlPartition,MySqlOffsetContext>
-