public class LogMinerStreamingChangeEventSource extends Object implements io.debezium.pipeline.source.spi.StreamingChangeEventSource
StreamingChangeEventSource based on Oracle's LogMiner utility.
The event handler loop is executed in a separate executor.| Modifier and Type | Field and Description |
|---|---|
private String |
catalogName |
private io.debezium.util.Clock |
clock |
private OracleConnectorConfig |
connectorConfig |
private io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId> |
dispatcher |
private SimpleDmlParser |
dmlParser |
private long |
endScn |
private io.debezium.pipeline.ErrorHandler |
errorHandler |
private boolean |
isContinuousMining |
private OracleConnection |
jdbcConnection |
private static org.slf4j.Logger |
LOGGER |
private LogMinerMetrics |
logMinerMetrics |
private OracleOffsetContext |
offsetContext |
private OracleDatabaseSchema |
schema |
private long |
startScn |
private OracleConnectorConfig.LogMiningStrategy |
strategy |
private OracleTaskContext |
taskContext |
private TransactionalBuffer |
transactionalBuffer |
private TransactionalBufferMetrics |
transactionalBufferMetrics |
| Constructor and Description |
|---|
LogMinerStreamingChangeEventSource(OracleConnectorConfig connectorConfig,
OracleOffsetContext offsetContext,
OracleConnection jdbcConnection,
io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId> dispatcher,
io.debezium.pipeline.ErrorHandler errorHandler,
io.debezium.util.Clock clock,
OracleDatabaseSchema schema,
OracleTaskContext taskContext) |
| Modifier and Type | Method and Description |
|---|---|
private void |
abandonOldTransactionsIfExist(Connection connection) |
void |
commitOffset(Map<String,?> offset) |
void |
execute(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext context)
This is the loop to get changes from LogMiner
|
private void |
updateStartScn() |
private static final org.slf4j.Logger LOGGER
private final OracleConnection jdbcConnection
private final io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId> dispatcher
private final io.debezium.util.Clock clock
private final OracleDatabaseSchema schema
private final OracleOffsetContext offsetContext
private final SimpleDmlParser dmlParser
private final String catalogName
private OracleConnectorConfig connectorConfig
private TransactionalBufferMetrics transactionalBufferMetrics
private LogMinerMetrics logMinerMetrics
private TransactionalBuffer transactionalBuffer
private final OracleConnectorConfig.LogMiningStrategy strategy
private final OracleTaskContext taskContext
private final io.debezium.pipeline.ErrorHandler errorHandler
private final boolean isContinuousMining
private long startScn
private long endScn
public LogMinerStreamingChangeEventSource(OracleConnectorConfig connectorConfig, OracleOffsetContext offsetContext, OracleConnection jdbcConnection, io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId> dispatcher, io.debezium.pipeline.ErrorHandler errorHandler, io.debezium.util.Clock clock, OracleDatabaseSchema schema, OracleTaskContext taskContext)
public void execute(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext context)
execute in interface io.debezium.pipeline.source.spi.StreamingChangeEventSourcecontext - change event source contextprivate void abandonOldTransactionsIfExist(Connection connection) throws SQLException
SQLExceptionprivate void updateStartScn()
Copyright © 2020 JBoss by Red Hat. All rights reserved.