Class ContentCounts

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.ContentCounts

public class ContentCounts extends Object
The counter to be computed for content types such as file, directory and symlink, and the storage type usage such as SSD, DISK, ARCHIVE.
  • Method Details

    • getFileCount

      public long getFileCount()
    • getDirectoryCount

      public long getDirectoryCount()
    • getSymlinkCount

      public long getSymlinkCount()
    • getLength

      public long getLength()
    • getStoragespace

      public long getStoragespace()
    • getSnapshotCount

      public long getSnapshotCount()
    • getSnapshotableDirectoryCount

      public long getSnapshotableDirectoryCount()
    • getTypeSpaces

      public long[] getTypeSpaces()
    • getTypeSpace

      public long getTypeSpace(org.apache.hadoop.fs.StorageType t)
    • addContent

      public void addContent(Content c, long val)
    • addContents

      public void addContents(ContentCounts that)
    • addTypeSpace

      public void addTypeSpace(org.apache.hadoop.fs.StorageType t, long val)
    • addTypeSpaces

      public void addTypeSpaces(EnumCounters<org.apache.hadoop.fs.StorageType> that)