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