public class SqlServerConnectorTask extends BaseSourceTask
BaseSourceTask.State| Modifier and Type | Field and Description |
|---|---|
private static String |
CONTEXT_NAME |
private ChangeEventSourceCoordinator |
coordinator |
private SqlServerConnection |
dataConnection |
private ErrorHandler |
errorHandler |
private static org.slf4j.Logger |
LOGGER |
private SqlServerConnection |
metadataConnection |
private ChangeEventQueue<DataChangeEvent> |
queue |
private SqlServerDatabaseSchema |
schema |
private SqlServerTaskContext |
taskContext |
state| Constructor and Description |
|---|
SqlServerConnectorTask() |
| Modifier and Type | Method and Description |
|---|---|
private void |
cleanupResources() |
protected Iterable<Field> |
getAllConfigurationFields() |
List<org.apache.kafka.connect.source.SourceRecord> |
poll() |
ChangeEventSourceCoordinator |
start(Configuration config) |
void |
stop() |
String |
version() |
commit, commitRecord, getPreviousOffset, startprivate static final org.slf4j.Logger LOGGER
private static final String CONTEXT_NAME
private volatile SqlServerTaskContext taskContext
private volatile ChangeEventQueue<DataChangeEvent> queue
private volatile SqlServerConnection dataConnection
private volatile SqlServerConnection metadataConnection
private volatile ChangeEventSourceCoordinator coordinator
private volatile ErrorHandler errorHandler
private volatile SqlServerDatabaseSchema schema
public String version()
public ChangeEventSourceCoordinator start(Configuration config)
start in class BaseSourceTaskpublic List<org.apache.kafka.connect.source.SourceRecord> poll() throws InterruptedException
poll in class org.apache.kafka.connect.source.SourceTaskInterruptedExceptionpublic void stop()
stop in interface org.apache.kafka.connect.connector.Taskstop in class org.apache.kafka.connect.source.SourceTaskprivate void cleanupResources()
protected Iterable<Field> getAllConfigurationFields()
getAllConfigurationFields in class BaseSourceTaskCopyright © 2020 JBoss by Red Hat. All rights reserved.