|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Stable public interface ResourceRequest
ResourceRequest
represents the request made by an
application to the ResourceManager
to obtain various
Container
allocations.
It includes:
Priority
of the request.Resource
required for each request.
Resource
,
AMRMProtocol.allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest)
Method Summary | |
---|---|
Resource |
getCapability()
Get the Resource capability of the request. |
String |
getHostName()
Get the host/rack on which the allocation is desired. |
int |
getNumContainers()
Get the number of containers required with the given specifications. |
org.apache.hadoop.yarn.api.records.Priority |
getPriority()
Get the Priority of the request. |
void |
setCapability(Resource capability)
Set the Resource capability of the request |
void |
setHostName(String hostName)
Set host/rack on which the allocation is desired. |
void |
setNumContainers(int numContainers)
Set the number of containers required with the given specifications |
void |
setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
Set the Priority of the request |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
@InterfaceAudience.Public @InterfaceStability.Stable org.apache.hadoop.yarn.api.records.Priority getPriority()
Priority
of the request.
Priority
of the request@InterfaceAudience.Public @InterfaceStability.Stable void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
Priority
of the request
priority
- Priority
of the request@InterfaceAudience.Public @InterfaceStability.Stable String getHostName()
@InterfaceAudience.Public @InterfaceStability.Stable void setHostName(String hostName)
hostName
- host/rack on which the allocation is desired@InterfaceAudience.Public @InterfaceStability.Stable Resource getCapability()
Resource
capability of the request.
Resource
capability of the request@InterfaceAudience.Public @InterfaceStability.Stable void setCapability(Resource capability)
Resource
capability of the request
capability
- Resource
capability of the request@InterfaceAudience.Public @InterfaceStability.Stable int getNumContainers()
@InterfaceAudience.Public @InterfaceStability.Stable void setNumContainers(int numContainers)
numContainers
- number of containers required with the given
specifications
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |