@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) |
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,
Optional<DiagnosticsCollector> dcOpt)
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,
Optional<DiagnosticsCollector> dcOpt)
throws InvalidAllocationTagsQueryException
applicationId - application idrequest - scheduling requestschedulerNode - nodepcm - placement constraint manageratm - allocation tags managerdcOpt - optional diagnostics collectorInvalidAllocationTagsQueryException - if given string is not in valid format.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
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.