public class RegisterNodeManagerRequestPBImpl extends RegisterNodeManagerRequest
| Constructor | Description |
|---|---|
RegisterNodeManagerRequestPBImpl() |
|
RegisterNodeManagerRequestPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto proto) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
int |
getHttpPort() |
|
java.util.List<LogAggregationReport> |
getLogAggregationReportsForApps() |
|
java.util.List<NMContainerStatus> |
getNMContainerStatuses() |
|
java.lang.String |
getNMVersion() |
|
java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
getNodeAttributes() |
|
org.apache.hadoop.yarn.api.records.NodeId |
getNodeId() |
|
java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> |
getNodeLabels() |
|
NodeStatus |
getNodeStatus() |
Get the status of the node.
|
org.apache.hadoop.yarn.api.records.Resource |
getPhysicalResource() |
Get the physical resources in the node to properly estimate resource
utilization.
|
org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto |
getProto() |
|
org.apache.hadoop.yarn.api.records.Resource |
getResource() |
|
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.
|
int |
hashCode() |
|
void |
setContainerStatuses(java.util.List<NMContainerStatus> containerReports) |
|
void |
setHttpPort(int httpPort) |
|
void |
setLogAggregationReportsForApps(java.util.List<LogAggregationReport> logAggregationStatusForApps) |
|
void |
setNMVersion(java.lang.String version) |
|
void |
setNodeAttributes(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes) |
|
void |
setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId) |
|
void |
setNodeLabels(java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels) |
|
void |
setNodeStatus(NodeStatus pNodeStatus) |
Set the status of the node.
|
void |
setPhysicalResource(org.apache.hadoop.yarn.api.records.Resource pPhysicalResource) |
Set the physical resources in the node to properly estimate resource
utilization.
|
void |
setResource(org.apache.hadoop.yarn.api.records.Resource resource) |
|
void |
setRunningApplications(java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> apps) |
newInstance, newInstance, newInstance, newInstancepublic RegisterNodeManagerRequestPBImpl()
public RegisterNodeManagerRequestPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto proto)
public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto getProto()
public org.apache.hadoop.yarn.api.records.Resource getResource()
getResource in class RegisterNodeManagerRequestpublic void setResource(org.apache.hadoop.yarn.api.records.Resource resource)
setResource in class RegisterNodeManagerRequestpublic org.apache.hadoop.yarn.api.records.NodeId getNodeId()
getNodeId in class RegisterNodeManagerRequestpublic void setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId)
setNodeId in class RegisterNodeManagerRequestpublic int getHttpPort()
getHttpPort in class RegisterNodeManagerRequestpublic void setHttpPort(int httpPort)
setHttpPort in class RegisterNodeManagerRequestpublic java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> getRunningApplications()
RegisterNodeManagerRequestWhen 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
getRunningApplications in class RegisterNodeManagerRequestpublic void setRunningApplications(java.util.List<org.apache.hadoop.yarn.api.records.ApplicationId> apps)
RegisterNodeManagerRequestsetRunningApplications in class RegisterNodeManagerRequestapps - running application in this nodepublic java.util.List<NMContainerStatus> getNMContainerStatuses()
getNMContainerStatuses in class RegisterNodeManagerRequestpublic void setContainerStatuses(java.util.List<NMContainerStatus> containerReports)
setContainerStatuses in class RegisterNodeManagerRequestpublic org.apache.hadoop.yarn.api.records.Resource getPhysicalResource()
RegisterNodeManagerRequestgetPhysicalResource in class RegisterNodeManagerRequestpublic void setPhysicalResource(org.apache.hadoop.yarn.api.records.Resource pPhysicalResource)
RegisterNodeManagerRequestsetPhysicalResource in class RegisterNodeManagerRequestpPhysicalResource - Physical resources in the node.public NodeStatus getNodeStatus()
RegisterNodeManagerRequestgetNodeStatus in class RegisterNodeManagerRequestpublic void setNodeStatus(NodeStatus pNodeStatus)
RegisterNodeManagerRequestsetNodeStatus in class RegisterNodeManagerRequestpNodeStatus - The status of the node.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String getNMVersion()
getNMVersion in class RegisterNodeManagerRequestpublic void setNMVersion(java.lang.String version)
setNMVersion in class RegisterNodeManagerRequestpublic java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> getNodeLabels()
getNodeLabels in class RegisterNodeManagerRequestpublic void setNodeLabels(java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels)
setNodeLabels in class RegisterNodeManagerRequestpublic java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> getNodeAttributes()
getNodeAttributes in class RegisterNodeManagerRequestpublic void setNodeAttributes(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes)
setNodeAttributes in class RegisterNodeManagerRequestpublic java.util.List<LogAggregationReport> getLogAggregationReportsForApps()
getLogAggregationReportsForApps in class RegisterNodeManagerRequestpublic void setLogAggregationReportsForApps(java.util.List<LogAggregationReport> logAggregationStatusForApps)
setLogAggregationReportsForApps in class RegisterNodeManagerRequestCopyright © 2008–2025 Apache Software Foundation. All rights reserved.