| Package | Description |
|---|---|
| org.apache.hadoop.yarn.api.protocolrecords |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.hadoop.yarn.api.records |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.hadoop.yarn.util.resource |
Package org.apache.hadoop.yarn.util.resource contains classes
which is used as utility class for resource profile computations.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.util.List<ResourceTypeInfo> |
GetAllResourceTypeInfoResponse.getResourceTypeInfo() |
|
abstract java.util.List<ResourceTypeInfo> |
RegisterApplicationMasterResponse.getResourceTypes() |
Get available resource types supported by RM.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
GetAllResourceTypeInfoResponse.setResourceTypeInfo(java.util.List<ResourceTypeInfo> resourceTypes) |
|
abstract void |
RegisterApplicationMasterResponse.setResourceTypes(java.util.List<ResourceTypeInfo> types) |
Set the resource types used by RM.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ResourceTypeInfo |
ResourceTypeInfo.newInstance(java.lang.String name) |
Create a new instance of ResourceTypeInfo from name.
|
static ResourceTypeInfo |
ResourceTypeInfo.newInstance(java.lang.String name,
java.lang.String units) |
Create a new instance of ResourceTypeInfo from name, units.
|
static ResourceTypeInfo |
ResourceTypeInfo.newInstance(java.lang.String name,
java.lang.String units,
ResourceTypes type) |
Create a new instance of ResourceTypeInfo from name, units and type.
|
static ResourceTypeInfo |
ResourceTypeInfo.newInstance(ResourceTypeInfo other) |
Create a new instance of ResourceTypeInfo from another object.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
ResourceTypeInfo.compareTo(ResourceTypeInfo other) |
|
static void |
ResourceTypeInfo.copy(ResourceTypeInfo src,
ResourceTypeInfo dst) |
Copies the content of the source ResourceTypeInfo object to the
destination object, overwriting all properties of the destination object.
|
static ResourceTypeInfo |
ResourceTypeInfo.newInstance(ResourceTypeInfo other) |
Create a new instance of ResourceTypeInfo from another object.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<ResourceTypeInfo> |
ResourceUtils.getResourcesTypeInfo() |
Get all resource types information from known resource types.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Resource |
ResourceUtils.createResourceFromString(java.lang.String resourceStr,
java.util.List<ResourceTypeInfo> resourceTypeInfos) |
|
static void |
ResourceUtils.reinitializeResources(java.util.List<ResourceTypeInfo> resourceTypeInfo) |
Reinitialize all resource types from external source (in case of client,
server will send the updated list and local resourceutils cache will be
updated as per server's list of resources).
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.