@InterfaceAudience.Public @InterfaceStability.Unstable public final class PlacementConstraintsUtil extends Object
DefaultPlacementAlgorithm).| Modifier and Type | Method and Description |
|---|---|
static boolean |
canSatisfyConstraints(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
org.apache.hadoop.yarn.api.records.SchedulingRequest request,
SchedulerNode schedulerNode,
PlacementConstraintManager pcm,
AllocationTagsManager atm)
Returns true if the placement constraint for a given scheduling request
is currently satisfied by the specific scheduler node.
|
public static boolean canSatisfyConstraints(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
org.apache.hadoop.yarn.api.records.SchedulingRequest request,
SchedulerNode schedulerNode,
PlacementConstraintManager pcm,
AllocationTagsManager atm)
throws InvalidAllocationTagsQueryException
applicationId - application idrequest - scheduling requestschedulerNode - nodepcm - placement constraint manageratm - allocation tags managerInvalidAllocationTagsQueryExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.