Class DatanodeStorage
java.lang.Object
org.apache.hadoop.hdfs.server.protocol.DatanodeStorage
Class captures information of a storage in Datanode.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDatanodeStorage(String storageID) Create a storage withDatanodeStorage.State.NORMALandStorageType.DEFAULT.DatanodeStorage(String sid, DatanodeStorage.State s, org.apache.hadoop.fs.StorageType sm) -
Method Summary
-
Constructor Details
-
DatanodeStorage
Create a storage withDatanodeStorage.State.NORMALandStorageType.DEFAULT. -
DatanodeStorage
-
-
Method Details
-
getStorageID
-
getState
-
getStorageType
public org.apache.hadoop.fs.StorageType getStorageType() -
generateUuid
Generate new storage ID. The format of this string can be changed in the future without requiring that old storage IDs be updated.- Returns:
- unique storage ID
-
isValidStorageId
Verify that a given string is a storage ID in the "DS-..uuid.." format. -
toString
-
equals
-
hashCode
public int hashCode()
-