public class MySqlConnectorTask extends BaseSourceTask
BaseSourceTask.State| Modifier and Type | Field and Description |
|---|---|
private MySqlConnection |
connection |
private static String |
CONTEXT_NAME |
private ErrorHandler |
errorHandler |
private static org.slf4j.Logger |
LOGGER |
private ChangeEventQueue<DataChangeEvent> |
queue |
private MySqlDatabaseSchema |
schema |
private MySqlTaskContext |
taskContext |
| Constructor and Description |
|---|
MySqlConnectorTask() |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.kafka.connect.source.SourceRecord> |
doPoll() |
protected void |
doStop() |
protected Iterable<Field> |
getAllConfigurationFields() |
private MySqlValueConverters |
getValueConverters(MySqlConnectorConfig configuration) |
protected boolean |
isBinlogAvailable(MySqlConnectorConfig config,
MySqlOffsetContext offset)
Determine whether the binlog position as set on the
SourceInfo is available in the
server. |
ChangeEventSourceCoordinator |
start(Configuration config) |
private boolean |
validateAndLoadDatabaseHistory(MySqlConnectorConfig config,
MySqlOffsetContext offset,
MySqlDatabaseSchema schema) |
private void |
validateBinlogConfiguration(MySqlConnectorConfig config) |
private boolean |
validateSnapshotFeasibility(MySqlConnectorConfig config,
MySqlOffsetContext offset) |
String |
version() |
commit, commitRecord, getPreviousOffset, poll, start, stopprivate static final org.slf4j.Logger LOGGER
private static final String CONTEXT_NAME
private volatile MySqlTaskContext taskContext
private volatile ChangeEventQueue<DataChangeEvent> queue
private volatile MySqlConnection connection
private volatile ErrorHandler errorHandler
private volatile MySqlDatabaseSchema schema
public String version()
public ChangeEventSourceCoordinator start(Configuration config)
start in class BaseSourceTaskprivate MySqlValueConverters getValueConverters(MySqlConnectorConfig configuration)
public List<org.apache.kafka.connect.source.SourceRecord> doPoll() throws InterruptedException
doPoll in class BaseSourceTaskInterruptedExceptionprotected void doStop()
doStop in class BaseSourceTaskprotected Iterable<Field> getAllConfigurationFields()
getAllConfigurationFields in class BaseSourceTaskprivate void validateBinlogConfiguration(MySqlConnectorConfig config)
protected boolean isBinlogAvailable(MySqlConnectorConfig config, MySqlOffsetContext offset)
SourceInfo is available in the
server.true if the server has the binlog coordinates, or false otherwiseprivate boolean validateAndLoadDatabaseHistory(MySqlConnectorConfig config, MySqlOffsetContext offset, MySqlDatabaseSchema schema)
private boolean validateSnapshotFeasibility(MySqlConnectorConfig config, MySqlOffsetContext offset)
Copyright © 2021 JBoss by Red Hat. All rights reserved.