@InterfaceAudience.Public @InterfaceStability.Evolving public final class ReplicatedBlockStats extends Object
BlockType.CONTIGUOUS
in the filesystem.
ClientProtocol.getReplicatedBlockStats()
Constructor and Description |
---|
ReplicatedBlockStats(long lowRedundancyBlocks,
long corruptBlocks,
long missingBlocks,
long missingReplicationOneBlocks,
long bytesInFutureBlocks,
long pendingDeletionBlocks) |
ReplicatedBlockStats(long lowRedundancyBlocks,
long corruptBlocks,
long missingBlocks,
long missingReplicationOneBlocks,
long bytesInFutureBlocks,
long pendingDeletionBlocks,
Long highestPriorityLowRedundancyBlocks) |
Modifier and Type | Method and Description |
---|---|
long |
getBytesInFutureBlocks() |
long |
getCorruptBlocks() |
Long |
getHighestPriorityLowRedundancyBlocks() |
long |
getLowRedundancyBlocks() |
long |
getMissingReplicaBlocks() |
long |
getMissingReplicationOneBlocks() |
long |
getPendingDeletionBlocks() |
boolean |
hasHighestPriorityLowRedundancyBlocks() |
static ReplicatedBlockStats |
merge(Collection<ReplicatedBlockStats> stats)
Merge the multiple ReplicatedBlockStats.
|
String |
toString() |
public ReplicatedBlockStats(long lowRedundancyBlocks, long corruptBlocks, long missingBlocks, long missingReplicationOneBlocks, long bytesInFutureBlocks, long pendingDeletionBlocks)
public ReplicatedBlockStats(long lowRedundancyBlocks, long corruptBlocks, long missingBlocks, long missingReplicationOneBlocks, long bytesInFutureBlocks, long pendingDeletionBlocks, Long highestPriorityLowRedundancyBlocks)
public long getLowRedundancyBlocks()
public long getCorruptBlocks()
public long getMissingReplicaBlocks()
public long getMissingReplicationOneBlocks()
public long getBytesInFutureBlocks()
public long getPendingDeletionBlocks()
public boolean hasHighestPriorityLowRedundancyBlocks()
public Long getHighestPriorityLowRedundancyBlocks()
public static ReplicatedBlockStats merge(Collection<ReplicatedBlockStats> stats)
stats
- Collection of stats to merge.Copyright © 2022 Apache Software Foundation. All rights reserved.