Enum Class DataNodeLockManager.LockLevel
java.lang.Object
java.lang.Enum<DataNodeLockManager.LockLevel>
org.apache.hadoop.hdfs.server.common.DataNodeLockManager.LockLevel
- All Implemented Interfaces:
Serializable,Comparable<DataNodeLockManager.LockLevel>,Constable
- Enclosing interface:
- org.apache.hadoop.hdfs.server.common.DataNodeLockManager<T extends org.apache.hadoop.hdfs.server.common.AutoCloseDataSetLock>
Acquire block pool level and volume level lock first if you want to acquire dir lock.
Or only acquire block pool level lock.
There are several locking sequential patterns as below:
1. block pool
2. block pool -> volume
3. block pool level -> volume -> dir
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DataNodeLockManager.LockLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK_POOl
-
VOLUME
-
DIR
-
-
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
-