Java org.apache.hadoop.yarn.api.records ApplicationSubmissionContext fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.yarn.api.records ApplicationSubmissionContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.yarn.api.records ApplicationSubmissionContext.

The text is from its open source code.

Method

ContainerLaunchContextgetAMContainerSpec()
Get the ContainerLaunchContext to describe the Container with which the ApplicationMaster is launched.
ApplicationIdgetApplicationId()
Get the ApplicationId of the submitted application.
StringgetApplicationName()
Get the application name.
longgetAttemptFailuresValidityInterval()
Get the attemptFailuresValidityInterval in milliseconds for the application
StringgetQueue()
Get the queue to which the application is being submitted.
ResourcegetResource()
Get the resource required by the ApplicationMaster for this application.
ApplicationSubmissionContextnewInstance(ApplicationId applicationId, String applicationName, String queue, Priority priority, ContainerLaunchContext amContainer, boolean isUnmanagedAM, boolean cancelTokensWhenComplete, int maxAppAttempts, Resource resource, String applicationType)
voidsetAMContainerSpec(ContainerLaunchContext amContainer)
Set the ContainerLaunchContext to describe the Container with which the ApplicationMaster is launched.
voidsetApplicationId(ApplicationId applicationId)
Set the ApplicationId of the submitted application.
voidsetApplicationName(String applicationName)
Set the application name.
voidsetApplicationTags(Set tags)
Set tags for the application.
voidsetApplicationType(String applicationType)
Set the application type
voidsetAttemptFailuresValidityInterval(long attemptFailuresValidityInterval)
Set the attemptFailuresValidityInterval in milliseconds for the application
voidsetCancelTokensWhenComplete(boolean cancel)
Set to false if tokens should not be canceled when the app finished else false.
voidsetKeepContainersAcrossApplicationAttempts(boolean keepContainers)
Set the flag which indicates whether to keep containers across application attempts.
voidsetMaxAppAttempts(int maxAppAttempts)
Set the number of max attempts of the application to be submitted.
voidsetNodeLabelExpression(String nodeLabelExpression)
Set node-label-expression for this app
voidsetPriority(Priority priority)
Set the Priority of the application.
voidsetQueue(String queue)
Set the queue to which the application is being submitted
voidsetResource(Resource resource)
Set the resource required by the ApplicationMaster for this application.
voidsetUnmanagedAM(boolean value)