Class DatanodeLayoutStorage

java.lang.Object
org.apache.hadoop.ozone.common.Storage
org.apache.hadoop.ozone.container.common.DatanodeLayoutStorage

public class DatanodeLayoutStorage extends org.apache.hadoop.ozone.common.Storage
DataNodeStorageConfig is responsible for management of the StorageDirectories used by the DataNode.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.ozone.common.Storage

    org.apache.hadoop.ozone.common.Storage.StorageState
  • Field Summary

    Fields inherited from class org.apache.hadoop.ozone.common.Storage

    CONTAINER_DIR, STORAGE_DIR_CURRENT, STORAGE_FILE_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    DatanodeLayoutStorage(org.apache.hadoop.hdds.conf.ConfigurationSource conf)
     
    DatanodeLayoutStorage(org.apache.hadoop.hdds.conf.ConfigurationSource conf, String dataNodeId)
    Construct DataNodeStorageConfig.
    DatanodeLayoutStorage(org.apache.hadoop.hdds.conf.OzoneConfiguration conf, String dataNodeId, int layoutVersion)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected Properties
     
    void
    setClusterId(String clusterId)
     

    Methods inherited from class org.apache.hadoop.ozone.common.Storage

    forceInitialize, getClusterID, getCreationTime, getFirstUpgradeActionLayoutVersion, getInitLayoutVersion, getLayoutVersion, getNodeType, getState, getStorageDir, getStorageInfo, getVersionFile, initialize, persistCurrentState, setFirstUpgradeActionLayoutVersion, setLayoutVersion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DatanodeLayoutStorage

      public DatanodeLayoutStorage(org.apache.hadoop.hdds.conf.ConfigurationSource conf, String dataNodeId) throws IOException
      Construct DataNodeStorageConfig.
      Throws:
      IOException - if any directories are inaccessible.
    • DatanodeLayoutStorage

      public DatanodeLayoutStorage(org.apache.hadoop.hdds.conf.OzoneConfiguration conf, String dataNodeId, int layoutVersion) throws IOException
      Throws:
      IOException
    • DatanodeLayoutStorage

      public DatanodeLayoutStorage(org.apache.hadoop.hdds.conf.ConfigurationSource conf) throws IOException
      Throws:
      IOException
  • Method Details

    • getCurrentDir

      public File getCurrentDir()
      Overrides:
      getCurrentDir in class org.apache.hadoop.ozone.common.Storage
    • getNodeProperties

      protected Properties getNodeProperties()
      Specified by:
      getNodeProperties in class org.apache.hadoop.ozone.common.Storage
    • setClusterId

      public void setClusterId(String clusterId) throws IOException
      Overrides:
      setClusterId in class org.apache.hadoop.ozone.common.Storage
      Throws:
      IOException