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
Modifier and TypeClassDescriptionstatic enum
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInitialSnapshotNotificationService
(NotificationService<P, O> notificationService, CommonConnectorConfig connectorConfig, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionprivate <T extends DataCollectionId>
NotificationbuildNotificationWith
(String snapshotStatus, Map<String, String> additionalData) private String
<T extends DataCollectionId>
voidnotifyAborted
(P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyCompleted
(P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyCompletedTableSuccessfully
(P partition, OffsetContext offsetContext, String currentCollection) <T extends DataCollectionId>
voidnotifyCompletedTableSuccessfully
(P partition, OffsetContext offsetContext, String currentCollection, long totalRowsScanned, Set<TableId> tables) <T extends DataCollectionId>
voidnotifyCompletedTableWithError
(P partition, OffsetContext offsetContext, String currentCollection) void
notifySkipped
(P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyStarted
(P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidnotifyTableInProgress
(P partition, OffsetContext offsetContext, String currentCollection) <T extends 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:
-
notificationService
-
connectorConfig
-
clock
-
-
Constructor Details
-
InitialSnapshotNotificationService
public InitialSnapshotNotificationService(NotificationService<P, O> notificationService, CommonConnectorConfig connectorConfig, Clock clock)
-
-
Method Details
-
notifyTableInProgress
public <T extends DataCollectionId> void notifyTableInProgress(P partition, OffsetContext offsetContext, String currentCollection) -
notifyTableInProgress
public <T extends DataCollectionId> void notifyTableInProgress(P partition, OffsetContext offsetContext, String currentCollection, Set<TableId> tables) -
notifyCompletedTableSuccessfully
public <T extends DataCollectionId> void notifyCompletedTableSuccessfully(P partition, OffsetContext offsetContext, String currentCollection) -
notifyCompletedTableSuccessfully
public <T extends DataCollectionId> void notifyCompletedTableSuccessfully(P partition, OffsetContext offsetContext, String currentCollection, long totalRowsScanned, Set<TableId> tables) -
notifyCompletedTableWithError
public <T extends DataCollectionId> void notifyCompletedTableWithError(P partition, OffsetContext offsetContext, String currentCollection) -
notifyStarted
-
notifyAborted
-
notifyCompleted
-
notifySkipped
-
buildNotificationWith
private <T extends DataCollectionId> Notification buildNotificationWith(String snapshotStatus, Map<String, String> additionalData) -
getConnectorName
-