|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Public @InterfaceStability.Stable public interface ApplicationSubmissionContext
ApplicationSubmissionContext represents all of the
information needed by the ResourceManager to launch
the ApplicationMaster for an application.
It includes details such as:
ApplicationId of the application.Priority of the application.ContainerLaunchContext of the container in which the
ApplicationMaster is executed.
ContainerLaunchContext,
ClientRMProtocol.submitApplication(org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationRequest)| Method Summary | |
|---|---|
ContainerLaunchContext |
getAMContainerSpec()
Get the ContainerLaunchContext to describe the
Container with which the ApplicationMaster is
launched. |
ApplicationId |
getApplicationId()
Get the ApplicationId of the submitted application. |
String |
getApplicationName()
Get the application name. |
boolean |
getCancelTokensWhenComplete()
|
Priority |
getPriority()
Get the Priority of the application. |
String |
getQueue()
Get the queue to which the application is being submitted. |
String |
getUser()
Get the user submitting the application. |
void |
setAMContainerSpec(ContainerLaunchContext amContainer)
Set the ContainerLaunchContext to describe the
Container with which the ApplicationMaster is
launched. |
void |
setApplicationId(ApplicationId appplicationId)
Set the ApplicationId of the submitted application. |
void |
setApplicationName(String applicationName)
Set the application name. |
void |
setCancelTokensWhenComplete(boolean cancel)
Set to false if tokens should not be canceled when the app finished else false. |
void |
setPriority(Priority priority)
Set the Priority of the application. |
void |
setQueue(String queue)
Set the queue to which the application is being submitted |
void |
setUser(String user)
Set the user submitting the application. |
| Method Detail |
|---|
@InterfaceAudience.Public @InterfaceStability.Stable ApplicationId getApplicationId()
ApplicationId of the submitted application.
ApplicationId of the submitted application@InterfaceAudience.Public @InterfaceStability.Stable void setApplicationId(ApplicationId appplicationId)
ApplicationId of the submitted application.
appplicationId - ApplicationId of the submitted
application@InterfaceAudience.Public @InterfaceStability.Stable String getApplicationName()
@InterfaceAudience.Public @InterfaceStability.Stable void setApplicationName(String applicationName)
applicationName - application name@InterfaceAudience.Public @InterfaceStability.Stable String getQueue()
@InterfaceAudience.Public @InterfaceStability.Stable void setQueue(String queue)
queue - queue to which the application is being submitted@InterfaceAudience.Public @InterfaceStability.Stable Priority getPriority()
Priority of the application.
Priority of the application@InterfaceAudience.Public @InterfaceStability.Stable void setPriority(Priority priority)
Priority of the application.
priority - Priority of the application@InterfaceAudience.Public @InterfaceStability.Stable String getUser()
@InterfaceAudience.Public @InterfaceStability.Stable void setUser(String user)
user - user submitting the application@InterfaceAudience.Public @InterfaceStability.Stable ContainerLaunchContext getAMContainerSpec()
ContainerLaunchContext to describe the
Container with which the ApplicationMaster is
launched.
ContainerLaunchContext for the
ApplicationMaster container@InterfaceAudience.Public @InterfaceStability.Stable void setAMContainerSpec(ContainerLaunchContext amContainer)
ContainerLaunchContext to describe the
Container with which the ApplicationMaster is
launched.
amContainer - ContainerLaunchContext for the
ApplicationMaster container@InterfaceAudience.LimitedPrivate(value="mapreduce") @InterfaceStability.Unstable boolean getCancelTokensWhenComplete()
@InterfaceAudience.LimitedPrivate(value="mapreduce") @InterfaceStability.Unstable void setCancelTokensWhenComplete(boolean cancel)
cancel - true if tokens should be canceled when the app finishes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||