org.apache.hadoop.yarn.server.nodemanager.containermanager.container
Class ContainerImpl
java.lang.Object
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)
|
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)
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,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 © 2012 Apache Software Foundation. All Rights Reserved.