Class ContentCounts
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.ContentCounts
The counter to be computed for content types such as file, directory and symlink,
and the storage type usage such as SSD, DISK, ARCHIVE.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContent(Content c, long val) voidaddContents(ContentCounts that) voidaddTypeSpace(org.apache.hadoop.fs.StorageType t, long val) voidaddTypeSpaces(EnumCounters<org.apache.hadoop.fs.StorageType> that) longlonglonglonglonglonglonglonggetTypeSpace(org.apache.hadoop.fs.StorageType t) long[]
-
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
-
addContents
-
addTypeSpace
public void addTypeSpace(org.apache.hadoop.fs.StorageType t, long val) -
addTypeSpaces
-