@InterfaceAudience.Private @InterfaceStability.Unstable public class NMClientAsyncImpl extends NMClientAsync
| Modifier and Type | Class and Description |
|---|---|
protected static class |
NMClientAsyncImpl.ContainerEvent |
protected class |
NMClientAsyncImpl.ContainerEventProcessor |
protected static class |
NMClientAsyncImpl.ContainerEventType
The type of the event of interacting with a container
|
protected static class |
NMClientAsyncImpl.ContainerState |
protected static class |
NMClientAsyncImpl.StartContainerEvent |
protected static class |
NMClientAsyncImpl.StatefulContainer |
NMClientAsync.CallbackHandler| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,NMClientAsyncImpl.StatefulContainer> |
containers |
protected Thread |
eventDispatcherThread |
protected BlockingQueue<NMClientAsyncImpl.ContainerEvent> |
events |
protected static int |
INITIAL_THREAD_POOL_SIZE |
protected int |
maxThreadPoolSize |
protected AtomicBoolean |
stopped |
protected ThreadPoolExecutor |
threadPool |
callbackHandler, client| Modifier | Constructor and Description |
|---|---|
|
NMClientAsyncImpl(NMClientAsync.CallbackHandler callbackHandler) |
|
NMClientAsyncImpl(String name,
NMClientAsync.CallbackHandler callbackHandler) |
protected |
NMClientAsyncImpl(String name,
NMClient client,
NMClientAsync.CallbackHandler callbackHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected NMClientAsyncImpl.ContainerEventProcessor |
getContainerEventProcessor(NMClientAsyncImpl.ContainerEvent event) |
void |
getContainerStatusAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId) |
protected boolean |
isCompletelyDone(NMClientAsyncImpl.StatefulContainer container) |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
void |
startContainerAsync(org.apache.hadoop.yarn.api.records.Container container,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext containerLaunchContext) |
void |
stopContainerAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId) |
createNMClientAsync, getCallbackHandler, getClient, setCallbackHandler, setClientclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected static final int INITIAL_THREAD_POOL_SIZE
protected ThreadPoolExecutor threadPool
protected int maxThreadPoolSize
protected Thread eventDispatcherThread
protected AtomicBoolean stopped
protected BlockingQueue<NMClientAsyncImpl.ContainerEvent> events
protected ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,NMClientAsyncImpl.StatefulContainer> containers
public NMClientAsyncImpl(NMClientAsync.CallbackHandler callbackHandler)
public NMClientAsyncImpl(String name, NMClientAsync.CallbackHandler callbackHandler)
@InterfaceAudience.Private protected NMClientAsyncImpl(String name, NMClient client, NMClientAsync.CallbackHandler callbackHandler)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic void startContainerAsync(org.apache.hadoop.yarn.api.records.Container container,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext containerLaunchContext)
startContainerAsync in class NMClientAsyncpublic void stopContainerAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId)
stopContainerAsync in class NMClientAsyncpublic void getContainerStatusAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId)
getContainerStatusAsync in class NMClientAsyncprotected boolean isCompletelyDone(NMClientAsyncImpl.StatefulContainer container)
protected NMClientAsyncImpl.ContainerEventProcessor getContainerEventProcessor(NMClientAsyncImpl.ContainerEvent event)
Copyright © 2016 Apache Software Foundation. All Rights Reserved.