public abstract class RegisterNodeManagerRequest extends Object
Constructor and Description |
---|
RegisterNodeManagerRequest() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getHttpPort() |
abstract List<LogAggregationReport> |
getLogAggregationReportsForApps() |
abstract List<NMContainerStatus> |
getNMContainerStatuses() |
abstract String |
getNMVersion() |
abstract Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
getNodeAttributes() |
abstract org.apache.hadoop.yarn.api.records.NodeId |
getNodeId() |
abstract 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 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,
String nodeManagerVersionId,
List<NMContainerStatus> containerStatuses,
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,
String nodeManagerVersionId,
List<NMContainerStatus> containerStatuses,
List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications,
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,
String nodeManagerVersionId,
List<NMContainerStatus> containerStatuses,
List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications,
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,
String nodeManagerVersionId,
List<NMContainerStatus> containerStatuses,
List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications,
Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels,
org.apache.hadoop.yarn.api.records.Resource physicalResource,
Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes,
NodeStatus nodeStatus) |
abstract void |
setContainerStatuses(List<NMContainerStatus> containerStatuses) |
abstract void |
setHttpPort(int port) |
abstract void |
setLogAggregationReportsForApps(List<LogAggregationReport> logAggregationReportsForApps) |
abstract void |
setNMVersion(String version) |
abstract void |
setNodeAttributes(Set<org.apache.hadoop.yarn.api.records.NodeAttribute> nodeAttributes) |
abstract void |
setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId) |
abstract void |
setNodeLabels(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(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, String nodeManagerVersionId, List<NMContainerStatus> containerStatuses, 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, String nodeManagerVersionId, List<NMContainerStatus> containerStatuses, List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications, 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, String nodeManagerVersionId, List<NMContainerStatus> containerStatuses, List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications, 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, String nodeManagerVersionId, List<NMContainerStatus> containerStatuses, List<org.apache.hadoop.yarn.api.records.ApplicationId> runningApplications, Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels, org.apache.hadoop.yarn.api.records.Resource physicalResource, 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 String getNMVersion()
public abstract List<NMContainerStatus> getNMContainerStatuses()
public abstract Set<org.apache.hadoop.yarn.api.records.NodeLabel> getNodeLabels()
public abstract void setNodeLabels(Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels)
public abstract 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(String version)
public abstract void setContainerStatuses(List<NMContainerStatus> containerStatuses)
public abstract void setRunningApplications(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 List<LogAggregationReport> getLogAggregationReportsForApps()
public abstract void setLogAggregationReportsForApps(List<LogAggregationReport> logAggregationReportsForApps)
public abstract Set<org.apache.hadoop.yarn.api.records.NodeAttribute> getNodeAttributes()
public abstract void setNodeAttributes(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–2022 Apache Software Foundation. All rights reserved.