@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,
long badlyDistributedBlocks) |
ReplicatedBlockStats(long lowRedundancyBlocks,
long corruptBlocks,
long missingBlocks,
long missingReplicationOneBlocks,
long bytesInFutureBlocks,
long pendingDeletionBlocks,
long badlyDistributedBlocks,
Long highestPriorityLowRedundancyBlocks) |
Modifier and Type | Method and Description |
---|---|
long |
getBadlyDistributedBlocks() |
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, long badlyDistributedBlocks)
public ReplicatedBlockStats(long lowRedundancyBlocks, long corruptBlocks, long missingBlocks, long missingReplicationOneBlocks, long bytesInFutureBlocks, long pendingDeletionBlocks, long badlyDistributedBlocks, Long highestPriorityLowRedundancyBlocks)
public long getLowRedundancyBlocks()
public long getCorruptBlocks()
public long getMissingReplicaBlocks()
public long getMissingReplicationOneBlocks()
public long getBytesInFutureBlocks()
public long getPendingDeletionBlocks()
public long getBadlyDistributedBlocks()
public boolean hasHighestPriorityLowRedundancyBlocks()
public Long getHighestPriorityLowRedundancyBlocks()
public static ReplicatedBlockStats merge(Collection<ReplicatedBlockStats> stats)
stats
- Collection of stats to merge.Copyright © 2024 Apache Software Foundation. All rights reserved.