java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service@Private @Unstable public class NMClientAsyncImpl extends NMClientAsync
| Modifier and Type | Class | 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.ReInitializeContainerEvevnt |
|
protected static class |
NMClientAsyncImpl.StartContainerEvent |
|
protected static class |
NMClientAsyncImpl.StatefulContainer |
|
protected static class |
NMClientAsyncImpl.UpdateContainerResourceEvent |
NMClientAsync.AbstractCallbackHandler, NMClientAsync.CallbackHandler| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,NMClientAsyncImpl.StatefulContainer> |
containers |
|
protected java.lang.Thread |
eventDispatcherThread |
|
protected java.util.concurrent.BlockingQueue<NMClientAsyncImpl.ContainerEvent> |
events |
|
protected static int |
INITIAL_THREAD_POOL_SIZE |
|
protected int |
maxThreadPoolSize |
|
protected java.util.concurrent.atomic.AtomicBoolean |
stopped |
|
protected java.util.concurrent.ThreadPoolExecutor |
threadPool |
callbackHandler, client| Modifier | Constructor | Description |
|---|---|---|
|
NMClientAsyncImpl(java.lang.String name,
NMClientAsync.AbstractCallbackHandler callbackHandler) |
|
|
NMClientAsyncImpl(java.lang.String name,
NMClientAsync.CallbackHandler callbackHandler) |
Deprecated.
|
protected |
NMClientAsyncImpl(java.lang.String name,
NMClient client,
NMClientAsync.AbstractCallbackHandler callbackHandler) |
|
protected |
NMClientAsyncImpl(java.lang.String name,
NMClient client,
NMClientAsync.CallbackHandler callbackHandler) |
Deprecated.
|
|
NMClientAsyncImpl(NMClientAsync.AbstractCallbackHandler callbackHandler) |
|
|
NMClientAsyncImpl(NMClientAsync.CallbackHandler callbackHandler) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
commitLastReInitializationAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Commit last reInitialization of the specified container.
|
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) |
|
void |
increaseContainerResourceAsync(org.apache.hadoop.yarn.api.records.Container container) |
Deprecated.
|
protected boolean |
isCompletelyDone(NMClientAsyncImpl.StatefulContainer container) |
|
void |
reInitializeContainerAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext containerLaunchContex,
boolean autoCommit) |
Re-Initialize the Container.
|
void |
restartContainerAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Restart the specified container.
|
void |
rollbackLastReInitializationAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Rollback last reInitialization of the specified 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) |
|
void |
updateContainerResourceAsync(org.apache.hadoop.yarn.api.records.Container container) |
Update the resources of a container.
|
createNMClientAsync, 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 java.util.concurrent.ThreadPoolExecutor threadPool
protected int maxThreadPoolSize
protected java.lang.Thread eventDispatcherThread
protected java.util.concurrent.atomic.AtomicBoolean stopped
protected java.util.concurrent.BlockingQueue<NMClientAsyncImpl.ContainerEvent> events
protected java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,NMClientAsyncImpl.StatefulContainer> containers
public NMClientAsyncImpl(NMClientAsync.AbstractCallbackHandler callbackHandler)
public NMClientAsyncImpl(java.lang.String name,
NMClientAsync.AbstractCallbackHandler callbackHandler)
@Private
@VisibleForTesting
protected NMClientAsyncImpl(java.lang.String name,
NMClient client,
NMClientAsync.AbstractCallbackHandler callbackHandler)
@Deprecated public NMClientAsyncImpl(NMClientAsync.CallbackHandler callbackHandler)
@Deprecated
public NMClientAsyncImpl(java.lang.String name,
NMClientAsync.CallbackHandler callbackHandler)
@Private
@VisibleForTesting
@Deprecated
protected NMClientAsyncImpl(java.lang.String name,
NMClient client,
NMClientAsync.CallbackHandler callbackHandler)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionpublic void startContainerAsync(org.apache.hadoop.yarn.api.records.Container container,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext containerLaunchContext)
startContainerAsync in class NMClientAsync@Deprecated public void increaseContainerResourceAsync(org.apache.hadoop.yarn.api.records.Container container)
increaseContainerResourceAsync in class NMClientAsyncpublic void updateContainerResourceAsync(org.apache.hadoop.yarn.api.records.Container container)
NMClientAsyncUpdate the resources of a container.
The ApplicationMaster or other applications that use the
client must provide the details of the container, including the Id and
the target resource encapsulated in the updated container token via
Container.
updateContainerResourceAsync in class NMClientAsynccontainer - the container with updated token.public void reInitializeContainerAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext containerLaunchContex,
boolean autoCommit)
NMClientAsyncRe-Initialize the Container.
reInitializeContainerAsync in class NMClientAsynccontainerId - the Id of the container to Re-Initialize.containerLaunchContex - the updated ContainerLaunchContext.autoCommit - commit re-initialization automatically ?public void restartContainerAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId)
NMClientAsyncRestart the specified container.
restartContainerAsync in class NMClientAsynccontainerId - the Id of the container to restart.public void rollbackLastReInitializationAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId)
NMClientAsyncRollback last reInitialization of the specified container.
rollbackLastReInitializationAsync in class NMClientAsynccontainerId - the Id of the container to restart.public void commitLastReInitializationAsync(org.apache.hadoop.yarn.api.records.ContainerId containerId)
NMClientAsyncCommit last reInitialization of the specified container.
commitLastReInitializationAsync in class NMClientAsynccontainerId - the Id of the container to commit reInitialize.public 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 © 2008–2025 Apache Software Foundation. All rights reserved.