BlockPlacementStatuspublic class BlockPlacementStatusDefault extends java.lang.Object implements BlockPlacementStatus
| Constructor | Description |
|---|---|
BlockPlacementStatusDefault(int currentRacks,
int requiredRacks,
int totalRacks) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getAdditionalReplicasRequired() |
Return the number of additional replicas needed to ensure the block
placement policy is satisfied.
|
java.lang.String |
getErrorDescription() |
Get description info for log or printed in case replicas are failed to meet
requirement of placement policy
|
boolean |
isPlacementPolicySatisfied() |
Boolean value to identify if replicas of this block satisfy requirement of
placement policy
|
public BlockPlacementStatusDefault(int currentRacks,
int requiredRacks,
int totalRacks)
public boolean isPlacementPolicySatisfied()
BlockPlacementStatusisPlacementPolicySatisfied in interface BlockPlacementStatuspublic java.lang.String getErrorDescription()
BlockPlacementStatusgetErrorDescription in interface BlockPlacementStatuspublic int getAdditionalReplicasRequired()
BlockPlacementStatusgetAdditionalReplicasRequired in interface BlockPlacementStatusCopyright © 2008–2025 Apache Software Foundation. All rights reserved.