Example usage for Java org.apache.hadoop.yarn.api.records ResourceRequest fields, constructors, methods, implement or subclass
The text is from its open source code.
String | ANY The constant string representing no locality. |
Resource | getCapability() Get the Resource capability of the request. |
String | getNodeLabelExpression() Get node-label-expression for this Resource Request. |
int | getNumContainers() Get the number of containers required with the given specifications. |
Priority | getPriority() Get the Priority of the request. |
boolean | getRelaxLocality() Get whether locality relaxation is enabled with this ResourceRequest . |
String | getResourceName() Get the resource (e.g. |
ResourceRequest | newInstance(Priority priority, String hostName, Resource capability, int numContainers, boolean relaxLocality, String labelExpression) |
void | setCapability(Resource capability) Set the Resource capability of the request. |
void | setNumContainers(int numContainers) Set the number of containers required with the given specifications |
void | setPriority(Priority priority) Set the Priority of the request |
void | setResourceName(String resourceName) Set the resource name (e.g. |