Enum Class WALActionsListener.RollRequestReason
java.lang.Object
java.lang.Enum<WALActionsListener.RollRequestReason>
org.apache.hadoop.hbase.regionserver.wal.WALActionsListener.RollRequestReason
- All Implemented Interfaces:
Serializable
,Comparable<WALActionsListener.RollRequestReason>
,Constable
- Enclosing interface:
- WALActionsListener
public static enum WALActionsListener.RollRequestReason
extends Enum<WALActionsListener.RollRequestReason>
The reason for the log roll request.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionI/O or other error.Too few replicas in the writer pipeline.The length of the log exceeds the roll size threshold.Too much time spent waiting for sync. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static WALActionsListener.RollRequestReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIZE
The length of the log exceeds the roll size threshold. -
LOW_REPLICATION
Too few replicas in the writer pipeline. -
SLOW_SYNC
Too much time spent waiting for sync. -
ERROR
I/O or other error.
-
-
Constructor Details
-
RollRequestReason
private RollRequestReason()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-