| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.api.protocolrecords | |
| org.apache.hadoop.yarn.api.records | |
| org.apache.hadoop.yarn.api.resource | API related to resources. | 
| org.apache.hadoop.yarn.client.api | |
| org.apache.hadoop.yarn.client.api.async | |
| org.apache.hadoop.yarn.util.constraint | Package org.apache.hadoop.yarn.util.constraint contains classes
 which is used as utility class for placement constraints. | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<Set<String>,PlacementConstraint> | RegisterApplicationMasterRequest. getPlacementConstraints()Return all Placement Constraints specified at the Application level. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | RegisterApplicationMasterRequest. setPlacementConstraints(Map<Set<String>,PlacementConstraint> placementConstraints)Set Placement Constraints applicable to the
  SchedulingRequests
 of this application. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract PlacementConstraint | SchedulingRequest. getPlacementConstraint() | 
| Modifier and Type | Method and Description | 
|---|---|
| static SchedulingRequest | SchedulingRequest. newInstance(long allocationRequestId,
           Priority priority,
           ExecutionTypeRequest executionType,
           Set<String> allocationTags,
           ResourceSizing resourceSizing,
           PlacementConstraint placementConstraintExpression) | 
| SchedulingRequest.SchedulingRequestBuilder | SchedulingRequest.SchedulingRequestBuilder. placementConstraintExpression(PlacementConstraint placementConstraintExpression)Set the  placementConstraintExpressionof the request. | 
| abstract void | SchedulingRequest. setPlacementConstraint(PlacementConstraint placementConstraint) | 
| Modifier and Type | Method and Description | 
|---|---|
| static PlacementConstraint | PlacementConstraints. build(org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint constraintExpr)Creates a  PlacementConstraintgiven a constraint expression. | 
| Modifier and Type | Method and Description | 
|---|---|
| RegisterApplicationMasterResponse | AMRMClient. registerApplicationMaster(String appHostName,
                         int appHostPort,
                         String appTrackingUrl,
                         Map<Set<String>,PlacementConstraint> placementConstraints)Register the application master. | 
| Modifier and Type | Method and Description | 
|---|---|
| RegisterApplicationMasterResponse | AMRMClientAsync. registerApplicationMaster(String appHostName,
                         int appHostPort,
                         String appTrackingUrl,
                         Map<Set<String>,PlacementConstraint> placementConstraints)Register the application master. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Map<org.apache.hadoop.yarn.util.constraint.PlacementConstraintParser.SourceTags,PlacementConstraint> | PlacementConstraintParser. parsePlacementSpec(String expression)Parses a placement constraint specification. | 
Copyright © 2023 Apache Software Foundation. All rights reserved.