Class DatanodeStorage

java.lang.Object
org.apache.hadoop.hdfs.server.protocol.DatanodeStorage

public class DatanodeStorage extends Object
Class captures information of a storage in Datanode.
  • Constructor Details

  • Method Details

    • getStorageID

      public String getStorageID()
    • getState

      public DatanodeStorage.State getState()
    • getStorageType

      public org.apache.hadoop.fs.StorageType getStorageType()
    • generateUuid

      public static String 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

      public static boolean isValidStorageId(String storageID)
      Verify that a given string is a storage ID in the "DS-..uuid.." format.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object