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

java.lang.Object
  extended by org.apache.hadoop.yarn.server.api.ContainerContext
Direct Known Subclasses:
ContainerInitializationContext, ContainerTerminationContext

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

Base context class for AuxiliaryService initializing and stopping a container.


Constructor Summary
ContainerContext(String user, ContainerId containerId, Resource resource)
           
 
Method Summary
 ContainerId getContainerId()
          Get ContainerId of the container being initialized or stopped.
 Resource getResource()
          Get Resource the resource capability allocated to the container being initialized or stopped.
 String getUser()
          Get user of the container being initialized or stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerContext

@InterfaceAudience.Private
@InterfaceStability.Unstable
public ContainerContext(String user,
                                                                              ContainerId containerId,
                                                                              Resource resource)
Method Detail

getUser

public String getUser()
Get user of the container being initialized or stopped.

Returns:
the user

getContainerId

public ContainerId getContainerId()
Get ContainerId of the container being initialized or stopped.

Returns:
the container ID

getResource

public Resource getResource()
Get Resource the resource capability allocated to the container being initialized or stopped.

Returns:
the resource capability.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.