Class DatanodeStoreCache

java.lang.Object
org.apache.hadoop.ozone.container.common.utils.DatanodeStoreCache

public final class DatanodeStoreCache extends Object
Cache for all per-disk DB handles under schema v3.
  • Method Details

    • getInstance

      public static DatanodeStoreCache getInstance()
    • setMiniClusterMode

      public static void setMiniClusterMode()
    • setMiniClusterMode

      public static void setMiniClusterMode(boolean isMiniCluster)
    • addDB

      public void addDB(String containerDBPath, RawDB db)
    • getDB

      public RawDB getDB(String containerDBPath, org.apache.hadoop.hdds.conf.ConfigurationSource conf) throws IOException
      Throws:
      IOException
    • removeDB

      public void removeDB(String containerDBPath)
    • shutdownCache

      public void shutdownCache()
    • size

      public int size()