public class JournaledJobMetaStore extends Object implements JobMetaStore, Journaled
Constructor and Description |
---|
JournaledJobMetaStore(FileSystemMaster fileSystemMaster)
Creates a new instance of
JournaledJobMetaStore . |
Modifier and Type | Method and Description |
---|---|
CheckpointName |
getCheckpointName() |
Set<Job<?>> |
getJobs() |
CloseableIterator<Journal.JournalEntry> |
getJournalEntryIterator() |
boolean |
processJournalEntry(Journal.JournalEntry entry)
Attempts to apply a journal entry.
|
void |
resetState()
Resets the object's journaled state.
|
void |
updateJob(Job<?> job)
Update existing job in the meta store with the new job.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyAndJournal, restoreFromCheckpoint, writeToCheckpoint
public JournaledJobMetaStore(FileSystemMaster fileSystemMaster)
JournaledJobMetaStore
.fileSystemMaster
- the file system masterpublic CloseableIterator<Journal.JournalEntry> getJournalEntryIterator()
getJournalEntryIterator
in interface JournalEntryIterable
CloseableIterator
that iterates all the journal entriespublic boolean processJournalEntry(Journal.JournalEntry entry)
Journaled
processJournalEntry
in interface Journaled
entry
- the entry to applypublic void resetState()
Journaled
resetState
in interface Journaled
public CheckpointName getCheckpointName()
getCheckpointName
in interface Checkpointed
public void updateJob(Job<?> job)
JobMetaStore
updateJob
in interface JobMetaStore
job
- the job used to update the existing job in the meta storepublic Set<Job<?>> getJobs()
getJobs
in interface JobMetaStore
Copyright © 2023. All Rights Reserved.