Package org.apache.hadoop.hdfs.protocol
Class ECBlockGroupStats
java.lang.Object
org.apache.hadoop.hdfs.protocol.ECBlockGroupStats
Get statistics pertaining to blocks of type
BlockType.STRIPED
in the filesystem.
- See Also:
-
ClientProtocol.getECBlockGroupStats()
-
Constructor Summary
ConstructorsConstructorDescriptionECBlockGroupStats(long lowRedundancyBlockGroups, long corruptBlockGroups, long missingBlockGroups, long bytesInFutureBlockGroups, long pendingDeletionBlocks) ECBlockGroupStats(long lowRedundancyBlockGroups, long corruptBlockGroups, long missingBlockGroups, long bytesInFutureBlockGroups, long pendingDeletionBlocks, Long badlyDistributedBlocks, Long highestPriorityLowRedundancyBlocks) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonglonglonglongbooleaninthashCode()booleanstatic ECBlockGroupStatsmerge(Collection<ECBlockGroupStats> stats) Merge the multiple ECBlockGroupStats.toString()
-
Constructor Details
-
ECBlockGroupStats
public ECBlockGroupStats(long lowRedundancyBlockGroups, long corruptBlockGroups, long missingBlockGroups, long bytesInFutureBlockGroups, long pendingDeletionBlocks) -
ECBlockGroupStats
-
-
Method Details
-
getBytesInFutureBlockGroups
public long getBytesInFutureBlockGroups() -
getCorruptBlockGroups
public long getCorruptBlockGroups() -
getLowRedundancyBlockGroups
public long getLowRedundancyBlockGroups() -
getMissingBlockGroups
public long getMissingBlockGroups() -
getPendingDeletionBlocks
public long getPendingDeletionBlocks() -
hasBadlyDistributedBlocks
public boolean hasBadlyDistributedBlocks() -
getBadlyDistributedBlocks
-
hasHighestPriorityLowRedundancyBlocks
public boolean hasHighestPriorityLowRedundancyBlocks() -
getHighestPriorityLowRedundancyBlocks
-
toString
-
hashCode
public int hashCode() -
equals
-
merge
Merge the multiple ECBlockGroupStats.- Parameters:
stats- Collection of stats to merge.- Returns:
- A new ECBlockGroupStats merging all the input ones
-