@ThreadSafe public class PostgresTaskContext extends CdcSourceTaskContext
PostgresConnectorTask. This deals with most of the brunt of reading various configuration options
and creating other objects with these various options.| Modifier and Type | Field and Description |
|---|---|
private PostgresConnectorConfig |
config |
private Long |
lastXmin |
protected static org.slf4j.Logger |
LOGGER |
private ElapsedTimeStrategy |
refreshXmin |
private PostgresSchema |
schema |
private TopicSelector<TableId> |
topicSelector |
| Modifier | Constructor and Description |
|---|---|
protected |
PostgresTaskContext(PostgresConnectorConfig config,
PostgresSchema schema,
TopicSelector<TableId> topicSelector) |
| Modifier and Type | Method and Description |
|---|---|
protected PostgresConnectorConfig |
config() |
protected PostgresConnection |
createConnection() |
protected ReplicationConnection |
createReplicationConnection(boolean exportSnapshot) |
(package private) PostgresConnectorConfig |
getConfig() |
private SlotState |
getCurrentSlotState(PostgresConnection connection) |
(package private) Long |
getSlotXmin(PostgresConnection connection) |
protected void |
refreshSchema(PostgresConnection connection,
boolean printReplicaIdentityInfo) |
protected PostgresSchema |
schema() |
protected TopicSelector<TableId> |
topicSelector() |
capturedDataCollections, configureLoggingContext, getClock, getConnectorName, getConnectorTypeprotected static final org.slf4j.Logger LOGGER
private final PostgresConnectorConfig config
private final TopicSelector<TableId> topicSelector
private final PostgresSchema schema
private ElapsedTimeStrategy refreshXmin
private Long lastXmin
protected PostgresTaskContext(PostgresConnectorConfig config, PostgresSchema schema, TopicSelector<TableId> topicSelector)
protected TopicSelector<TableId> topicSelector()
protected PostgresSchema schema()
protected PostgresConnectorConfig config()
protected void refreshSchema(PostgresConnection connection, boolean printReplicaIdentityInfo) throws SQLException
SQLExceptionLong getSlotXmin(PostgresConnection connection) throws SQLException
SQLExceptionprivate SlotState getCurrentSlotState(PostgresConnection connection) throws SQLException
SQLExceptionprotected ReplicationConnection createReplicationConnection(boolean exportSnapshot) throws SQLException
SQLExceptionprotected PostgresConnection createConnection()
PostgresConnectorConfig getConfig()
Copyright © 2019 JBoss by Red Hat. All rights reserved.