@ThreadSafe public final class MountTable.State extends Object implements Journaled
LOG
Modifier and Type | Method and Description |
---|---|
void |
applyAndJournal(java.util.function.Supplier<JournalContext> context,
File.AddMountPointEntry entry) |
void |
applyAndJournal(java.util.function.Supplier<JournalContext> context,
File.DeleteMountPointEntry entry) |
CheckpointName |
getCheckpointName() |
CloseableIterator<Journal.JournalEntry> |
getJournalEntryIterator() |
Map<String,MountInfo> |
getMountTable() |
boolean |
processJournalEntry(Journal.JournalEntry entry)
Attempts to apply a journal entry.
|
void |
resetState()
Resets the object's journaled state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyAndJournal, restoreFromCheckpoint, writeToCheckpoint
restoreFromCheckpoint, writeToCheckpoint
public Map<String,MountInfo> getMountTable()
public void applyAndJournal(java.util.function.Supplier<JournalContext> context, File.AddMountPointEntry entry)
context
- journal contextentry
- add mount point entrypublic void applyAndJournal(java.util.function.Supplier<JournalContext> context, File.DeleteMountPointEntry entry)
context
- journal contextentry
- delete mount point entrypublic boolean processJournalEntry(Journal.JournalEntry entry)
Journaled
processJournalEntry
in interface Journaled
entry
- the entry to applypublic void resetState()
Journaled
resetState
in interface Journaled
public CloseableIterator<Journal.JournalEntry> getJournalEntryIterator()
getJournalEntryIterator
in interface JournalEntryIterable
CloseableIterator
that iterates all the journal entriespublic CheckpointName getCheckpointName()
getCheckpointName
in interface Checkpointed
Copyright © 2023. All Rights Reserved.