|
||||||||||
| 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<YarnServiceProtos.AllocateRequestProto>
org.apache.hadoop.yarn.api.protocolrecords.impl.pb.AllocateRequestPBImpl
public class AllocateRequestPBImpl
| Constructor Summary | |
|---|---|
AllocateRequestPBImpl()
|
|
AllocateRequestPBImpl(YarnServiceProtos.AllocateRequestProto proto)
|
|
| Method Summary | |
|---|---|
void |
addAllAsks(List<ResourceRequest> ask)
Add list of ResourceRequest to update the
ResourceManager about the application's resource requirements. |
void |
addAllReleases(List<ContainerId> release)
Add the list of ContainerId of unused containers being
released by the ApplicationMaster |
void |
addAsk(ResourceRequest ask)
|
void |
addRelease(ContainerId release)
|
void |
clearAsks()
|
void |
clearReleases()
|
ApplicationAttemptId |
getApplicationAttemptId()
Get the ApplicationAttemptId being managed by the
ApplicationMaster. |
ResourceRequest |
getAsk(int index)
|
int |
getAskCount()
|
List<ResourceRequest> |
getAskList()
Get the list of ResourceRequest to update the
ResourceManager about the application's resource requirements. |
float |
getProgress()
Get the current progress of application. |
YarnServiceProtos.AllocateRequestProto |
getProto()
|
ContainerId |
getRelease(int index)
|
int |
getReleaseCount()
|
List<ContainerId> |
getReleaseList()
Get the list of ContainerId of unused containers being
released by the ApplicationMaster. |
int |
getResponseId()
Get the response id used to track duplicate responses. |
void |
removeAsk(int index)
|
void |
removeRelease(int index)
|
void |
setApplicationAttemptId(ApplicationAttemptId appAttemptId)
Set the ApplicationAttemptId being managed by the
ApplicationMaster. |
void |
setProgress(float progress)
Set the current progress of application |
void |
setResponseId(int id)
Set the response id used to track duplicate responses. |
| 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 AllocateRequestPBImpl()
public AllocateRequestPBImpl(YarnServiceProtos.AllocateRequestProto proto)
| Method Detail |
|---|
public YarnServiceProtos.AllocateRequestProto getProto()
getProto in class ProtoBase<YarnServiceProtos.AllocateRequestProto>public ApplicationAttemptId getApplicationAttemptId()
AllocateRequestApplicationAttemptId being managed by the
ApplicationMaster.
getApplicationAttemptId in interface AllocateRequestApplicationAttemptId being managed by the
ApplicationMasterpublic void setApplicationAttemptId(ApplicationAttemptId appAttemptId)
AllocateRequestApplicationAttemptId being managed by the
ApplicationMaster.
setApplicationAttemptId in interface AllocateRequestappAttemptId - ApplicationAttemptId being managed
by the ApplicationMasterpublic int getResponseId()
AllocateRequest
getResponseId in interface AllocateRequestpublic void setResponseId(int id)
AllocateRequest
setResponseId in interface AllocateRequestid - response idpublic float getProgress()
AllocateRequest
getProgress in interface AllocateRequestpublic void setProgress(float progress)
AllocateRequest
setProgress in interface AllocateRequestprogress - current progress of applicationpublic List<ResourceRequest> getAskList()
AllocateRequestResourceRequest to update the
ResourceManager about the application's resource requirements.
getAskList in interface AllocateRequestResourceRequestpublic ResourceRequest getAsk(int index)
getAsk in interface AllocateRequestpublic int getAskCount()
getAskCount in interface AllocateRequestpublic void addAllAsks(List<ResourceRequest> ask)
AllocateRequestResourceRequest to update the
ResourceManager about the application's resource requirements.
addAllAsks in interface AllocateRequestask - list of ResourceRequest to update the
ResourceManager about the application's
resource requirementspublic void addAsk(ResourceRequest ask)
addAsk in interface AllocateRequestpublic void removeAsk(int index)
removeAsk in interface AllocateRequestpublic void clearAsks()
clearAsks in interface AllocateRequestpublic List<ContainerId> getReleaseList()
AllocateRequestContainerId of unused containers being
released by the ApplicationMaster.
getReleaseList in interface AllocateRequestContainerId of unused containers being
released by the ApplicationMasterpublic ContainerId getRelease(int index)
getRelease in interface AllocateRequestpublic int getReleaseCount()
getReleaseCount in interface AllocateRequestpublic void addAllReleases(List<ContainerId> release)
AllocateRequestContainerId of unused containers being
released by the ApplicationMaster
addAllReleases in interface AllocateRequestrelease - list of ContainerId of unused
containers being released by the <
code>ApplicationMasterpublic void addRelease(ContainerId release)
addRelease in interface AllocateRequestpublic void removeRelease(int index)
removeRelease in interface AllocateRequestpublic void clearReleases()
clearReleases in interface AllocateRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||