Package io.debezium.relational.history
Class AbstractFileBasedSchemaHistory
java.lang.Object
io.debezium.relational.history.AbstractSchemaHistory
io.debezium.relational.history.AbstractFileBasedSchemaHistory
- All Implemented Interfaces:
SchemaHistory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DocumentReader
protected final DocumentWriter
protected final FunctionalReadWriteLock
private static final org.slf4j.Logger
protected List
<HistoryRecord> protected final AtomicBoolean
Fields inherited from class io.debezium.relational.history.AbstractSchemaHistory
ALL_FIELDS, config, logger
Fields inherited from interface io.debezium.relational.history.SchemaHistory
CONFIGURATION_FIELD_PREFIX_STRING, DDL_FILTER, INTERNAL_CONNECTOR_CLASS, INTERNAL_CONNECTOR_ID, INTERNAL_PREFER_DDL, NAME, SKIP_UNPARSEABLE_DDL_STATEMENTS, STORE_ONLY_CAPTURED_DATABASES_DDL, STORE_ONLY_CAPTURED_TABLES_DDL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
doPreStoreRecord
(HistoryRecord record) protected void
doStart()
protected void
doStop()
protected void
doStoreRecord
(HistoryRecord record) boolean
exists()
Determines if the database schema history entity exists; i.e.protected byte[]
fromHistoryRecord
(HistoryRecord record) protected List
<HistoryRecord> protected void
recoverRecords
(Consumer<HistoryRecord> records) void
start()
Start the history.void
stop()
Stop recording history and release any resources acquired sinceSchemaHistory.configure(Configuration, HistoryRecordComparator, SchemaHistoryListener, boolean)
.protected void
storeRecord
(HistoryRecord record) protected void
toHistoryRecord
(InputStream inputStream) Methods inherited from class io.debezium.relational.history.AbstractSchemaHistory
configure, initializeStorage, record, record, recover
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.debezium.relational.history.SchemaHistory
recover, recover, storageExists
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
lock
-
running
-
documentWriter
-
documentReader
-
records
-
-
Constructor Details
-
AbstractFileBasedSchemaHistory
public AbstractFileBasedSchemaHistory()
-
-
Method Details
-
toHistoryRecord
-
fromHistoryRecord
-
getRecords
-
start
public void start()Description copied from interface:SchemaHistory
Start the history.- Specified by:
start
in interfaceSchemaHistory
- Overrides:
start
in classAbstractSchemaHistory
-
stop
public void stop()Description copied from interface:SchemaHistory
Stop recording history and release any resources acquired sinceSchemaHistory.configure(Configuration, HistoryRecordComparator, SchemaHistoryListener, boolean)
.- Specified by:
stop
in interfaceSchemaHistory
- Overrides:
stop
in classAbstractSchemaHistory
-
storeRecord
- Specified by:
storeRecord
in classAbstractSchemaHistory
- Throws:
SchemaHistoryException
-
recoverRecords
- Specified by:
recoverRecords
in classAbstractSchemaHistory
-
exists
public boolean exists()Description copied from interface:SchemaHistory
Determines if the database schema history entity exists; i.e. the storage must have been initialized and the history must have been populated. -
doPreStart
protected void doPreStart() -
doStart
protected void doStart() -
doStop
protected void doStop() -
doPreStoreRecord
-
doStoreRecord
-