|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ResourceRequest
@InterfaceAudience.Public @InterfaceStability.Stable public abstract class 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)| Constructor Summary | |
|---|---|
ResourceRequest()
|
|
| Method Summary | |
|---|---|
int |
compareTo(ResourceRequest other)
|
boolean |
equals(Object obj)
|
abstract Resource |
getCapability()
Get the Resource capability of the request. |
abstract String |
getHostName()
Get the host/rack on which the allocation is desired. |
abstract int |
getNumContainers()
Get the number of containers required with the given specifications. |
abstract org.apache.hadoop.yarn.api.records.Priority |
getPriority()
Get the Priority of the request. |
int |
hashCode()
|
abstract void |
setCapability(Resource capability)
Set the Resource capability of the request |
abstract void |
setHostName(String hostName)
Set host/rack on which the allocation is desired. |
abstract void |
setNumContainers(int numContainers)
Set the number of containers required with the given specifications |
abstract void |
setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
Set the Priority of the request |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceRequest()
| Method Detail |
|---|
@InterfaceAudience.Public @InterfaceStability.Stable public abstract org.apache.hadoop.yarn.api.records.Priority getPriority()
Priority of the request.
Priority of the request@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
Priority of the request
priority - Priority of the request@InterfaceAudience.Public @InterfaceStability.Stable public abstract String getHostName()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setHostName(String hostName)
hostName - host/rack on which the allocation is desired@InterfaceAudience.Public @InterfaceStability.Stable public abstract Resource getCapability()
Resource capability of the request.
Resource capability of the request@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setCapability(Resource capability)
Resource capability of the request
capability - Resource capability of the request@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getNumContainers()
@InterfaceAudience.Public @InterfaceStability.Stable public abstract void setNumContainers(int numContainers)
numContainers - number of containers required with the given
specificationspublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(ResourceRequest other)
compareTo in interface Comparable<ResourceRequest>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||