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

Example usage for Java org.apache.hadoop.yarn.api.records ResourceRequest 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 ResourceRequest.

The text is from its open source code.

Field

StringANY
The constant string representing no locality.

Method

ResourcegetCapability()
Get the Resource capability of the request.
StringgetNodeLabelExpression()
Get node-label-expression for this Resource Request.
intgetNumContainers()
Get the number of containers required with the given specifications.
PrioritygetPriority()
Get the Priority of the request.
booleangetRelaxLocality()
Get whether locality relaxation is enabled with this ResourceRequest.
StringgetResourceName()
Get the resource (e.g.
ResourceRequestnewInstance(Priority priority, String hostName, Resource capability, int numContainers, boolean relaxLocality, String labelExpression)
voidsetCapability(Resource capability)
Set the Resource capability of the request.
voidsetNumContainers(int numContainers)
Set the number of containers required with the given specifications
voidsetPriority(Priority priority)
Set the Priority of the request
voidsetResourceName(String resourceName)
Set the resource name (e.g.