| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.service.api.records | 
| Modifier and Type | Method and Description | 
|---|---|
| PlacementConstraint | PlacementConstraint. maxCardinality(Long maxCardinality)When placement type is cardinality, the maximum number of containers of the
 depending component that a host should have, where containers of this
 component can be allocated on. | 
| PlacementConstraint | PlacementConstraint. minCardinality(Long minCardinality)When placement type is cardinality, the minimum number of containers of the
 depending component that a host should have, where containers of this
 component can be allocated on. | 
| PlacementConstraint | PlacementConstraint. name(String name)An optional name associated to this constraint. | 
| PlacementConstraint | PlacementConstraint. nodeAttributes(Map<String,List<String>> nodeAttributes)Node attributes are a set of key:value(s) pairs associated with nodes. | 
| PlacementConstraint | PlacementConstraint. nodePartitions(List<String> nodePartitions)Node partitions where the containers of this component can run. | 
| PlacementConstraint | PlacementConstraint. scope(PlacementScope scope)The scope of placement. | 
| PlacementConstraint | PlacementConstraint. targetTags(List<String> targetTags)The name of the components that this component's placement policy is
 depending upon are added as target tags. | 
| PlacementConstraint | PlacementConstraint. type(PlacementType type)The type of placement. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<PlacementConstraint> | PlacementPolicy. getConstraints() | 
| Modifier and Type | Method and Description | 
|---|---|
| PlacementPolicy | PlacementPolicy. constraints(List<PlacementConstraint> constraints)Placement constraint details. | 
| void | PlacementPolicy. setConstraints(List<PlacementConstraint> constraints) | 
Copyright © 2023 Apache Software Foundation. All rights reserved.