@Public
@Stable
public abstract class NodeReport
extends java.lang.Object
NodeReport is a summary of runtime information of a node
in the cluster.
It includes details such as:
| Constructor | Description |
|---|---|
NodeReport() |
| Modifier and Type | Method | Description |
|---|---|---|
ResourceUtilization |
getAggregatedContainersUtilization() |
Get containers aggregated resource utilization in a node.
|
abstract Resource |
getCapability() |
Get the total
Resource on the node. |
java.lang.Integer |
getDecommissioningTimeout() |
Optional decommissioning timeout in seconds (null indicates absent
timeout).
|
abstract java.lang.String |
getHealthReport() |
Get the diagnostic health report of the node.
|
abstract java.lang.String |
getHttpAddress() |
Get the http address of the node.
|
abstract long |
getLastHealthReportTime() |
Get the last timestamp at which the health report was received.
|
abstract java.util.Set<NodeAttribute> |
getNodeAttributes() |
Get node attributes of node.
|
abstract NodeId |
getNodeId() |
Get the
NodeId of the node. |
abstract java.util.Set<java.lang.String> |
getNodeLabels() |
Get labels of this node.
|
abstract NodeState |
getNodeState() |
Get the
NodeState of the node. |
NodeUpdateType |
getNodeUpdateType() |
Optional node update type (null indicates absent update type).
|
abstract ResourceUtilization |
getNodeUtilization() |
Get node resource utilization.
|
abstract int |
getNumContainers() |
Get the number of allocated containers on the node.
|
abstract java.lang.String |
getRackName() |
Get the rack name for the node.
|
abstract Resource |
getUsed() |
Get used
Resource on the node. |
static NodeReport |
newInstance(NodeId nodeId,
NodeState nodeState,
java.lang.String httpAddress,
java.lang.String rackName,
Resource used,
Resource capability,
int numContainers,
java.lang.String healthReport,
long lastHealthReportTime) |
|
static NodeReport |
newInstance(NodeId nodeId,
NodeState nodeState,
java.lang.String httpAddress,
java.lang.String rackName,
Resource used,
Resource capability,
int numContainers,
java.lang.String healthReport,
long lastHealthReportTime,
java.util.Set<java.lang.String> nodeLabels,
java.lang.Integer decommissioningTimeout,
NodeUpdateType nodeUpdateType) |
|
void |
setAggregatedContainersUtilization(ResourceUtilization containersUtilization) |
|
abstract void |
setCapability(Resource capability) |
|
void |
setDecommissioningTimeout(java.lang.Integer decommissioningTimeout) |
Set the decommissioning timeout in seconds (null indicates absent timeout).
|
abstract void |
setHealthReport(java.lang.String healthReport) |
|
abstract void |
setHttpAddress(java.lang.String httpAddress) |
|
abstract void |
setLastHealthReportTime(long lastHealthReport) |
|
abstract void |
setNodeAttributes(java.util.Set<NodeAttribute> nodeAttributes) |
Set the node attributes of node.
|
abstract void |
setNodeId(NodeId nodeId) |
|
abstract void |
setNodeLabels(java.util.Set<java.lang.String> nodeLabels) |
|
abstract void |
setNodeState(NodeState nodeState) |
|
void |
setNodeUpdateType(NodeUpdateType nodeUpdateType) |
Set the node update type (null indicates absent node update type).
|
abstract void |
setNodeUtilization(ResourceUtilization nodeUtilization) |
|
abstract void |
setNumContainers(int numContainers) |
|
abstract void |
setRackName(java.lang.String rackName) |
|
abstract void |
setUsed(Resource used) |
@Private @Unstable public static NodeReport newInstance(NodeId nodeId, NodeState nodeState, java.lang.String httpAddress, java.lang.String rackName, Resource used, Resource capability, int numContainers, java.lang.String healthReport, long lastHealthReportTime)
@Private @Unstable public static NodeReport newInstance(NodeId nodeId, NodeState nodeState, java.lang.String httpAddress, java.lang.String rackName, Resource used, Resource capability, int numContainers, java.lang.String healthReport, long lastHealthReportTime, java.util.Set<java.lang.String> nodeLabels, java.lang.Integer decommissioningTimeout, NodeUpdateType nodeUpdateType)
@Public @Stable public abstract NodeId getNodeId()
NodeId of the node.NodeId of the node@Private @Unstable public abstract void setNodeId(NodeId nodeId)
@Public @Stable public abstract NodeState getNodeState()
NodeState of the node.NodeState of the node@Private @Unstable public abstract void setNodeState(NodeState nodeState)
@Public @Stable public abstract java.lang.String getHttpAddress()
@Private @Unstable public abstract void setHttpAddress(java.lang.String httpAddress)
@Public @Stable public abstract java.lang.String getRackName()
@Private @Unstable public abstract void setRackName(java.lang.String rackName)
@Public @Stable public abstract Resource getUsed()
Resource on the node.Resource on the node@Private @Unstable public abstract void setUsed(Resource used)
@Public @Stable public abstract Resource getCapability()
Resource on the node.Resource on the node@Private @Unstable public abstract void setCapability(Resource capability)
@Private @Unstable public abstract int getNumContainers()
@Private @Unstable public abstract void setNumContainers(int numContainers)
@Public @Stable public abstract java.lang.String getHealthReport()
@Private @Unstable public abstract void setHealthReport(java.lang.String healthReport)
@Public @Stable public abstract long getLastHealthReportTime()
@Private @Unstable public abstract void setLastHealthReportTime(long lastHealthReport)
@Public @Stable public abstract java.util.Set<java.lang.String> getNodeLabels()
@Private @Unstable public abstract void setNodeLabels(java.util.Set<java.lang.String> nodeLabels)
@Public @Stable public ResourceUtilization getAggregatedContainersUtilization()
@Private @Unstable public void setAggregatedContainersUtilization(ResourceUtilization containersUtilization)
@Public @Stable public abstract ResourceUtilization getNodeUtilization()
@Private @Unstable public abstract void setNodeUtilization(ResourceUtilization nodeUtilization)
public java.lang.Integer getDecommissioningTimeout()
public void setDecommissioningTimeout(java.lang.Integer decommissioningTimeout)
decommissioningTimeout - decommissioning time out.public NodeUpdateType getNodeUpdateType()
public void setNodeUpdateType(NodeUpdateType nodeUpdateType)
nodeUpdateType - node update type.public abstract void setNodeAttributes(java.util.Set<NodeAttribute> nodeAttributes)
nodeAttributes - set of node attributes.public abstract java.util.Set<NodeAttribute> getNodeAttributes()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.