Package org.apache.accumulo.server.log
Enum SortedLogState
- java.lang.Object
-
- java.lang.Enum<SortedLogState>
-
- org.apache.accumulo.server.log.SortedLogState
-
- All Implemented Interfaces:
Serializable
,Comparable<SortedLogState>
public enum SortedLogState extends Enum<SortedLogState>
A file is written in the destination directory for the sorting of write-ahead logs that need recovering. The value ofgetMarker()
is the name of the file that will exist in the sorted output directory.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.hadoop.fs.Path
getFailedMarkerPath(String rootPath)
static org.apache.hadoop.fs.Path
getFinishedMarkerPath(String rootPath)
static org.apache.hadoop.fs.Path
getFinishedMarkerPath(org.apache.hadoop.fs.Path rootPath)
String
getMarker()
static boolean
isFinished(String fileName)
String
toString()
static SortedLogState
valueOf(String name)
Returns the enum constant of this type with the specified name.static SortedLogState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FINISHED
public static final SortedLogState FINISHED
-
FAILED
public static final SortedLogState FAILED
-
-
Method Detail
-
values
public static SortedLogState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SortedLogState c : SortedLogState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SortedLogState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMarker
public String getMarker()
-
isFinished
public static boolean isFinished(String fileName)
-
getFinishedMarkerPath
public static org.apache.hadoop.fs.Path getFinishedMarkerPath(String rootPath)
-
getFinishedMarkerPath
public static org.apache.hadoop.fs.Path getFinishedMarkerPath(org.apache.hadoop.fs.Path rootPath)
-
getFailedMarkerPath
public static org.apache.hadoop.fs.Path getFailedMarkerPath(String rootPath)
-
toString
public String toString()
- Overrides:
toString
in classEnum<SortedLogState>
-
-