| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint | Package org.apache.hadoop.yarn.server.resourcemanager.scheduler.placement
 contains classes related to scheduling containers using placement
 constraints. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | AllocationTagsManager. allocationTagExistsOnNode(org.apache.hadoop.yarn.api.records.NodeId nodeId,
                         org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
                         String tag)Check if given tag exists on node. | 
| static boolean | PlacementConstraintsUtil. 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 | PlacementConstraintsUtil. 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. | 
| static AllocationTags | AllocationTags. createAllocationTags(org.apache.hadoop.yarn.api.records.ApplicationId currentApplicationId,
                    String namespaceString,
                    Set<String> tags) | 
| void | TargetApplicationsNamespace. evaluate(TargetApplications target)Evaluate the namespace against given target applications
 if it is necessary. | 
| void | TargetApplicationsNamespace.Self. evaluate(TargetApplications target) | 
| long | AllocationTagsManager. getNodeCardinality(org.apache.hadoop.yarn.api.records.NodeId nodeId,
                  org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
                  String tag)Get Node cardinality for a specific tag. | 
| long | AllocationTagsManager. getNodeCardinalityByOp(org.apache.hadoop.yarn.api.records.NodeId nodeId,
                      AllocationTags tags,
                      LongBinaryOperator op)Get cardinality for following conditions. | 
| long | AllocationTagsManager. getRackCardinality(String rack,
                  org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
                  String tag)Get Rack cardinality for a specific tag. | 
| long | AllocationTagsManager. getRackCardinalityByOp(String rack,
                      AllocationTags tags,
                      LongBinaryOperator op)Get cardinality for following conditions. | 
| static TargetApplicationsNamespace | TargetApplicationsNamespace. parse(String namespaceStr)Parse namespace from a string. | 
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.