Class EhcacheLogMinerEventProcessor
java.lang.Object
io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor<EhcacheTransaction>
io.debezium.connector.oracle.logminer.processor.ehcache.EhcacheLogMinerEventProcessor
- All Implemented Interfaces:
CacheProvider<EhcacheTransaction>,LogMinerEventProcessor,AutoCloseable
public class EhcacheLogMinerEventProcessor
extends AbstractLogMinerEventProcessor<EhcacheTransaction>
An
AbstractLogMinerEventProcessor implementation for storing buffer details off-heap in a
set of Ehcache-backed caches.- Author:
- Chris Cranford
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor
AbstractLogMinerEventProcessor.Counters -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.ehcache.CacheManagerprivate final LogMinerCache<String, LogMinerEvent> private static final org.slf4j.Loggerprivate final LogMinerCache<String, String> private final LogMinerCache<String, String> private final LogMinerCache<String, EhcacheTransaction> Fields inherited from class io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor
counters, sqlQueryFields inherited from interface io.debezium.connector.oracle.logminer.processor.CacheProvider
EVENTS_CACHE_NAME, PROCESSED_TRANSACTIONS_CACHE_NAME, SCHEMA_CHANGES_CACHE_NAME, TRANSACTIONS_CACHE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionEhcacheLogMinerEventProcessor(ChangeEventSource.ChangeEventSourceContext context, OracleConnectorConfig connectorConfig, OracleConnection jdbcConnection, EventDispatcher<OraclePartition, TableId> dispatcher, OraclePartition partition, OracleOffsetContext offsetContext, OracleDatabaseSchema schema, LogMinerStreamingChangeEventSourceMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private org.ehcache.CacheManagercreateCacheManager(OracleConnectorConfig connectorConfig) protected EhcacheTransactionCreates a new transaction based on the suppliedSTARTevent.private StringgetConfigurationWithSubstitutions(Configuration configuration) Get the LogMiner events cache Key - The event id, in the format oftransactionId-eventSequenceValue - The raw LogMinerEvent object instanceGet the processed transactions cache Key - The unique transaction id Value - The transaction's commit or rollback system change numberGet the Schema Changes cache Key - The system change number of the schema change Value - The table the schema change is related toGet the transaction cache Key - The unique transaction id Value - The transaction instanceprivate StringMethods inherited from class io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor
abandonTransactionOverEventThreshold, abandonTransactions, addToTransaction, calculateNewStartScn, cleanupAfterTransactionRemovedFromCache, compareStartScn, createQueryStatement, dispatchSchemaChangeEventAndGetTableForNewCapturedTable, displayCacheStatistics, finalizeTransactionCommit, finalizeTransactionRollback, getAbandonedTransactionsCache, getAndRemoveTransactionFromCache, getConfig, getFirstActiveTransactionKey, getLastProcessedScn, getLastProcessedScnChangeTime, getLastScnToAbandon, getLoggedAbandonedTransactionTableNames, getOldestTransactionInCache, getQueryString, getSchema, getTableMetadataDdl, getTransactionCacheMinimumScn, getTransactionEventCount, getTransactionEventIterator, getTransactionIdPrefix, getTransactionKeysWithPrefix, handleCommit, handleCommitNotFoundInBuffer, handleDataEvent, handleLobWrite, handleMissingScn, handleRollback, handleRollbackNotFoundInBuffer, handleSchemaChange, handleSelectLobLocator, handleStart, handleUnsupportedEvent, hasSchemaChangeBeenSeen, isRecentlyProcessed, isTransactionIdWithNoSequence, isTransactionOverEventThreshold, isTransactionUserExcluded, isTrxIdRawValue, oldestTransactionComparison, process, processResults, processRow, purgeCache, reCreateInMemoryCache, removeEventWithRowId, resetTransactionToStart, warnPotentiallyStuckScn
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
cacheManager
private final org.ehcache.CacheManager cacheManager -
transactionsCache
-
eventCache
-
processedTransactionsCache
-
schemaChangesCache
-
-
Constructor Details
-
EhcacheLogMinerEventProcessor
public EhcacheLogMinerEventProcessor(ChangeEventSource.ChangeEventSourceContext context, OracleConnectorConfig connectorConfig, OracleConnection jdbcConnection, EventDispatcher<OraclePartition, TableId> dispatcher, OraclePartition partition, OracleOffsetContext offsetContext, OracleDatabaseSchema schema, LogMinerStreamingChangeEventSourceMetrics metrics)
-
-
Method Details
-
createTransaction
Description copied from class:AbstractLogMinerEventProcessorCreates a new transaction based on the suppliedSTARTevent.- Specified by:
createTransactionin classAbstractLogMinerEventProcessor<EhcacheTransaction>- Parameters:
row- the event row, must not benull- Returns:
- the implementation-specific
Transactioninstance
-
getTransactionCache
Description copied from interface:CacheProviderGet the transaction cache- Key - The unique transaction id
- Value - The transaction instance
- Returns:
- the transaction cache, never
null
-
getEventCache
Description copied from interface:CacheProviderGet the LogMiner events cache- Key - The event id, in the format of
transactionId-eventSequence - Value - The raw LogMinerEvent object instance
- Returns:
- the evnts cache, never
null
- Key - The event id, in the format of
-
getSchemaChangesCache
Description copied from interface:CacheProviderGet the Schema Changes cache- Key - The system change number of the schema change
- Value - The table the schema change is related to
- Returns:
- the schema changes cache, never
null
-
getProcessedTransactionsCache
Description copied from interface:CacheProviderGet the processed transactions cache- Key - The unique transaction id
- Value - The transaction's commit or rollback system change number
- Returns:
- the processed transactions cache, never
null
-
close
- Throws:
Exception
-
createCacheManager
-
getConfigurationWithSubstitutions
-
readConfigurationTemplate
-