public static final class MountTable.State extends Object implements Journaled
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() |
Iterator<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
public State(MountInfo mountInfo)
mountInfo
- root mount infopublic 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 Iterator<Journal.JournalEntry> getJournalEntryIterator()
getJournalEntryIterator
in interface JournalEntryIterable
Iterator
that iterates all the journal entriespublic CheckpointName getCheckpointName()
getCheckpointName
in interface Checkpointed
Copyright © 2023. All Rights Reserved.