Package alluxio.master.backcompat
Class Journal
- java.lang.Object
-
- alluxio.master.backcompat.Journal
-
public final class Journal extends java.lang.ObjectClass representing a journal used by the backwards compatibility test.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDir()VersiongetVersion()booleanisBackup()static java.util.Optional<Journal>parse(java.lang.String path)
-
-
-
Method Detail
-
isBackup
public boolean isBackup()
- Returns:
- whether this is a journal backup, as opposed to a full journal directory
-
getDir
public java.lang.String getDir()
- Returns:
- the absolute directory of the journal
-
getVersion
public Version getVersion()
- Returns:
- the version of the journal
-
parse
public static java.util.Optional<Journal> parse(java.lang.String path)
- Parameters:
path- an absolute path of an Alluxio journal or journal backup- Returns:
- the constructed Journal
-
-