| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.api.records | 
| Modifier and Type | Method and Description | 
|---|---|
| ResourceInformation | Resource. getResourceInformation(int index)Get ResourceInformation for a specified resource from a given index. | 
| ResourceInformation | Resource. getResourceInformation(String resource)Get ResourceInformation for a specified resource. | 
| long | Resource. getResourceValue(String resource)Get the value for a specified resource. | 
| void | Resource. setResourceInformation(int index,
                      ResourceInformation resourceInformation)Set the ResourceInformation object for a particular resource. | 
| void | Resource. setResourceInformation(String resource,
                      ResourceInformation resourceInformation)Set the ResourceInformation object for a particular resource. | 
| void | Resource. setResourceValue(int index,
                long value)Set the value of a resource in the ResourceInformation object. | 
| void | Resource. setResourceValue(String resource,
                long value)Set the value of a resource in the ResourceInformation object. | 
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.