Class RegisterNodeManagerRequestPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerRequest
org.apache.hadoop.yarn.server.api.protocolrecords.impl.pb.RegisterNodeManagerRequestPBImpl
-
Constructor Summary
ConstructorsConstructorDescriptionRegisterNodeManagerRequestPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintSet<org.apache.hadoop.yarn.api.records.NodeAttribute>org.apache.hadoop.yarn.api.records.NodeIdSet<org.apache.hadoop.yarn.api.records.NodeLabel>Get the status of the node.org.apache.hadoop.yarn.api.records.ResourceGet the physical resources in the node to properly estimate resource utilization.org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProtogetProto()org.apache.hadoop.yarn.api.records.ResourceList<org.apache.hadoop.yarn.api.records.ApplicationId>We introduce this here because currently YARN RM doesn't persist nodes info for application running.inthashCode()voidsetContainerStatuses(List<NMContainerStatus> containerReports) voidsetHttpPort(int httpPort) voidsetLogAggregationReportsForApps(List<LogAggregationReport> logAggregationStatusForApps) voidsetNMVersion(String version) voidsetNodeAttributes(Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes) voidsetNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId) voidsetNodeLabels(Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels) voidsetNodeStatus(NodeStatus pNodeStatus) Set the status of the node.voidsetPhysicalResource(org.apache.hadoop.yarn.api.records.Resource pPhysicalResource) Set the physical resources in the node to properly estimate resource utilization.voidsetResource(org.apache.hadoop.yarn.api.records.Resource resource) voidsetRunningApplications(List<org.apache.hadoop.yarn.api.records.ApplicationId> apps) Methods inherited from class org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerRequest
newInstance, newInstance, newInstance, newInstance
-
Constructor Details
-
RegisterNodeManagerRequestPBImpl
public RegisterNodeManagerRequestPBImpl() -
RegisterNodeManagerRequestPBImpl
public RegisterNodeManagerRequestPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto getProto() -
getResource
public org.apache.hadoop.yarn.api.records.Resource getResource()- Specified by:
getResourcein classRegisterNodeManagerRequest
-
setResource
public void setResource(org.apache.hadoop.yarn.api.records.Resource resource) - Specified by:
setResourcein classRegisterNodeManagerRequest
-
getNodeId
public org.apache.hadoop.yarn.api.records.NodeId getNodeId()- Specified by:
getNodeIdin classRegisterNodeManagerRequest
-
setNodeId
public void setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId) - Specified by:
setNodeIdin classRegisterNodeManagerRequest
-
getHttpPort
public int getHttpPort()- Specified by:
getHttpPortin classRegisterNodeManagerRequest
-
setHttpPort
public void setHttpPort(int httpPort) - Specified by:
setHttpPortin classRegisterNodeManagerRequest
-
getRunningApplications
Description copied from class:RegisterNodeManagerRequestWe introduce this here because currently YARN RM doesn't persist nodes info for application running. When RM restart happened, we cannot determinate if a node should do application cleanup (like log-aggregation, status update, etc.) or not.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
- Specified by:
getRunningApplicationsin classRegisterNodeManagerRequest- Returns:
- running application list in this node
-
setRunningApplications
Description copied from class:RegisterNodeManagerRequest- Specified by:
setRunningApplicationsin classRegisterNodeManagerRequest- Parameters:
apps- running application in this node
-
getNMContainerStatuses
- Specified by:
getNMContainerStatusesin classRegisterNodeManagerRequest
-
setContainerStatuses
- Specified by:
setContainerStatusesin classRegisterNodeManagerRequest
-
getPhysicalResource
public org.apache.hadoop.yarn.api.records.Resource getPhysicalResource()Description copied from class:RegisterNodeManagerRequestGet the physical resources in the node to properly estimate resource utilization.- Specified by:
getPhysicalResourcein classRegisterNodeManagerRequest- Returns:
- Physical resources in the node.
-
setPhysicalResource
public void setPhysicalResource(org.apache.hadoop.yarn.api.records.Resource pPhysicalResource) Description copied from class:RegisterNodeManagerRequestSet the physical resources in the node to properly estimate resource utilization.- Specified by:
setPhysicalResourcein classRegisterNodeManagerRequest- Parameters:
pPhysicalResource- Physical resources in the node.
-
getNodeStatus
Description copied from class:RegisterNodeManagerRequestGet the status of the node.- Specified by:
getNodeStatusin classRegisterNodeManagerRequest- Returns:
- The status of the node.
-
setNodeStatus
Description copied from class:RegisterNodeManagerRequestSet the status of the node.- Specified by:
setNodeStatusin classRegisterNodeManagerRequest- Parameters:
pNodeStatus- The status of the node.
-
hashCode
public int hashCode() -
equals
-
getNMVersion
- Specified by:
getNMVersionin classRegisterNodeManagerRequest
-
setNMVersion
- Specified by:
setNMVersionin classRegisterNodeManagerRequest
-
getNodeLabels
- Specified by:
getNodeLabelsin classRegisterNodeManagerRequest
-
setNodeLabels
- Specified by:
setNodeLabelsin classRegisterNodeManagerRequest
-
getNodeAttributes
- Specified by:
getNodeAttributesin classRegisterNodeManagerRequest
-
setNodeAttributes
- Specified by:
setNodeAttributesin classRegisterNodeManagerRequest
-
getLogAggregationReportsForApps
- Specified by:
getLogAggregationReportsForAppsin classRegisterNodeManagerRequest
-
setLogAggregationReportsForApps
- Specified by:
setLogAggregationReportsForAppsin classRegisterNodeManagerRequest
-