Example usage for Java org.apache.hadoop.yarn.api.records Resource fields, constructors, methods, implement or subclass
The text is from its open source code.
int | getMemory() This method is DEPRECATED: Use Resource#getMemorySize() instead Get memory of the resource. |
int | getVirtualCores() Get number of virtual cpu cores of the resource. |
Resource | newInstance(int memory, int vCores) |
Resource | newInstance(long memory, int vCores) |
void | setMemory(int memory) Set memory of the resource. |
void | setVirtualCores(int vCores) Set number of virtual cpu cores of the resource. |
String | toString() |