@InterfaceAudience.Private @InterfaceStability.Unstable public class AllocateRequestPBImpl extends AllocateRequest
Constructor and Description |
---|
AllocateRequestPBImpl() |
AllocateRequestPBImpl(YarnServiceProtos.AllocateRequestProto proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
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() |
List<ContainerId> |
getReleaseList()
Get the list of
ContainerId of containers being
released by the ApplicationMaster . |
ResourceBlacklistRequest |
getResourceBlacklistRequest()
Get the
ResourceBlacklistRequest being sent by the
ApplicationMaster . |
int |
getResponseId()
Get the response id used to track duplicate responses.
|
int |
hashCode() |
void |
setAskList(List<ResourceRequest> resourceRequests)
Set list of
ResourceRequest to update the
ResourceManager about the application's resource requirements. |
void |
setProgress(float progress)
Set the current progress of application
|
void |
setReleaseList(List<ContainerId> releaseContainers)
Set the list of
ContainerId of containers being
released by the ApplicationMaster |
void |
setResourceBlacklistRequest(ResourceBlacklistRequest blacklistRequest)
Set the
ResourceBlacklistRequest to inform the
ResourceManager about the blacklist additions and removals
per the ApplicationMaster . |
void |
setResponseId(int id)
Set the response id used to track duplicate responses.
|
String |
toString() |
newInstance
public AllocateRequestPBImpl()
public AllocateRequestPBImpl(YarnServiceProtos.AllocateRequestProto proto)
public YarnServiceProtos.AllocateRequestProto getProto()
public int getResponseId()
AllocateRequest
getResponseId
in class AllocateRequest
public void setResponseId(int id)
AllocateRequest
setResponseId
in class AllocateRequest
id
- response idpublic float getProgress()
AllocateRequest
getProgress
in class AllocateRequest
public void setProgress(float progress)
AllocateRequest
setProgress
in class AllocateRequest
progress
- current progress of applicationpublic List<ResourceRequest> getAskList()
AllocateRequest
ResourceRequest
to update the
ResourceManager
about the application's resource requirements.getAskList
in class AllocateRequest
ResourceRequest
ResourceRequest
public void setAskList(List<ResourceRequest> resourceRequests)
AllocateRequest
ResourceRequest
to update the
ResourceManager
about the application's resource requirements.setAskList
in class AllocateRequest
resourceRequests
- list of ResourceRequest
to update the
ResourceManager
about the application's
resource requirementsResourceRequest
public ResourceBlacklistRequest getResourceBlacklistRequest()
AllocateRequest
ResourceBlacklistRequest
being sent by the
ApplicationMaster
.getResourceBlacklistRequest
in class AllocateRequest
ResourceBlacklistRequest
being sent by the
ApplicationMaster
ResourceBlacklistRequest
public void setResourceBlacklistRequest(ResourceBlacklistRequest blacklistRequest)
AllocateRequest
ResourceBlacklistRequest
to inform the
ResourceManager
about the blacklist additions and removals
per the ApplicationMaster
.setResourceBlacklistRequest
in class AllocateRequest
blacklistRequest
- the ResourceBlacklistRequest
to inform the ResourceManager
about
the blacklist additions and removals
per the ApplicationMaster
ResourceBlacklistRequest
public List<ContainerId> getReleaseList()
AllocateRequest
ContainerId
of containers being
released by the ApplicationMaster
.getReleaseList
in class AllocateRequest
ContainerId
of containers being
released by the ApplicationMaster
public void setReleaseList(List<ContainerId> releaseContainers)
AllocateRequest
ContainerId
of containers being
released by the ApplicationMaster
setReleaseList
in class AllocateRequest
releaseContainers
- list of ContainerId
of
containers being released by the
ApplicationMaster
Copyright © 2013 Apache Software Foundation. All rights reserved.