@ThreadSafe public final class FileDatabaseHistory extends AbstractDatabaseHistory
DatabaseHistory implementation that stores the schema history in a local file.| Modifier and Type | Field and Description |
|---|---|
static Collection<Field> |
ALL_FIELDS |
static Field |
FILE_PATH |
private FunctionalReadWriteLock |
lock |
private Path |
path |
private DocumentReader |
reader |
private static Charset |
UTF8 |
private DocumentWriter |
writer |
config, loggerCONFIGURATION_FIELD_PREFIX_STRING| Constructor and Description |
|---|
FileDatabaseHistory() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration config,
HistoryRecordComparator comparator)
Configure this instance.
|
protected void |
recoverRecords(Tables schema,
DdlParser ddlParser,
Consumer<HistoryRecord> records) |
protected void |
storeRecord(HistoryRecord record) |
String |
toString() |
record, recover, start, stoppublic static final Field FILE_PATH
public static Collection<Field> ALL_FIELDS
private static final Charset UTF8
private final FunctionalReadWriteLock lock
private final DocumentWriter writer
private final DocumentReader reader
private Path path
public void configure(Configuration config, HistoryRecordComparator comparator)
DatabaseHistoryconfigure in interface DatabaseHistoryconfigure in class AbstractDatabaseHistoryconfig - the configuration for this history storecomparator - the function that should be used to compare history records during
recovery; may be null if the
default comparator is to be usedprotected void storeRecord(HistoryRecord record)
storeRecord in class AbstractDatabaseHistoryprotected void recoverRecords(Tables schema, DdlParser ddlParser, Consumer<HistoryRecord> records)
recoverRecords in class AbstractDatabaseHistoryCopyright © 2016 JBoss by Red Hat. All rights reserved.