| Package | Description |
|---|---|
| org.apache.hadoop.yarn.api.protocolrecords | |
| org.apache.hadoop.yarn.api.records |
| Modifier and Type | Method and Description |
|---|---|
static ResourceTypes |
ResourceTypes.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceTypes[] |
ResourceTypes.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ResourceTypes |
ResourceTypeInfo.getResourceType()
Get the resource type.
|
ResourceTypes |
ResourceInformation.getResourceType()
Get the resource type.
|
| Modifier and Type | Method and Description |
|---|---|
static ResourceInformation |
ResourceInformation.newInstance(String name,
String units,
long value,
ResourceTypes type,
long minimumAllocation,
long maximumAllocation) |
static ResourceTypeInfo |
ResourceTypeInfo.newInstance(String name,
String units,
ResourceTypes type)
Create a new instance of ResourceTypeInfo from name, units and type.
|
static ResourceInformation |
ResourceInformation.newInstance(String name,
String units,
ResourceTypes resourceType) |
abstract void |
ResourceTypeInfo.setResourceType(ResourceTypes type)
Set the resource type.
|
void |
ResourceInformation.setResourceType(ResourceTypes type)
Set the resource type.
|
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.