Enum Class FSEditLogOpCodes
- All Implemented Interfaces:
Serializable,Comparable<FSEditLogOpCodes>,Constable
Op codes for edits file
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic FSEditLogOpCodesfromByte(byte opCode) Converts byte to FSEditLogOpCodes enum valueClass<? extends FSEditLogOp>bytereturn the byte value of the enumstatic FSEditLogOpCodesReturns the enum constant of this class with the specified name.static FSEditLogOpCodes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OP_ADD
-
OP_RENAME_OLD
-
OP_DELETE
-
OP_MKDIR
-
OP_SET_REPLICATION
-
OP_DATANODE_ADD
Deprecated. -
OP_DATANODE_REMOVE
Deprecated. -
OP_SET_PERMISSIONS
-
OP_SET_OWNER
-
OP_CLOSE
-
OP_SET_GENSTAMP_V1
-
OP_SET_NS_QUOTA
-
OP_CLEAR_NS_QUOTA
-
OP_TIMES
-
OP_SET_QUOTA
-
OP_RENAME
-
OP_CONCAT_DELETE
-
OP_SYMLINK
-
OP_GET_DELEGATION_TOKEN
-
OP_RENEW_DELEGATION_TOKEN
-
OP_CANCEL_DELEGATION_TOKEN
-
OP_UPDATE_MASTER_KEY
-
OP_REASSIGN_LEASE
-
OP_END_LOG_SEGMENT
-
OP_START_LOG_SEGMENT
-
OP_UPDATE_BLOCKS
-
OP_CREATE_SNAPSHOT
-
OP_DELETE_SNAPSHOT
-
OP_RENAME_SNAPSHOT
-
OP_ALLOW_SNAPSHOT
-
OP_DISALLOW_SNAPSHOT
-
OP_SET_GENSTAMP_V2
-
OP_ALLOCATE_BLOCK_ID
-
OP_ADD_BLOCK
-
OP_ADD_CACHE_DIRECTIVE
-
OP_REMOVE_CACHE_DIRECTIVE
-
OP_ADD_CACHE_POOL
-
OP_MODIFY_CACHE_POOL
-
OP_REMOVE_CACHE_POOL
-
OP_MODIFY_CACHE_DIRECTIVE
-
OP_SET_ACL
-
OP_ROLLING_UPGRADE_START
-
OP_ROLLING_UPGRADE_FINALIZE
-
OP_SET_XATTR
-
OP_REMOVE_XATTR
-
OP_SET_STORAGE_POLICY
-
OP_TRUNCATE
-
OP_APPEND
-
OP_SET_QUOTA_BY_STORAGETYPE
-
OP_ADD_ERASURE_CODING_POLICY
-
OP_ENABLE_ERASURE_CODING_POLICY
-
OP_DISABLE_ERASURE_CODING_POLICY
-
OP_REMOVE_ERASURE_CODING_POLICY
-
OP_INVALID
-
-
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
-
getOpCode
public byte getOpCode()return the byte value of the enum- Returns:
- the byte value of the enum
-
getOpClass
-
fromByte
Converts byte to FSEditLogOpCodes enum value- Parameters:
opCode- get enum for this opCode- Returns:
- enum with byte value of opCode
-