RegisterNodeManagerRequestPBImplpublic abstract class RegisterNodeManagerRequest
extends java.lang.Object
| Constructor | Description |
|---|---|
RegisterNodeManagerRequest() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract int |
getHttpPort() |
|
abstract java.util.List<LogAggregationReport> |
getLogAggregationReportsForApps() |
|
abstract java.util.List<NMContainerStatus> |
getNMContainerStatuses() |
|
abstract java.lang.String |
getNMVersion() |
|
abstract java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
getNodeAttributes() |
|
abstract org.apache.hadoop.yarn.api.records.NodeId |
getNodeId() |
|
abstract java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> |
getNodeLabels() |
|
abstract NodeStatus |
getNodeStatus() |
Get the status of the node.
|
abstract org.apache.hadoop.yarn.api.records.Resource |
getPhysicalResource() |
Get the physical resources in the node to properly estimate resource
utilization.
|
abstract org.apache.hadoop.yarn.api.records.Resource |
getResource() |
|
abstract java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> |
getRunningApplications() |
We introduce this here because currently YARN RM doesn't persist nodes info
for application running.
|
static RegisterNodeManagerRequest |
newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int httpPort,
org.apache.hadoop.yarn.api.records.Resource resource,
java.lang.String nodeManagerVersionId,
java.util.List<NMContainerStatus> containerStatuses,
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications) |
|
static RegisterNodeManagerRequest |
newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int httpPort,
org.apache.hadoop.yarn.api.records.Resource resource,
java.lang.String nodeManagerVersionId,
java.util.List<NMContainerStatus> containerStatuses,
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications,
java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels) |
|
static RegisterNodeManagerRequest |
newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int httpPort,
org.apache.hadoop.yarn.api.records.Resource resource,
java.lang.String nodeManagerVersionId,
java.util.List<NMContainerStatus> containerStatuses,
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications,
java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels,
org.apache.hadoop.yarn.api.records.Resource physicalResource) |
|
static RegisterNodeManagerRequest |
newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId,
int httpPort,
org.apache.hadoop.yarn.api.records.Resource resource,
java.lang.String nodeManagerVersionId,
java.util.List<NMContainerStatus> containerStatuses,
java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications,
java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels,
org.apache.hadoop.yarn.api.records.Resource physicalResource,
java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes,
NodeStatus nodeStatus) |
|
abstract void |
setContainerStatuses(java.util.List<NMContainerStatus> containerStatuses) |
|
abstract void |
setHttpPort(int port) |
|
abstract void |
setLogAggregationReportsForApps(java.util.List<LogAggregationReport> logAggregationReportsForApps) |
|
abstract void |
setNMVersion(java.lang.String version) |
|
abstract void |
setNodeAttributes(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes) |
|
abstract void |
setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId) |
|
abstract void |
setNodeLabels(java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels) |
|
abstract void |
setNodeStatus(NodeStatus nodeStatus) |
Set the status of the node.
|
abstract void |
setPhysicalResource(org.apache.hadoop.yarn.api.records.Resource physicalResource) |
Set the physical resources in the node to properly estimate resource
utilization.
|
abstract void |
setResource(org.apache.hadoop.yarn.api.records.Resource resource) |
|
abstract void |
setRunningApplications(java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications) |
Setter for
getRunningApplications() |
public static RegisterNodeManagerRequest newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId, int httpPort, org.apache.hadoop.yarn.api.records.Resource resource, java.lang.String nodeManagerVersionId, java.util.List<NMContainerStatus> containerStatuses, java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications)
public static RegisterNodeManagerRequest newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId, int httpPort, org.apache.hadoop.yarn.api.records.Resource resource, java.lang.String nodeManagerVersionId, java.util.List<NMContainerStatus> containerStatuses, java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications, java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels)
public static RegisterNodeManagerRequest newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId, int httpPort, org.apache.hadoop.yarn.api.records.Resource resource, java.lang.String nodeManagerVersionId, java.util.List<NMContainerStatus> containerStatuses, java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications, java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels, org.apache.hadoop.yarn.api.records.Resource physicalResource)
public static RegisterNodeManagerRequest newInstance(org.apache.hadoop.yarn.api.records.NodeId nodeId, int httpPort, org.apache.hadoop.yarn.api.records.Resource resource, java.lang.String nodeManagerVersionId, java.util.List<NMContainerStatus> containerStatuses, java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications, java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels, org.apache.hadoop.yarn.api.records.Resource physicalResource, java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes, NodeStatus nodeStatus)
public abstract org.apache.hadoop.yarn.api.records.NodeId getNodeId()
public abstract int getHttpPort()
public abstract org.apache.hadoop.yarn.api.records.Resource getResource()
public abstract java.lang.String getNMVersion()
public abstract java.util.List<NMContainerStatus> getNMContainerStatuses()
public abstract java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> getNodeLabels()
public abstract void setNodeLabels(java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels)
public abstract java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> getRunningApplications()
When we have this running application list in node manager register request, we can recover nodes info for running applications. And then we can take actions accordingly
public abstract void setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId)
public abstract void setHttpPort(int port)
public abstract void setResource(org.apache.hadoop.yarn.api.records.Resource resource)
public abstract void setNMVersion(java.lang.String version)
public abstract void setContainerStatuses(java.util.List<NMContainerStatus> containerStatuses)
public abstract void setRunningApplications(java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications)
getRunningApplications()runningApplications - running application in this nodepublic abstract org.apache.hadoop.yarn.api.records.Resource getPhysicalResource()
public abstract void setPhysicalResource(org.apache.hadoop.yarn.api.records.Resource physicalResource)
physicalResource - Physical resources in the node.public abstract java.util.List<LogAggregationReport> getLogAggregationReportsForApps()
public abstract void setLogAggregationReportsForApps(java.util.List<LogAggregationReport> logAggregationReportsForApps)
public abstract java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> getNodeAttributes()
public abstract void setNodeAttributes(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes)
public abstract NodeStatus getNodeStatus()
public abstract void setNodeStatus(NodeStatus nodeStatus)
nodeStatus - The status of the node.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.