void |
EventBuffer.add(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
An entry point to the buffer that should be used by BinlogReader to push events.
|
private void |
EventBuffer.beginTransaction(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
|
private void |
EventBuffer.completeTransaction(MySqlPartition partition,
MySqlOffsetContext offsetContext,
boolean wellFormed,
com.github.shyiko.mysql.binlog.event.Event event) |
Sends all events from the buffer int a final handler.
|
private void |
EventBuffer.consumeEvent(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
|
protected void |
MySqlSnapshotChangeEventSource.determineSnapshotOffset(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<MySqlPartition,MySqlOffsetContext> ctx,
MySqlOffsetContext previousOffset) |
|
private void |
MySqlDatabaseSchema.emitChangeEvent(MySqlPartition partition,
MySqlOffsetContext offset,
List<SchemaChangeEvent> schemaChangeEvents,
String sanitizedDbName,
DdlParserListener.Event event,
TableId tableId,
SchemaChangeEvent.SchemaChangeEventType type,
boolean snapshot) |
|
void |
MySqlStreamingChangeEventSource.execute(ChangeEventSource.ChangeEventSourceContext context,
MySqlPartition partition,
MySqlOffsetContext offsetContext) |
|
GtidSet |
MySqlStreamingChangeEventSource.filterGtidSet(MySqlOffsetContext offsetContext,
GtidSet availableServerGtidSet,
GtidSet purgedServerGtid) |
Apply the include/exclude GTID source filters to the current GTID set and merge them onto the
currently available GTID set from a MySQL server.
|
Optional<IncrementalSnapshotChangeEventSource<MySqlPartition,? extends DataCollectionId>> |
MySqlChangeEventSourceFactory.getIncrementalSnapshotChangeEventSource(MySqlOffsetContext offsetContext,
SnapshotProgressListener<MySqlPartition> snapshotProgressListener,
DataChangeEventListener<MySqlPartition> dataChangeEventListener) |
|
protected AbstractSnapshotChangeEventSource.SnapshottingTask |
MySqlSnapshotChangeEventSource.getSnapshottingTask(MySqlPartition partition,
MySqlOffsetContext previousOffset) |
|
private <T extends com.github.shyiko.mysql.binlog.event.EventData,U> void |
MySqlStreamingChangeEventSource.handleChange(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event,
Envelope.Operation operation,
Class<T> eventDataClass,
MySqlStreamingChangeEventSource.TableIdProvider<T> tableIdProvider,
MySqlStreamingChangeEventSource.RowsProvider<T,U> rowsProvider,
MySqlStreamingChangeEventSource.BinlogChangeEmitter<U> changeEmitter) |
|
protected void |
MySqlStreamingChangeEventSource.handleDelete(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Generate source records for the supplied event with an DeleteRowsEventData.
|
protected void |
MySqlStreamingChangeEventSource.handleEvent(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
|
protected void |
MySqlStreamingChangeEventSource.handleGtidEvent(MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle the supplied event with a GtidEventData that signals the beginning of a GTID transaction.
|
protected void |
MySqlStreamingChangeEventSource.handleInsert(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Generate source records for the supplied event with an WriteRowsEventData.
|
protected void |
MySqlStreamingChangeEventSource.handleQueryEvent(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle the supplied event with an QueryEventData by possibly recording the DDL statements as changes in the
MySQL schemas.
|
protected void |
MySqlStreamingChangeEventSource.handleRotateLogsEvent(MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle the supplied event with a RotateEventData that signals the logs are being rotated.
|
protected void |
MySqlStreamingChangeEventSource.handleRowsQuery(MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle the supplied event with an RowsQueryEventData by recording the original SQL query
that generated the event.
|
protected void |
MySqlStreamingChangeEventSource.handleServerHeartbeat(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle the supplied event that is sent by a primary to a replica to let the replica know that the primary is still alive.
|
protected void |
MySqlStreamingChangeEventSource.handleServerIncident(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle the supplied event that signals that an out of the ordinary event that occurred on the master.
|
protected void |
MySqlStreamingChangeEventSource.handleServerStop(MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle the supplied event that signals that mysqld has stopped.
|
private void |
MySqlStreamingChangeEventSource.handleTransactionCompletion(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
|
protected void |
MySqlStreamingChangeEventSource.handleUpdate(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Generate source records for the supplied event with an UpdateRowsEventData.
|
protected void |
MySqlStreamingChangeEventSource.handleUpdateTableMetadata(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle a change in the table metadata.
|
protected void |
MySqlStreamingChangeEventSource.ignoreEvent(MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
|
private void |
MySqlStreamingChangeEventSource.informAboutUnknownTableIfRequired(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event,
TableId tableId) |
|
private void |
MySqlStreamingChangeEventSource.informAboutUnknownTableIfRequired(MySqlPartition partition,
MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event,
TableId tableId,
Envelope.Operation operation) |
|
protected boolean |
MySqlConnectorTask.isBinlogAvailable(MySqlConnectorConfig config,
MySqlOffsetContext offset) |
Determine whether the binlog position as set on the MySqlOffsetContext is available in the server.
|
protected void |
MySqlStreamingChangeEventSource.logEvent(MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
|
protected void |
MySqlStreamingChangeEventSource.onEvent(MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
|
private List<SchemaChangeEvent> |
MySqlDatabaseSchema.parseDdl(MySqlPartition partition,
String ddlStatements,
String databaseName,
MySqlOffsetContext offset,
Instant sourceTime,
boolean snapshot) |
|
List<SchemaChangeEvent> |
MySqlDatabaseSchema.parseSnapshotDdl(MySqlPartition partition,
String ddlStatements,
String databaseName,
MySqlOffsetContext offset,
Instant sourceTime) |
|
List<SchemaChangeEvent> |
MySqlDatabaseSchema.parseStreamingDdl(MySqlPartition partition,
String ddlStatements,
String databaseName,
MySqlOffsetContext offset,
Instant sourceTime) |
|
protected void |
MySqlStreamingChangeEventSource.prepareTransaction(MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle a EventType.XA_PREPARE event.
|
protected void |
MySqlSnapshotChangeEventSource.readTableStructure(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.RelationalSnapshotContext<MySqlPartition,MySqlOffsetContext> snapshotContext,
MySqlOffsetContext offsetContext) |
|
private boolean |
MySqlConnectorTask.validateAndLoadDatabaseHistory(MySqlConnectorConfig config,
MySqlPartition partition,
MySqlOffsetContext offset,
MySqlDatabaseSchema schema) |
|
private boolean |
MySqlConnectorTask.validateSnapshotFeasibility(MySqlConnectorConfig config,
MySqlOffsetContext offset) |
|
protected void |
MySqlStreamingChangeEventSource.viewChange(MySqlOffsetContext offsetContext,
com.github.shyiko.mysql.binlog.event.Event event) |
Handle a EventType.VIEW_CHANGE event.
|