public class ContainerManagerImpl extends org.apache.hadoop.yarn.service.CompositeService implements org.apache.hadoop.yarn.service.ServiceStateChangeListener, org.apache.hadoop.yarn.api.ContainerManager, org.apache.hadoop.yarn.event.EventHandler<ContainerManagerEvent>
| Modifier and Type | Field and Description |
|---|---|
protected LocalDirsHandlerService |
dirsHandler |
protected org.apache.hadoop.yarn.event.AsyncDispatcher |
dispatcher |
| Constructor and Description |
|---|
ContainerManagerImpl(Context context,
ContainerExecutor exec,
DeletionService deletionContext,
NodeStatusUpdater nodeStatusUpdater,
NodeManagerMetrics metrics,
org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager,
LocalDirsHandlerService dirsHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected ContainersLauncher |
createContainersLauncher(Context context,
ContainerExecutor exec) |
protected LogHandler |
createLogHandler(org.apache.hadoop.conf.Configuration conf,
Context context,
DeletionService deletionService) |
protected ResourceLocalizationService |
createResourceLocalizationService(ContainerExecutor exec,
DeletionService deletionContext) |
ContainersMonitor |
getContainersMonitor() |
org.apache.hadoop.yarn.api.protocolrecords.GetContainerStatusResponse |
getContainerStatus(org.apache.hadoop.yarn.api.protocolrecords.GetContainerStatusRequest request) |
void |
handle(ContainerManagerEvent event) |
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
start() |
org.apache.hadoop.yarn.api.protocolrecords.StartContainerResponse |
startContainer(org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest request)
Start a container on this NodeManager.
|
void |
stateChanged(org.apache.hadoop.yarn.service.Service service) |
void |
stop() |
org.apache.hadoop.yarn.api.protocolrecords.StopContainerResponse |
stopContainer(org.apache.hadoop.yarn.api.protocolrecords.StopContainerRequest request)
Stop the container running on this NodeManager.
|
addService, getServices, removeServiceprotected LocalDirsHandlerService dirsHandler
protected final org.apache.hadoop.yarn.event.AsyncDispatcher dispatcher
public ContainerManagerImpl(Context context, ContainerExecutor exec, DeletionService deletionContext, NodeStatusUpdater nodeStatusUpdater, NodeManagerMetrics metrics, org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager, LocalDirsHandlerService dirsHandler)
public void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.CompositeServiceprotected LogHandler createLogHandler(org.apache.hadoop.conf.Configuration conf, Context context, DeletionService deletionService)
public ContainersMonitor getContainersMonitor()
protected ResourceLocalizationService createResourceLocalizationService(ContainerExecutor exec, DeletionService deletionContext)
protected ContainersLauncher createContainersLauncher(Context context, ContainerExecutor exec)
public void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.CompositeServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.CompositeServicepublic org.apache.hadoop.yarn.api.protocolrecords.StartContainerResponse startContainer(org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
startContainer in interface org.apache.hadoop.yarn.api.ContainerManagerorg.apache.hadoop.yarn.exceptions.YarnRemoteExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.StopContainerResponse stopContainer(org.apache.hadoop.yarn.api.protocolrecords.StopContainerRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
stopContainer in interface org.apache.hadoop.yarn.api.ContainerManagerorg.apache.hadoop.yarn.exceptions.YarnRemoteExceptionpublic org.apache.hadoop.yarn.api.protocolrecords.GetContainerStatusResponse getContainerStatus(org.apache.hadoop.yarn.api.protocolrecords.GetContainerStatusRequest request)
throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
getContainerStatus in interface org.apache.hadoop.yarn.api.ContainerManagerorg.apache.hadoop.yarn.exceptions.YarnRemoteExceptionpublic void handle(ContainerManagerEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<ContainerManagerEvent>public void stateChanged(org.apache.hadoop.yarn.service.Service service)
stateChanged in interface org.apache.hadoop.yarn.service.ServiceStateChangeListenerCopyright © 2013 Apache Software Foundation. All Rights Reserved.