|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.ApplicationSubmissionContextProto>
org.apache.hadoop.yarn.api.records.impl.pb.ApplicationSubmissionContextPBImpl
public class ApplicationSubmissionContextPBImpl
| Constructor Summary | |
|---|---|
ApplicationSubmissionContextPBImpl()
|
|
ApplicationSubmissionContextPBImpl(YarnProtos.ApplicationSubmissionContextProto proto)
|
|
| 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. |
YarnProtos.ApplicationSubmissionContextProto |
getProto()
|
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 applicationId)
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. |
| Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase |
|---|
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationSubmissionContextPBImpl()
public ApplicationSubmissionContextPBImpl(YarnProtos.ApplicationSubmissionContextProto proto)
| Method Detail |
|---|
public YarnProtos.ApplicationSubmissionContextProto getProto()
getProto in class ProtoBase<YarnProtos.ApplicationSubmissionContextProto>public Priority getPriority()
ApplicationSubmissionContextPriority of the application.
getPriority in interface ApplicationSubmissionContextPriority of the applicationpublic void setPriority(Priority priority)
ApplicationSubmissionContextPriority of the application.
setPriority in interface ApplicationSubmissionContextpriority - Priority of the applicationpublic ApplicationId getApplicationId()
ApplicationSubmissionContextApplicationId of the submitted application.
getApplicationId in interface ApplicationSubmissionContextApplicationId of the submitted applicationpublic void setApplicationId(ApplicationId applicationId)
ApplicationSubmissionContextApplicationId of the submitted application.
setApplicationId in interface ApplicationSubmissionContextapplicationId - ApplicationId of the submitted
applicationpublic String getApplicationName()
ApplicationSubmissionContext
getApplicationName in interface ApplicationSubmissionContextpublic void setApplicationName(String applicationName)
ApplicationSubmissionContext
setApplicationName in interface ApplicationSubmissionContextapplicationName - application namepublic String getQueue()
ApplicationSubmissionContext
getQueue in interface ApplicationSubmissionContextpublic void setQueue(String queue)
ApplicationSubmissionContext
setQueue in interface ApplicationSubmissionContextqueue - queue to which the application is being submittedpublic String getUser()
ApplicationSubmissionContext
getUser in interface ApplicationSubmissionContextpublic void setUser(String user)
ApplicationSubmissionContext
setUser in interface ApplicationSubmissionContextuser - user submitting the applicationpublic ContainerLaunchContext getAMContainerSpec()
ApplicationSubmissionContextContainerLaunchContext to describe the
Container with which the ApplicationMaster is
launched.
getAMContainerSpec in interface ApplicationSubmissionContextContainerLaunchContext for the
ApplicationMaster containerpublic void setAMContainerSpec(ContainerLaunchContext amContainer)
ApplicationSubmissionContextContainerLaunchContext to describe the
Container with which the ApplicationMaster is
launched.
setAMContainerSpec in interface ApplicationSubmissionContextamContainer - ContainerLaunchContext for the
ApplicationMaster containerpublic boolean getCancelTokensWhenComplete()
getCancelTokensWhenComplete in interface ApplicationSubmissionContextpublic void setCancelTokensWhenComplete(boolean cancel)
ApplicationSubmissionContext
setCancelTokensWhenComplete in interface ApplicationSubmissionContextcancel - 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 | |||||||||