|
||||||||||
| 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
org.apache.hadoop.yarn.api.records.impl.pb.ResourceRequestPBImpl
public class ResourceRequestPBImpl
| Constructor Summary | |
|---|---|
ResourceRequestPBImpl()
|
|
ResourceRequestPBImpl(YarnProtos.ResourceRequestProto proto)
|
|
| 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. |
Priority |
getPriority()
Get the Priority of the request. |
YarnProtos.ResourceRequestProto |
getProto()
|
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(Priority priority)
Set the Priority of the request |
| Methods inherited from class org.apache.hadoop.yarn.api.records.ResourceRequest |
|---|
compareTo, equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceRequestPBImpl()
public ResourceRequestPBImpl(YarnProtos.ResourceRequestProto proto)
| Method Detail |
|---|
public YarnProtos.ResourceRequestProto getProto()
public Priority getPriority()
ResourceRequestPriority of the request.
getPriority in class ResourceRequestPriority of the requestpublic void setPriority(Priority priority)
ResourceRequestPriority of the request
setPriority in class ResourceRequestpriority - Priority of the requestpublic String getHostName()
ResourceRequest
getHostName in class ResourceRequestpublic void setHostName(String hostName)
ResourceRequest
setHostName in class ResourceRequesthostName - host/rack on which the allocation is desiredpublic Resource getCapability()
ResourceRequestResource capability of the request.
getCapability in class ResourceRequestResource capability of the requestpublic void setCapability(Resource capability)
ResourceRequestResource capability of the request
setCapability in class ResourceRequestcapability - Resource capability of the requestpublic int getNumContainers()
ResourceRequest
getNumContainers in class ResourceRequestpublic void setNumContainers(int numContainers)
ResourceRequest
setNumContainers in class ResourceRequestnumContainers - number of containers required with the given
specifications
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||