Contextpublic static class NodeManager.NMContext extends java.lang.Object implements Context
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,Application> |
applications |
|
protected java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,Container> |
containers |
|
protected java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.Container> |
increasedContainers |
| Constructor | Description |
|---|---|
NMContext(NMContainerTokenSecretManager containerTokenSecretManager,
NMTokenSecretManagerInNM nmTokenSecretManager,
LocalDirsHandlerService dirsHandler,
org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager,
NMStateStoreService stateStore,
boolean isDistSchedulingEnabled,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.yarn.server.security.ApplicationACLsManager |
getApplicationACLsManager() |
|
java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,Application> |
getApplications() |
|
AuxServices |
getAuxServices() |
|
org.apache.hadoop.conf.Configuration |
getConf() |
|
org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerAllocator |
getContainerAllocator() |
|
ContainerExecutor |
getContainerExecutor() |
|
ContainerManager |
getContainerManager() |
|
java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,Container> |
getContainers() |
|
ContainerStateTransitionListener |
getContainerStateTransitionListener() |
|
NMContainerTokenSecretManager |
getContainerTokenSecretManager() |
|
boolean |
getDecommissioned() |
|
DeletionService |
getDeletionService() |
Return the NM's
DeletionService. |
int |
getHttpPort() |
Return the node http-address.
|
java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.Container> |
getIncreasedContainers() |
|
java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.server.api.records.AppCollectorData> |
getKnownCollectors() |
Get the list of collectors registered with the RM and known by this node.
|
LocalDirsHandlerService |
getLocalDirsHandler() |
|
java.util.concurrent.ConcurrentLinkedQueue<org.apache.hadoop.yarn.server.api.protocolrecords.LogAggregationReport> |
getLogAggregationStatusForApps() |
|
NMLogAggregationStatusTracker |
getNMLogAggregationStatusTracker() |
|
NMStateStoreService |
getNMStateStore() |
|
NMTimelinePublisher |
getNMTimelinePublisher() |
|
NMTokenSecretManagerInNM |
getNMTokenSecretManager() |
|
org.apache.hadoop.yarn.server.api.records.NodeHealthStatus |
getNodeHealthStatus() |
|
org.apache.hadoop.yarn.api.records.NodeId |
getNodeId() |
Usable only after ContainerManager is started.
|
NodeLocalVolumeMonitor |
getNodeLocalVolumeMonitor() |
|
NodeManagerMetrics |
getNodeManagerMetrics() |
Returns the
NodeManagerMetrics instance of this node. |
NodeResourceMonitor |
getNodeResourceMonitor() |
|
NodeStatusUpdater |
getNodeStatusUpdater() |
|
java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.server.api.records.AppCollectorData> |
getRegisteringCollectors() |
Get the list of collectors that are registering with the RM from this node.
|
ResourcePluginManager |
getResourcePluginManager() |
|
java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.security.Credentials> |
getSystemCredentialsForApps() |
|
boolean |
isDistributedSchedulingEnabled() |
|
void |
setAuxServices(AuxServices auxServices) |
|
void |
setContainerExecutor(ContainerExecutor executor) |
|
void |
setContainerManager(ContainerManager containerManager) |
|
void |
setContainerStateTransitionListener(ContainerStateTransitionListener transitionListener) |
|
void |
setDecommissioned(boolean isDecommissioned) |
|
void |
setDeletionService(DeletionService deletionService) |
Set the NM's
DeletionService. |
void |
setNMLogAggregationStatusTracker(NMLogAggregationStatusTracker nmLogAggregationStatusTracker) |
|
void |
setNMTimelinePublisher(NMTimelinePublisher nmMetricsPublisher) |
|
void |
setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId) |
|
void |
setNodeLocalVolumeMonitor(NodeLocalVolumeMonitor nodeLocalVolumeMonitor) |
|
void |
setNodeManagerMetrics(NodeManagerMetrics nmMetrics) |
|
void |
setNodeResourceMonitor(NodeResourceMonitor nodeResourceMonitor) |
|
void |
setNodeStatusUpdater(NodeStatusUpdater nodeStatusUpdater) |
|
void |
setQueueableContainerAllocator(org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerAllocator containerAllocator) |
|
void |
setResourcePluginManager(ResourcePluginManager resourcePluginManager) |
|
void |
setSystemCrendentialsForApps(java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.security.Credentials> systemCredentials) |
|
void |
setWebServer(WebServer webServer) |
protected final java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,Application> applications
protected final java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,Container> containers
protected final java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.Container> increasedContainers
public NMContext(NMContainerTokenSecretManager containerTokenSecretManager, NMTokenSecretManagerInNM nmTokenSecretManager, LocalDirsHandlerService dirsHandler, org.apache.hadoop.yarn.server.security.ApplicationACLsManager aclsManager, NMStateStoreService stateStore, boolean isDistSchedulingEnabled, org.apache.hadoop.conf.Configuration conf)
public org.apache.hadoop.yarn.api.records.NodeId getNodeId()
public int getHttpPort()
ContextgetHttpPort in interface Contextpublic java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,Application> getApplications()
getApplications in interface Contextpublic org.apache.hadoop.conf.Configuration getConf()
public java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,Container> getContainers()
getContainers in interface Contextpublic java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.Container> getIncreasedContainers()
getIncreasedContainers in interface Contextpublic NMContainerTokenSecretManager getContainerTokenSecretManager()
getContainerTokenSecretManager in interface Contextpublic NMTokenSecretManagerInNM getNMTokenSecretManager()
getNMTokenSecretManager in interface Contextpublic org.apache.hadoop.yarn.server.api.records.NodeHealthStatus getNodeHealthStatus()
getNodeHealthStatus in interface Contextpublic NodeResourceMonitor getNodeResourceMonitor()
getNodeResourceMonitor in interface Contextpublic void setNodeResourceMonitor(NodeResourceMonitor nodeResourceMonitor)
public NodeLocalVolumeMonitor getNodeLocalVolumeMonitor()
getNodeLocalVolumeMonitor in interface Contextpublic void setNodeLocalVolumeMonitor(NodeLocalVolumeMonitor nodeLocalVolumeMonitor)
public ContainerManager getContainerManager()
getContainerManager in interface Contextpublic void setContainerManager(ContainerManager containerManager)
public void setWebServer(WebServer webServer)
public void setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId)
public LocalDirsHandlerService getLocalDirsHandler()
getLocalDirsHandler in interface Contextpublic org.apache.hadoop.yarn.server.security.ApplicationACLsManager getApplicationACLsManager()
getApplicationACLsManager in interface Contextpublic NMStateStoreService getNMStateStore()
getNMStateStore in interface Contextpublic boolean getDecommissioned()
getDecommissioned in interface Contextpublic void setDecommissioned(boolean isDecommissioned)
setDecommissioned in interface Contextpublic java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.security.Credentials> getSystemCredentialsForApps()
getSystemCredentialsForApps in interface Contextpublic void setSystemCrendentialsForApps(java.util.Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.security.Credentials> systemCredentials)
public java.util.concurrent.ConcurrentLinkedQueue<org.apache.hadoop.yarn.server.api.protocolrecords.LogAggregationReport> getLogAggregationStatusForApps()
getLogAggregationStatusForApps in interface Contextpublic NodeStatusUpdater getNodeStatusUpdater()
getNodeStatusUpdater in interface Contextpublic void setNodeStatusUpdater(NodeStatusUpdater nodeStatusUpdater)
public boolean isDistributedSchedulingEnabled()
isDistributedSchedulingEnabled in interface Contextpublic void setQueueableContainerAllocator(org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerAllocator containerAllocator)
public org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerAllocator getContainerAllocator()
getContainerAllocator in interface Contextpublic java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.server.api.records.AppCollectorData> getRegisteringCollectors()
ContextgetRegisteringCollectors in interface Contextpublic java.util.concurrent.ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.server.api.records.AppCollectorData> getKnownCollectors()
ContextgetKnownCollectors in interface Contextpublic void setNMTimelinePublisher(NMTimelinePublisher nmMetricsPublisher)
setNMTimelinePublisher in interface Contextpublic NMTimelinePublisher getNMTimelinePublisher()
getNMTimelinePublisher in interface Contextpublic ContainerExecutor getContainerExecutor()
getContainerExecutor in interface Contextpublic void setContainerExecutor(ContainerExecutor executor)
public ContainerStateTransitionListener getContainerStateTransitionListener()
getContainerStateTransitionListener in interface Contextpublic void setContainerStateTransitionListener(ContainerStateTransitionListener transitionListener)
public ResourcePluginManager getResourcePluginManager()
getResourcePluginManager in interface Contextpublic NodeManagerMetrics getNodeManagerMetrics()
NodeManagerMetrics instance of this node.
This might return a null if the instance was not set to the context.getNodeManagerMetrics in interface Contextpublic void setNodeManagerMetrics(NodeManagerMetrics nmMetrics)
public void setResourcePluginManager(ResourcePluginManager resourcePluginManager)
public DeletionService getDeletionService()
DeletionService.getDeletionService in interface ContextDeletionService.public void setDeletionService(DeletionService deletionService)
DeletionService.deletionService - the DeletionService to add to the Context.public void setNMLogAggregationStatusTracker(NMLogAggregationStatusTracker nmLogAggregationStatusTracker)
public NMLogAggregationStatusTracker getNMLogAggregationStatusTracker()
getNMLogAggregationStatusTracker in interface Contextpublic void setAuxServices(AuxServices auxServices)
setAuxServices in interface Contextpublic AuxServices getAuxServices()
getAuxServices in interface ContextCopyright © 2008–2025 Apache Software Foundation. All rights reserved.