| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.service.api.records | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | Resource. cpus(Integer cpus)Amount of vcores allocated to each container (optional but overrides cpus
 in profile if specified). | 
| Resource | Component. getResource() | 
| Resource | Container. getResource() | 
| Resource | Service. getResource() | 
| Resource | Resource. memory(String memory)Amount of memory allocated to each container (optional but overrides memory
 in profile if specified). | 
| Resource | Resource. profile(String profile)Each resource profile has a unique id which is associated with a
 cluster-level predefined memory, cpus, etc. | 
| Resource | Resource. resourceInformations(Map<String,org.apache.hadoop.yarn.service.api.records.ResourceInformation> resourceInformations) | 
| Resource | Resource. setResourceInformations(Map<String,org.apache.hadoop.yarn.service.api.records.ResourceInformation> resourceInformations) | 
| Modifier and Type | Method and Description | 
|---|---|
| Component | Component. resource(Resource resource)Resource of this component (optional). | 
| Container | Container. resource(Resource resource)Resource used for this container. | 
| Service | Service. resource(Resource resource)Resource of single-component services or the global default for
 multi-component services. | 
| void | Component. setResource(Resource resource) | 
| void | Container. setResource(Resource resource) | 
| void | Service. setResource(Resource resource) | 
Copyright © 2023 Apache Software Foundation. All rights reserved.