public class SqlServerConnectorTask extends BaseSourceTask
| Modifier and Type | Class and Description |
|---|---|
private static class |
SqlServerConnectorTask.State |
| Modifier and Type | Field and Description |
|---|---|
private static String |
CONTEXT_NAME |
private ChangeEventSourceCoordinator |
coordinator |
private ErrorHandler |
errorHandler |
private SqlServerConnection |
jdbcConnection |
private Map<String,?> |
lastOffset |
private static org.slf4j.Logger |
LOGGER |
private ChangeEventQueue<DataChangeEvent> |
queue |
private SqlServerDatabaseSchema |
schema |
private AtomicReference<SqlServerConnectorTask.State> |
state |
private SqlServerTaskContext |
taskContext |
| Constructor and Description |
|---|
SqlServerConnectorTask() |
| Modifier and Type | Method and Description |
|---|---|
private void |
cleanupResources() |
void |
commit() |
protected Iterable<Field> |
getAllConfigurationFields() |
protected OffsetContext |
getPreviousOffset(OffsetContext.Loader loader)
Loads the connector's persistent offset (if present) via the given loader.
|
List<org.apache.kafka.connect.source.SourceRecord> |
poll() |
void |
start(Configuration config) |
void |
stop() |
String |
version() |
startprivate static final org.slf4j.Logger LOGGER
private static final String CONTEXT_NAME
private final AtomicReference<SqlServerConnectorTask.State> state
private volatile SqlServerTaskContext taskContext
private volatile ChangeEventQueue<DataChangeEvent> queue
private volatile SqlServerConnection jdbcConnection
private volatile ChangeEventSourceCoordinator coordinator
private volatile ErrorHandler errorHandler
private volatile SqlServerDatabaseSchema schema
public String version()
public void start(Configuration config)
start in class BaseSourceTaskprotected OffsetContext getPreviousOffset(OffsetContext.Loader loader)
getPreviousOffset in class BaseSourceTaskpublic List<org.apache.kafka.connect.source.SourceRecord> poll() throws InterruptedException
poll in class org.apache.kafka.connect.source.SourceTaskInterruptedExceptionpublic void commit()
throws InterruptedException
commit 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 © 2019 JBoss by Red Hat. All rights reserved.