Package io.debezium.connector.sqlserver
Class SqlServerChangeEventSourceCoordinator
java.lang.Object
io.debezium.pipeline.ChangeEventSourceCoordinator<SqlServerPartition,SqlServerOffsetContext>
io.debezium.connector.sqlserver.SqlServerChangeEventSourceCoordinator
public class SqlServerChangeEventSourceCoordinator
extends ChangeEventSourceCoordinator<SqlServerPartition,SqlServerOffsetContext>
Coordinates one or more
ChangeEventSources and executes them in order. Extends the base
ChangeEventSourceCoordinator to support snapshotting and streaming of multiple partitions.-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.pipeline.ChangeEventSourceCoordinator
ChangeEventSourceCoordinator.CatchUpStreamingResult, ChangeEventSourceCoordinator.ChangeEventSourceContextImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Clockprivate final AtomicBooleanprivate static final org.slf4j.Loggerprivate final DurationFields inherited from class io.debezium.pipeline.ChangeEventSourceCoordinator
changeEventSourceFactory, changeEventSourceMetricsFactory, commitOffsetLock, connectorConfig, errorHandler, eventDispatcher, executor, notificationService, previousOffsets, schema, SHUTDOWN_WAIT_TIMEOUT, signalProcessor, snapshotMetrics, snapshotterService, streamingMetrics, streamingSource -
Constructor Summary
ConstructorsConstructorDescriptionSqlServerChangeEventSourceCoordinator(Offsets<SqlServerPartition, SqlServerOffsetContext> previousOffsets, ErrorHandler errorHandler, Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType, CommonConnectorConfig connectorConfig, ChangeEventSourceFactory<SqlServerPartition, SqlServerOffsetContext> changeEventSourceFactory, ChangeEventSourceMetricsFactory<SqlServerPartition> changeEventSourceMetricsFactory, EventDispatcher<SqlServerPartition, ?> eventDispatcher, DatabaseSchema<?> schema, Clock clock, SignalProcessor<SqlServerPartition, SqlServerOffsetContext> signalProcessor, NotificationService<SqlServerPartition, SqlServerOffsetContext> notificationService, SnapshotterService snapshotterService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteChangeEventSources(CdcSourceTaskContext taskContext, SnapshotChangeEventSource<SqlServerPartition, SqlServerOffsetContext> snapshotSource, Offsets<SqlServerPartition, SqlServerOffsetContext> previousOffsets, AtomicReference<LoggingContext.PreviousContext> previousLogContext, ChangeEventSource.ChangeEventSourceContext context) booleanMethods inherited from class io.debezium.pipeline.ChangeEventSourceCoordinator
commitOffset, doBlockingSnapshot, doSnapshot, doSnapshot, executeCatchUpStreaming, getErrorHandler, getSignalProcessor, initStreamEvents, registerSignalActionsAndStartProcessor, start, stop, streamEvents, streamingConnected
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
clock
-
pollInterval
-
firstStreamingIterationCompletedSuccessfully
-
-
Constructor Details
-
SqlServerChangeEventSourceCoordinator
public SqlServerChangeEventSourceCoordinator(Offsets<SqlServerPartition, SqlServerOffsetContext> previousOffsets, ErrorHandler errorHandler, Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType, CommonConnectorConfig connectorConfig, ChangeEventSourceFactory<SqlServerPartition, SqlServerOffsetContext> changeEventSourceFactory, ChangeEventSourceMetricsFactory<SqlServerPartition> changeEventSourceMetricsFactory, EventDispatcher<SqlServerPartition, ?> eventDispatcher, DatabaseSchema<?> schema, Clock clock, SignalProcessor<SqlServerPartition, SqlServerOffsetContext> signalProcessor, NotificationService<SqlServerPartition, SqlServerOffsetContext> notificationService, SnapshotterService snapshotterService)
-
-
Method Details
-
firstStreamingIterationCompletedSuccessfully
public boolean firstStreamingIterationCompletedSuccessfully() -
executeChangeEventSources
protected void executeChangeEventSources(CdcSourceTaskContext taskContext, SnapshotChangeEventSource<SqlServerPartition, SqlServerOffsetContext> snapshotSource, Offsets<SqlServerPartition, throws InterruptedExceptionSqlServerOffsetContext> previousOffsets, AtomicReference<LoggingContext.PreviousContext> previousLogContext, ChangeEventSource.ChangeEventSourceContext context) - Overrides:
executeChangeEventSourcesin classChangeEventSourceCoordinator<SqlServerPartition,SqlServerOffsetContext> - Throws:
InterruptedException
-