Java org.apache.hadoop.yarn.api.records Resource fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.yarn.api.records Resource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.yarn.api.records Resource.

The text is from its open source code.

Method

intgetMemory()
This method is DEPRECATED: Use Resource#getMemorySize() instead Get memory of the resource.
intgetVirtualCores()
Get number of virtual cpu cores of the resource.
ResourcenewInstance(int memory, int vCores)
ResourcenewInstance(long memory, int vCores)
voidsetMemory(int memory)
Set memory of the resource.
voidsetVirtualCores(int vCores)
Set number of virtual cpu cores of the resource.
StringtoString()