org.apache.hadoop.yarn.server.nodemanager.containermanager.container
Class ContainerImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl
All Implemented Interfaces:
org.apache.hadoop.yarn.event.EventHandler<ContainerEvent>, Container

public class ContainerImpl
extends Object
implements Container


Constructor Summary
ContainerImpl(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.event.Dispatcher dispatcher, org.apache.hadoop.yarn.api.records.ContainerLaunchContext launchContext, org.apache.hadoop.security.Credentials creds, NodeManagerMetrics metrics)
           
 
Method Summary
 void cleanup()
           
 org.apache.hadoop.yarn.api.records.ContainerStatus cloneAndGetContainerStatus()
           
 org.apache.hadoop.yarn.api.records.ContainerId getContainerID()
           
 ContainerState getContainerState()
           
 org.apache.hadoop.security.Credentials getCredentials()
           
 org.apache.hadoop.yarn.api.records.ContainerLaunchContext getLaunchContext()
           
 Map<org.apache.hadoop.fs.Path,List<String>> getLocalizedResources()
           
 String getUser()
           
 void handle(ContainerEvent event)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerImpl

public ContainerImpl(org.apache.hadoop.conf.Configuration conf,
                     org.apache.hadoop.yarn.event.Dispatcher dispatcher,
                     org.apache.hadoop.yarn.api.records.ContainerLaunchContext launchContext,
                     org.apache.hadoop.security.Credentials creds,
                     NodeManagerMetrics metrics)
Method Detail

getContainerID

public org.apache.hadoop.yarn.api.records.ContainerId getContainerID()
Specified by:
getContainerID in interface Container

getUser

public String getUser()
Specified by:
getUser in interface Container

getLocalizedResources

public Map<org.apache.hadoop.fs.Path,List<String>> getLocalizedResources()
Specified by:
getLocalizedResources in interface Container

getCredentials

public org.apache.hadoop.security.Credentials getCredentials()
Specified by:
getCredentials in interface Container

getContainerState

public ContainerState getContainerState()
Specified by:
getContainerState in interface Container

getLaunchContext

public org.apache.hadoop.yarn.api.records.ContainerLaunchContext getLaunchContext()
Specified by:
getLaunchContext in interface Container

cloneAndGetContainerStatus

public org.apache.hadoop.yarn.api.records.ContainerStatus cloneAndGetContainerStatus()
Specified by:
cloneAndGetContainerStatus in interface Container

cleanup

public void cleanup()

handle

public void handle(ContainerEvent event)
Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<ContainerEvent>

toString

public String toString()
Specified by:
toString in interface Container
Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.