@InterfaceAudience.Private @InterfaceStability.Unstable public class ApplicationSubmissionContextPBImpl extends ApplicationSubmissionContext
| Constructor and Description |
|---|
ApplicationSubmissionContextPBImpl() |
ApplicationSubmissionContextPBImpl(YarnProtos.ApplicationSubmissionContextProto proto) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
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.
|
String |
getApplicationType()
Get the application type
|
boolean |
getCancelTokensWhenComplete() |
int |
getMaxAppAttempts() |
Priority |
getPriority()
Get the
Priority of the application. |
YarnProtos.ApplicationSubmissionContextProto |
getProto() |
String |
getQueue()
Get the queue to which the application is being submitted.
|
Resource |
getResource()
Get the resource required by the
ApplicationMaster for this
application. |
boolean |
getUnmanagedAM()
Get if the RM should manage the execution of the AM.
|
int |
hashCode() |
void |
setAMContainerSpec(ContainerLaunchContext amContainer)
Set the
ContainerLaunchContext to describe the
Container with which the ApplicationMaster is
launched. |
void |
setApplicationId(ApplicationId applicationId)
Set the
ApplicationId of the submitted application. |
void |
setApplicationName(String applicationName)
Set the application name.
|
void |
setApplicationType(String applicationType)
Set the application type
|
void |
setCancelTokensWhenComplete(boolean cancel)
Set to false if tokens should not be canceled when the app finished else
false.
|
void |
setMaxAppAttempts(int maxAppAttempts)
Set the number of max attempts of the application to be submitted.
|
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 |
setResource(Resource resource)
Set the resource required by the
ApplicationMaster for this
application. |
void |
setUnmanagedAM(boolean value) |
String |
toString() |
newInstance, newInstancepublic ApplicationSubmissionContextPBImpl()
public ApplicationSubmissionContextPBImpl(YarnProtos.ApplicationSubmissionContextProto proto)
public YarnProtos.ApplicationSubmissionContextProto getProto()
public Priority getPriority()
ApplicationSubmissionContextPriority of the application.getPriority in class ApplicationSubmissionContextPriority of the applicationpublic void setPriority(Priority priority)
ApplicationSubmissionContextPriority of the application.setPriority in class ApplicationSubmissionContextpriority - Priority of the applicationpublic ApplicationId getApplicationId()
ApplicationSubmissionContextApplicationId of the submitted application.getApplicationId in class ApplicationSubmissionContextApplicationId of the submitted applicationpublic void setApplicationId(ApplicationId applicationId)
ApplicationSubmissionContextApplicationId of the submitted application.setApplicationId in class ApplicationSubmissionContextapplicationId - ApplicationId of the submitted
applicationpublic String getApplicationName()
ApplicationSubmissionContextgetApplicationName in class ApplicationSubmissionContextpublic void setApplicationName(String applicationName)
ApplicationSubmissionContextsetApplicationName in class ApplicationSubmissionContextapplicationName - application namepublic String getQueue()
ApplicationSubmissionContextgetQueue in class ApplicationSubmissionContextpublic String getApplicationType()
ApplicationSubmissionContextgetApplicationType in class ApplicationSubmissionContextpublic void setQueue(String queue)
ApplicationSubmissionContextsetQueue in class ApplicationSubmissionContextqueue - queue to which the application is being submittedpublic void setApplicationType(String applicationType)
ApplicationSubmissionContextsetApplicationType in class ApplicationSubmissionContextapplicationType - the application typepublic ContainerLaunchContext getAMContainerSpec()
ApplicationSubmissionContextContainerLaunchContext to describe the
Container with which the ApplicationMaster is
launched.getAMContainerSpec in class ApplicationSubmissionContextContainerLaunchContext for the
ApplicationMaster containerpublic void setAMContainerSpec(ContainerLaunchContext amContainer)
ApplicationSubmissionContextContainerLaunchContext to describe the
Container with which the ApplicationMaster is
launched.setAMContainerSpec in class ApplicationSubmissionContextamContainer - ContainerLaunchContext for the
ApplicationMaster containerpublic boolean getUnmanagedAM()
ApplicationSubmissionContextYarnApplicationState.
Such apps will not be retried by the RM on app attempt failure.
The default value is false.getUnmanagedAM in class ApplicationSubmissionContextpublic void setUnmanagedAM(boolean value)
setUnmanagedAM in class ApplicationSubmissionContextvalue - true if RM should not manage the AMpublic boolean getCancelTokensWhenComplete()
getCancelTokensWhenComplete in class ApplicationSubmissionContextpublic void setCancelTokensWhenComplete(boolean cancel)
ApplicationSubmissionContextsetCancelTokensWhenComplete in class ApplicationSubmissionContextcancel - true if tokens should be canceled when the app finishes.public int getMaxAppAttempts()
getMaxAppAttempts in class ApplicationSubmissionContextpublic void setMaxAppAttempts(int maxAppAttempts)
ApplicationSubmissionContextsetMaxAppAttempts in class ApplicationSubmissionContextmaxAppAttempts - the number of max attempts of the application
to be submitted.public Resource getResource()
ApplicationSubmissionContextApplicationMaster for this
application.getResource in class ApplicationSubmissionContextApplicationMaster for
this application.public void setResource(Resource resource)
ApplicationSubmissionContextApplicationMaster for this
application.setResource in class ApplicationSubmissionContextresource - the resource required by the ApplicationMaster
for this application.Copyright © 2013 Apache Software Foundation. All rights reserved.