|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.AMResponseProto>
org.apache.hadoop.yarn.api.records.impl.pb.AMResponsePBImpl
public class AMResponsePBImpl
| Constructor Summary | |
|---|---|
AMResponsePBImpl()
|
|
AMResponsePBImpl(YarnProtos.AMResponseProto proto)
|
|
| Method Summary | |
|---|---|
List<Container> |
getAllocatedContainers()
Get the list of newly allocated Container by the
ResourceManager. |
Resource |
getAvailableResources()
Get the available headroom for resources in the cluster for the application. |
List<ContainerStatus> |
getCompletedContainersStatuses()
Get the list of completed containers' statuses. |
YarnProtos.AMResponseProto |
getProto()
|
boolean |
getReboot()
Should the ApplicationMaster reboot for being horribly
out-of-sync with the ResourceManager as deigned by
AMResponse.getResponseId()? |
int |
getResponseId()
Get the last response id. |
void |
setAllocatedContainers(List<Container> containers)
Set the list of newly allocated Container by the
ResourceManager. |
void |
setAvailableResources(Resource limit)
|
void |
setCompletedContainersStatuses(List<ContainerStatus> containers)
|
void |
setReboot(boolean reboot)
|
void |
setResponseId(int responseId)
|
| Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase |
|---|
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AMResponsePBImpl()
public AMResponsePBImpl(YarnProtos.AMResponseProto proto)
| Method Detail |
|---|
public YarnProtos.AMResponseProto getProto()
getProto in class ProtoBase<YarnProtos.AMResponseProto>public boolean getReboot()
AMResponseApplicationMaster reboot for being horribly
out-of-sync with the ResourceManager as deigned by
AMResponse.getResponseId()?
getReboot in interface AMResponsetrue if the ApplicationMaster should
reboot, false otherwisepublic void setReboot(boolean reboot)
setReboot in interface AMResponsepublic int getResponseId()
AMResponse
getResponseId in interface AMResponsepublic void setResponseId(int responseId)
setResponseId in interface AMResponsepublic Resource getAvailableResources()
AMResponse
getAvailableResources in interface AMResponsepublic void setAvailableResources(Resource limit)
setAvailableResources in interface AMResponsepublic List<Container> getAllocatedContainers()
AMResponseContainer by the
ResourceManager.
getAllocatedContainers in interface AMResponseContainerpublic void setAllocatedContainers(List<Container> containers)
AMResponseContainer by the
ResourceManager.
setAllocatedContainers in interface AMResponsecontainers - list of newly allocated Containerpublic List<ContainerStatus> getCompletedContainersStatuses()
AMResponse
getCompletedContainersStatuses in interface AMResponsepublic void setCompletedContainersStatuses(List<ContainerStatus> containers)
setCompletedContainersStatuses in interface AMResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||