@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, newInstance
public ApplicationSubmissionContextPBImpl()
public ApplicationSubmissionContextPBImpl(YarnProtos.ApplicationSubmissionContextProto proto)
public YarnProtos.ApplicationSubmissionContextProto getProto()
public Priority getPriority()
ApplicationSubmissionContext
Priority
of the application.getPriority
in class ApplicationSubmissionContext
Priority
of the applicationpublic void setPriority(Priority priority)
ApplicationSubmissionContext
Priority
of the application.setPriority
in class ApplicationSubmissionContext
priority
- Priority
of the applicationpublic ApplicationId getApplicationId()
ApplicationSubmissionContext
ApplicationId
of the submitted application.getApplicationId
in class ApplicationSubmissionContext
ApplicationId
of the submitted applicationpublic void setApplicationId(ApplicationId applicationId)
ApplicationSubmissionContext
ApplicationId
of the submitted application.setApplicationId
in class ApplicationSubmissionContext
applicationId
- ApplicationId
of the submitted
applicationpublic String getApplicationName()
ApplicationSubmissionContext
getApplicationName
in class ApplicationSubmissionContext
public void setApplicationName(String applicationName)
ApplicationSubmissionContext
setApplicationName
in class ApplicationSubmissionContext
applicationName
- application namepublic String getQueue()
ApplicationSubmissionContext
getQueue
in class ApplicationSubmissionContext
public String getApplicationType()
ApplicationSubmissionContext
getApplicationType
in class ApplicationSubmissionContext
public void setQueue(String queue)
ApplicationSubmissionContext
setQueue
in class ApplicationSubmissionContext
queue
- queue to which the application is being submittedpublic void setApplicationType(String applicationType)
ApplicationSubmissionContext
setApplicationType
in class ApplicationSubmissionContext
applicationType
- the application typepublic ContainerLaunchContext getAMContainerSpec()
ApplicationSubmissionContext
ContainerLaunchContext
to describe the
Container
with which the ApplicationMaster
is
launched.getAMContainerSpec
in class ApplicationSubmissionContext
ContainerLaunchContext
for the
ApplicationMaster
containerpublic void setAMContainerSpec(ContainerLaunchContext amContainer)
ApplicationSubmissionContext
ContainerLaunchContext
to describe the
Container
with which the ApplicationMaster
is
launched.setAMContainerSpec
in class ApplicationSubmissionContext
amContainer
- ContainerLaunchContext
for the
ApplicationMaster
containerpublic boolean getUnmanagedAM()
ApplicationSubmissionContext
YarnApplicationState
.
Such apps will not be retried by the RM on app attempt failure.
The default value is false.getUnmanagedAM
in class ApplicationSubmissionContext
public void setUnmanagedAM(boolean value)
setUnmanagedAM
in class ApplicationSubmissionContext
value
- true if RM should not manage the AMpublic boolean getCancelTokensWhenComplete()
getCancelTokensWhenComplete
in class ApplicationSubmissionContext
public void setCancelTokensWhenComplete(boolean cancel)
ApplicationSubmissionContext
setCancelTokensWhenComplete
in class ApplicationSubmissionContext
cancel
- true if tokens should be canceled when the app finishes.public int getMaxAppAttempts()
getMaxAppAttempts
in class ApplicationSubmissionContext
public void setMaxAppAttempts(int maxAppAttempts)
ApplicationSubmissionContext
setMaxAppAttempts
in class ApplicationSubmissionContext
maxAppAttempts
- the number of max attempts of the application
to be submitted.public Resource getResource()
ApplicationSubmissionContext
ApplicationMaster
for this
application.getResource
in class ApplicationSubmissionContext
ApplicationMaster
for
this application.public void setResource(Resource resource)
ApplicationSubmissionContext
ApplicationMaster
for this
application.setResource
in class ApplicationSubmissionContext
resource
- the resource required by the ApplicationMaster
for this application.Copyright © 2013 Apache Software Foundation. All rights reserved.