Class InitialSnapshotNotificationService<P extends Partition,O extends OffsetContext>
java.lang.Object
io.debezium.pipeline.notification.InitialSnapshotNotificationService<P,O>
public class InitialSnapshotNotificationService<P extends Partition,O extends OffsetContext>
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate final Clockstatic final Stringprivate final CommonConnectorConfigstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate final NotificationService<P, O> static final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionInitialSnapshotNotificationService(NotificationService<P, O> notificationService, CommonConnectorConfig connectorConfig, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionprivate <T extends io.debezium.spi.schema.DataCollectionId>
NotificationbuildNotificationWith(String snapshotStatus, Map<String, String> additionalData) private String<T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyAborted(P partition, OffsetContext offsetContext) <T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyCompleted(P partition, OffsetContext offsetContext) <T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyCompletedTableChunkSuccessfully(P partition, OffsetContext offsetContext, String currentCollection, int chunkIndex, int totalChunks, Set<TableId> tables) <T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyCompletedTableSuccessfully(P partition, OffsetContext offsetContext, String currentCollection) <T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyCompletedTableSuccessfully(P partition, OffsetContext offsetContext, String currentCollection, long totalRowsScanned, Set<TableId> tables) <T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyCompletedTableWithError(P partition, OffsetContext offsetContext, String currentCollection) voidnotifySkipped(P partition, OffsetContext offsetContext) <T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyStarted(P partition, OffsetContext offsetContext) <T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyTableChunkInProgress(P partition, OffsetContext offsetContext, String currentCollection, int chunkIndex, int totalChunks, long totalRowsScanned) <T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyTableInProgress(P partition, OffsetContext offsetContext, String currentCollection) <T extends io.debezium.spi.schema.DataCollectionId>
voidnotifyTableInProgress(P partition, OffsetContext offsetContext, String currentCollection, Set<TableId> tables)
-
Field Details
-
INITIAL_SNAPSHOT
- See Also:
-
NONE
- See Also:
-
CONNECTOR_NAME
- See Also:
-
STATUS
- See Also:
-
TOTAL_ROWS_SCANNED
- See Also:
-
SCANNED_COLLECTION
- See Also:
-
CURRENT_COLLECTION_IN_PROGRESS
- See Also:
-
DATA_COLLECTIONS
- See Also:
-
CHUNK_INDEX
- See Also:
-
TOTAL_CHUNKS
- See Also:
-
notificationService
-
connectorConfig
-
clock
-
-
Constructor Details
-
InitialSnapshotNotificationService
public InitialSnapshotNotificationService(NotificationService<P, O> notificationService, CommonConnectorConfig connectorConfig, Clock clock)
-
-
Method Details
-
notifyTableInProgress
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyTableInProgress(P partition, OffsetContext offsetContext, String currentCollection) -
notifyTableInProgress
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyTableInProgress(P partition, OffsetContext offsetContext, String currentCollection, Set<TableId> tables) -
notifyTableChunkInProgress
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyTableChunkInProgress(P partition, OffsetContext offsetContext, String currentCollection, int chunkIndex, int totalChunks, long totalRowsScanned) -
notifyCompletedTableSuccessfully
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyCompletedTableSuccessfully(P partition, OffsetContext offsetContext, String currentCollection) -
notifyCompletedTableSuccessfully
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyCompletedTableSuccessfully(P partition, OffsetContext offsetContext, String currentCollection, long totalRowsScanned, Set<TableId> tables) -
notifyCompletedTableChunkSuccessfully
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyCompletedTableChunkSuccessfully(P partition, OffsetContext offsetContext, String currentCollection, int chunkIndex, int totalChunks, Set<TableId> tables) -
notifyCompletedTableWithError
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyCompletedTableWithError(P partition, OffsetContext offsetContext, String currentCollection) -
notifyStarted
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyStarted(P partition, OffsetContext offsetContext) -
notifyAborted
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyAborted(P partition, OffsetContext offsetContext) -
notifyCompleted
public <T extends io.debezium.spi.schema.DataCollectionId> void notifyCompleted(P partition, OffsetContext offsetContext) -
notifySkipped
-
buildNotificationWith
private <T extends io.debezium.spi.schema.DataCollectionId> Notification buildNotificationWith(String snapshotStatus, Map<String, String> additionalData) -
getConnectorName
-