public class RegisterNodeManagerRequestPBImpl extends RegisterNodeManagerRequest
Constructor and Description |
---|
RegisterNodeManagerRequestPBImpl() |
RegisterNodeManagerRequestPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
getHttpPort() |
List<LogAggregationReport> |
getLogAggregationReportsForApps() |
List<NMContainerStatus> |
getNMContainerStatuses() |
String |
getNMVersion() |
Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
getNodeAttributes() |
org.apache.hadoop.yarn.api.records.NodeId |
getNodeId() |
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() |
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(List<NMContainerStatus> containerReports) |
void |
setHttpPort(int httpPort) |
void |
setLogAggregationReportsForApps(List<LogAggregationReport> logAggregationStatusForApps) |
void |
setNMVersion(String version) |
void |
setNodeAttributes(Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes) |
void |
setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId) |
void |
setNodeLabels(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(List<org.apache.hadoop.yarn.api.records.ApplicationId> apps)
|
newInstance, newInstance, newInstance, newInstance
public 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 RegisterNodeManagerRequest
public void setResource(org.apache.hadoop.yarn.api.records.Resource resource)
setResource
in class RegisterNodeManagerRequest
public org.apache.hadoop.yarn.api.records.NodeId getNodeId()
getNodeId
in class RegisterNodeManagerRequest
public void setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId)
setNodeId
in class RegisterNodeManagerRequest
public int getHttpPort()
getHttpPort
in class RegisterNodeManagerRequest
public void setHttpPort(int httpPort)
setHttpPort
in class RegisterNodeManagerRequest
public List<org.apache.hadoop.yarn.api.records.ApplicationId> getRunningApplications()
RegisterNodeManagerRequest
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
getRunningApplications
in class RegisterNodeManagerRequest
public void setRunningApplications(List<org.apache.hadoop.yarn.api.records.ApplicationId> apps)
RegisterNodeManagerRequest
setRunningApplications
in class RegisterNodeManagerRequest
apps
- running application in this nodepublic List<NMContainerStatus> getNMContainerStatuses()
getNMContainerStatuses
in class RegisterNodeManagerRequest
public void setContainerStatuses(List<NMContainerStatus> containerReports)
setContainerStatuses
in class RegisterNodeManagerRequest
public org.apache.hadoop.yarn.api.records.Resource getPhysicalResource()
RegisterNodeManagerRequest
getPhysicalResource
in class RegisterNodeManagerRequest
public void setPhysicalResource(org.apache.hadoop.yarn.api.records.Resource pPhysicalResource)
RegisterNodeManagerRequest
setPhysicalResource
in class RegisterNodeManagerRequest
pPhysicalResource
- Physical resources in the node.public NodeStatus getNodeStatus()
RegisterNodeManagerRequest
getNodeStatus
in class RegisterNodeManagerRequest
public void setNodeStatus(NodeStatus pNodeStatus)
RegisterNodeManagerRequest
setNodeStatus
in class RegisterNodeManagerRequest
pNodeStatus
- The status of the node.public String getNMVersion()
getNMVersion
in class RegisterNodeManagerRequest
public void setNMVersion(String version)
setNMVersion
in class RegisterNodeManagerRequest
public Set<org.apache.hadoop.yarn.api.records.NodeLabel> getNodeLabels()
getNodeLabels
in class RegisterNodeManagerRequest
public void setNodeLabels(Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels)
setNodeLabels
in class RegisterNodeManagerRequest
public Set<org.apache.hadoop.yarn.api.records.NodeAttribute> getNodeAttributes()
getNodeAttributes
in class RegisterNodeManagerRequest
public void setNodeAttributes(Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes)
setNodeAttributes
in class RegisterNodeManagerRequest
public List<LogAggregationReport> getLogAggregationReportsForApps()
getLogAggregationReportsForApps
in class RegisterNodeManagerRequest
public void setLogAggregationReportsForApps(List<LogAggregationReport> logAggregationStatusForApps)
setLogAggregationReportsForApps
in class RegisterNodeManagerRequest
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.