Class ApplicationInitializationContext
java.lang.Object
org.apache.hadoop.yarn.server.api.ApplicationInitializationContext
Initialization context for
AuxiliaryService when starting an
application.-
Constructor Summary
ConstructorsConstructorDescriptionApplicationInitializationContext(String user, ApplicationId applicationId, ByteBuffer appDataForService) -
Method Summary
Modifier and TypeMethodDescriptionGet the data sent to the NodeManager viaContainerManagementProtocol.startContainers(StartContainersRequest)as part ofContainerLaunchContext.getServiceData()GetApplicationIdof the applicationgetUser()Get the user-name of the application-submitter
-
Constructor Details
-
ApplicationInitializationContext
@Private @Unstable public ApplicationInitializationContext(String user, ApplicationId applicationId, ByteBuffer appDataForService)
-
-
Method Details
-
getUser
Get the user-name of the application-submitter- Returns:
- user-name
-
getApplicationId
GetApplicationIdof the application- Returns:
- applications ID
-
getApplicationDataForService
Get the data sent to the NodeManager viaContainerManagementProtocol.startContainers(StartContainersRequest)as part ofContainerLaunchContext.getServiceData()- Returns:
- the servicesData for this application.
-