Enum Class NameNode.OperationCategory
java.lang.Object
java.lang.Enum<NameNode.OperationCategory>
org.apache.hadoop.hdfs.server.namenode.NameNode.OperationCategory
- All Implemented Interfaces:
Serializable,Comparable<NameNode.OperationCategory>,Constable
- Enclosing class:
- org.apache.hadoop.hdfs.server.namenode.NameNode
Categories of operations supported by the namenode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOperations related to checkpointingOperations related toJournalProtocolRead operation that does not change the namespace stateOperations that are state agnosticWrite operation that changes the namespace state -
Method Summary
Modifier and TypeMethodDescriptionstatic NameNode.OperationCategoryReturns the enum constant of this class with the specified name.static NameNode.OperationCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNCHECKED
Operations that are state agnostic -
READ
Read operation that does not change the namespace state -
WRITE
Write operation that changes the namespace state -
CHECKPOINT
Operations related to checkpointing -
JOURNAL
Operations related toJournalProtocol
-
-
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
-