BlockPlacementStatus@Private @Evolving public class BlockPlacementStatusWithNodeGroup extends java.lang.Object implements BlockPlacementStatus
BlockPlacementPolicyWithNodeGroup| Constructor | Description |
|---|---|
BlockPlacementStatusWithNodeGroup(BlockPlacementStatus parentBlockPlacementStatus,
java.util.Set<java.lang.String> currentNodeGroups,
int requiredNodeGroups) |
| 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 BlockPlacementStatusWithNodeGroup(BlockPlacementStatus parentBlockPlacementStatus, java.util.Set<java.lang.String> currentNodeGroups, int requiredNodeGroups)
parentBlockPlacementStatus - the parent class' statuscurrentNodeGroups - the current set of node groups of the replicasrequiredNodeGroups - the number of required node groupspublic 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.