org.apache.hadoop.yarn.server.api
Class ApplicationInitializationContext

java.lang.Object
  extended by org.apache.hadoop.yarn.server.api.ApplicationInitializationContext

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class ApplicationInitializationContext
extends Object

Initialization context for AuxiliaryService when starting an application.


Constructor Summary
ApplicationInitializationContext(String user, ApplicationId applicationId, ByteBuffer appDataForService)
           
 
Method Summary
 ByteBuffer getApplicationDataForService()
          Get the data sent to the NodeManager via ContainerManagementProtocol.startContainers(StartContainersRequest) as part of ContainerLaunchContext.getServiceData()
 ApplicationId getApplicationId()
          Get ApplicationId of the application
 String getUser()
          Get the user-name of the application-submitter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationInitializationContext

@InterfaceAudience.Private
@InterfaceStability.Unstable
public ApplicationInitializationContext(String user,
                                                                                              ApplicationId applicationId,
                                                                                              ByteBuffer appDataForService)
Method Detail

getUser

public String getUser()
Get the user-name of the application-submitter

Returns:
user-name

getApplicationId

public ApplicationId getApplicationId()
Get ApplicationId of the application

Returns:
applications ID

getApplicationDataForService

public ByteBuffer getApplicationDataForService()
Get the data sent to the NodeManager via ContainerManagementProtocol.startContainers(StartContainersRequest) as part of ContainerLaunchContext.getServiceData()

Returns:
the servicesData for this application.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.