@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.CallbackHandlerService.STATE| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<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(ContainerId containerId,
NodeId nodeId) |
protected boolean |
isCompletelyDone(NMClientAsyncImpl.StatefulContainer container) |
protected void |
serviceInit(Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
void |
startContainerAsync(Container container,
ContainerLaunchContext containerLaunchContext) |
void |
stopContainerAsync(ContainerId containerId,
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<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(Configuration conf) throws Exception
serviceInit in class AbstractServiceExceptionprotected void serviceStart()
throws Exception
serviceStart in class AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class AbstractServiceExceptionpublic void startContainerAsync(Container container, ContainerLaunchContext containerLaunchContext)
startContainerAsync in class NMClientAsyncpublic void stopContainerAsync(ContainerId containerId, NodeId nodeId)
stopContainerAsync in class NMClientAsyncpublic void getContainerStatusAsync(ContainerId containerId, NodeId nodeId)
getContainerStatusAsync in class NMClientAsyncprotected boolean isCompletelyDone(NMClientAsyncImpl.StatefulContainer container)
protected NMClientAsyncImpl.ContainerEventProcessor getContainerEventProcessor(NMClientAsyncImpl.ContainerEvent event)
Copyright © 2018 CERN. All Rights Reserved.