Package io.debezium.snapshot
Class SnapshotterServiceProvider
java.lang.Object
io.debezium.snapshot.SnapshotterServiceProvider
- All Implemented Interfaces:
ServiceProvider<SnapshotterService>
public abstract class SnapshotterServiceProvider
extends Object
implements ServiceProvider<SnapshotterService>
An implementation of the
ServiceProvider
contract for the SnapshotterService
.- Author:
- Mario Fiore Vitale
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateService
(Configuration configuration, ServiceRegistry serviceRegistry) Creates or provides a desired service.private String
Get the service class that should be initiated or provided.private static SnapshotterService
getSnapshotterService
(Configuration configuration, Snapshotter s, BeanRegistry beanRegistry, SnapshotQuery snapshotQueryService, SnapshotLock snapshotLockService) private boolean
isForCurrentConnector
(Configuration configuration, Snapshotter s) abstract String
snapshotMode
(BeanRegistry beanRegistry)
-
Constructor Details
-
SnapshotterServiceProvider
public SnapshotterServiceProvider()
-
-
Method Details
-
createService
public SnapshotterService createService(Configuration configuration, ServiceRegistry serviceRegistry) Description copied from interface:ServiceProvider
Creates or provides a desired service.- Specified by:
createService
in interfaceServiceProvider<SnapshotterService>
- Parameters:
configuration
- the connector configurationserviceRegistry
- the service registry- Returns:
- the constructed service
-
isForCurrentConnector
-
getConnectorClassPackage
-
getSnapshotterService
private static SnapshotterService getSnapshotterService(Configuration configuration, Snapshotter s, BeanRegistry beanRegistry, SnapshotQuery snapshotQueryService, SnapshotLock snapshotLockService) -
getServiceClass
Description copied from interface:ServiceProvider
Get the service class that should be initiated or provided. The service class should be unique in the registry.- Specified by:
getServiceClass
in interfaceServiceProvider<SnapshotterService>
- Returns:
- the service class
-
snapshotMode
-