Interface Context
- All Known Implementing Classes:
NodeManager.NMContext
public interface Context
Context interface for sharing information across components in the
NodeManager.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.server.security.ApplicationACLsManagerConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,Application> org.apache.hadoop.conf.ConfigurationgetConf()org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerAllocatorConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,Container> booleanGet theDeletionServiceassociated with the NM.intReturn the node http-address.ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.Container> ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.server.api.records.AppCollectorData> Get the list of collectors registered with the RM and known by this node.ConcurrentLinkedQueue<org.apache.hadoop.yarn.server.api.protocolrecords.LogAggregationReport>org.apache.hadoop.yarn.server.api.records.NodeHealthStatusorg.apache.hadoop.yarn.api.records.NodeIdReturn the nodeId.ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.server.api.records.AppCollectorData> Get the list of collectors that are registering with the RM from this node.Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.security.Credentials> booleanvoidsetAuxServices(AuxServices auxServices) voidsetDecommissioned(boolean isDecommissioned) voidsetNMTimelinePublisher(NMTimelinePublisher nmMetricsPublisher)
-
Method Details
-
getNodeId
org.apache.hadoop.yarn.api.records.NodeId getNodeId()Return the nodeId. Usable only when the ContainerManager is started.- Returns:
- the NodeId
-
getHttpPort
int getHttpPort()Return the node http-address. Usable only after the Webserver is started.- Returns:
- the http-port
-
getApplications
ConcurrentMap<org.apache.hadoop.yarn.api.records.ApplicationId,Application> getApplications() -
getSystemCredentialsForApps
Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.security.Credentials> getSystemCredentialsForApps() -
getRegisteringCollectors
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.- Returns:
- registering collectors, or null if the timeline service v.2 is not enabled
-
getKnownCollectors
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.- Returns:
- known collectors, or null if the timeline service v.2 is not enabled.
-
getContainers
ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,Container> getContainers() -
getIncreasedContainers
ConcurrentMap<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.Container> getIncreasedContainers() -
getContainerTokenSecretManager
NMContainerTokenSecretManager getContainerTokenSecretManager() -
getNMTokenSecretManager
NMTokenSecretManagerInNM getNMTokenSecretManager() -
getNodeHealthStatus
org.apache.hadoop.yarn.server.api.records.NodeHealthStatus getNodeHealthStatus() -
getContainerManager
ContainerManager getContainerManager() -
getNodeResourceMonitor
NodeResourceMonitor getNodeResourceMonitor() -
getLocalDirsHandler
LocalDirsHandlerService getLocalDirsHandler() -
getApplicationACLsManager
org.apache.hadoop.yarn.server.security.ApplicationACLsManager getApplicationACLsManager() -
getNMStateStore
NMStateStoreService getNMStateStore() -
getDecommissioned
boolean getDecommissioned() -
getConf
org.apache.hadoop.conf.Configuration getConf() -
setDecommissioned
void setDecommissioned(boolean isDecommissioned) -
getLogAggregationStatusForApps
ConcurrentLinkedQueue<org.apache.hadoop.yarn.server.api.protocolrecords.LogAggregationReport> getLogAggregationStatusForApps() -
getNodeStatusUpdater
NodeStatusUpdater getNodeStatusUpdater() -
isDistributedSchedulingEnabled
boolean isDistributedSchedulingEnabled() -
getContainerAllocator
org.apache.hadoop.yarn.server.scheduler.OpportunisticContainerAllocator getContainerAllocator() -
setNMTimelinePublisher
-
getNMTimelinePublisher
NMTimelinePublisher getNMTimelinePublisher() -
getNMLogAggregationStatusTracker
NMLogAggregationStatusTracker getNMLogAggregationStatusTracker() -
getContainerExecutor
ContainerExecutor getContainerExecutor() -
getContainerStateTransitionListener
ContainerStateTransitionListener getContainerStateTransitionListener() -
getResourcePluginManager
ResourcePluginManager getResourcePluginManager() -
getNodeManagerMetrics
NodeManagerMetrics getNodeManagerMetrics() -
getDeletionService
DeletionService getDeletionService()Get theDeletionServiceassociated with the NM.- Returns:
- the NM
DeletionService.
-
setAuxServices
-
getAuxServices
AuxServices getAuxServices()
-