Interface ConnectorAdapter
- All Known Implementing Classes:
MariaDbConnectorAdapter,MariaDbHybridConnectorAdapter,MySqlConnectorAdapter
public interface ConnectorAdapter
Provides the MySQL connector with an adapter pattern to support varied configurations
between MySQL and MariaDB and their drivers.
- Author:
- Chris Cranford
-
Method Summary
Modifier and TypeMethodDescriptioncreateConnection(Configuration configuration) IncrementalSnapshotChangeEventSource<MySqlPartition,? extends io.debezium.spi.schema.DataCollectionId> createIncrementalSnapshotChangeEventSource(MySqlConnectorConfig connectorConfig, AbstractConnectorConnection connection, EventDispatcher<MySqlPartition, ? extends io.debezium.spi.schema.DataCollectionId> dispatcher, MySqlDatabaseSchema schema, Clock clock, SnapshotProgressListener<MySqlPartition> snapshotProgressListener, DataChangeEventListener<MySqlPartition> dataChangeEventListener, NotificationService<MySqlPartition, MySqlOffsetContext> notificationService) <T> IncrementalSnapshotContext<T>getJavaEncodingForCharSet(String charSetName) getReadOnlyIncrementalSnapshotSignalOffset(MySqlOffsetContext previousOffsets) getRecordingQueryFromEvent(com.github.shyiko.mysql.binlog.event.EventData event) <T> IncrementalSnapshotContext<T>loadIncrementalSnapshotContextFromOffset(Map<String, ?> offset) voidsetOffsetContextBinlogPositionAndGtidDetailsForSnapshot(MySqlOffsetContext offsetContext, AbstractConnectorConnection connection) Sets the offset context binlog details.
-
Method Details
-
createConnection
-
getBinaryLogClientConfigurator
BinaryLogClientConfigurator getBinaryLogClientConfigurator() -
setOffsetContextBinlogPositionAndGtidDetailsForSnapshot
void setOffsetContextBinlogPositionAndGtidDetailsForSnapshot(MySqlOffsetContext offsetContext, AbstractConnectorConnection connection) throws Exception Sets the offset context binlog details.- Parameters:
offsetContext- the offset context to be mutatedconnection- the database connection to be used- Throws:
Exception- if an exception is thrown
-
getJavaEncodingForCharSet
-
getRecordingQueryFromEvent
-
getHistoryRecordComparator
AbstractHistoryRecordComparator getHistoryRecordComparator() -
getIncrementalSnapshotContext
-
loadIncrementalSnapshotContextFromOffset
-
getReadOnlyIncrementalSnapshotSignalOffset
-
createIncrementalSnapshotChangeEventSource
IncrementalSnapshotChangeEventSource<MySqlPartition,? extends io.debezium.spi.schema.DataCollectionId> createIncrementalSnapshotChangeEventSource(MySqlConnectorConfig connectorConfig, AbstractConnectorConnection connection, EventDispatcher<MySqlPartition, ? extends io.debezium.spi.schema.DataCollectionId> dispatcher, MySqlDatabaseSchema schema, Clock clock, SnapshotProgressListener<MySqlPartition> snapshotProgressListener, DataChangeEventListener<MySqlPartition> dataChangeEventListener, NotificationService<MySqlPartition, MySqlOffsetContext> notificationService)
-