@InterfaceAudience.Public @InterfaceStability.Stable public interface AllocateRequest
The core request sent by the ApplicationMaster
to the
ResourceManager
to obtain resources in the cluster.
The request includes:
ApplicationAttemptId
being managed by the
ApplicationMaster
ResourceRequest
to inform the
ResourceManager
about the application's
resource requirements.
Container
which are being returned.
Modifier and Type | Method and Description |
---|---|
void |
addAllAsks(List<ResourceRequest> resourceRequest)
Add list of
ResourceRequest to update the
ResourceManager about the application's resource requirements. |
void |
addAllReleases(List<ContainerId> releaseContainers)
Add the list of
ContainerId of containers being
released by the ApplicationMaster |
ApplicationAttemptId |
getApplicationAttemptId()
Get the
ApplicationAttemptId being managed by the
ApplicationMaster . |
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.
|
List<ContainerId> |
getReleaseList()
Get the list of
ContainerId of containers being
released by the ApplicationMaster . |
int |
getResponseId()
Get the response id used to track duplicate responses.
|
void |
setApplicationAttemptId(ApplicationAttemptId applicationAttemptId)
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.
|
@InterfaceAudience.Public @InterfaceStability.Stable ApplicationAttemptId getApplicationAttemptId()
ApplicationAttemptId
being managed by the
ApplicationMaster
.ApplicationAttemptId
being managed by the
ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable void setApplicationAttemptId(ApplicationAttemptId applicationAttemptId)
ApplicationAttemptId
being managed by the
ApplicationMaster
.applicationAttemptId
- ApplicationAttemptId
being managed
by the ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable int getResponseId()
@InterfaceAudience.Public @InterfaceStability.Stable void setResponseId(int id)
id
- response id@InterfaceAudience.Public @InterfaceStability.Stable float getProgress()
@InterfaceAudience.Public @InterfaceStability.Stable void setProgress(float progress)
progress
- current progress of application@InterfaceAudience.Public @InterfaceStability.Stable List<ResourceRequest> getAskList()
ResourceRequest
to update the
ResourceManager
about the application's resource requirements.ResourceRequest
@InterfaceAudience.Public @InterfaceStability.Stable void addAllAsks(List<ResourceRequest> resourceRequest)
ResourceRequest
to update the
ResourceManager
about the application's resource requirements.resourceRequest
- list of ResourceRequest
to update the
ResourceManager
about the application's
resource requirements@InterfaceAudience.Public @InterfaceStability.Stable List<ContainerId> getReleaseList()
ContainerId
of containers being
released by the ApplicationMaster
.ContainerId
of containers being
released by the ApplicationMaster
@InterfaceAudience.Public @InterfaceStability.Stable void addAllReleases(List<ContainerId> releaseContainers)
ContainerId
of containers being
released by the ApplicationMaster
releaseContainers
- list of ContainerId
of
containers being released by the <
code>ApplicationMasterCopyright © 2014 Apache Software Foundation. All Rights Reserved.