@InterfaceAudience.Private @InterfaceStability.Unstable public class NodeReportPBImpl extends NodeReport
Constructor and Description |
---|
NodeReportPBImpl() |
NodeReportPBImpl(YarnProtos.NodeReportProto proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Resource |
getCapability()
Get the total
Resource on the node. |
String |
getHealthReport()
Get the diagnostic health report of the node.
|
String |
getHttpAddress()
Get the http address of the node.
|
long |
getLastHealthReportTime()
Get the last timestamp at which the health report was received.
|
NodeId |
getNodeId()
Get the
NodeId of the node. |
NodeState |
getNodeState()
Get the
NodeState of the node. |
int |
getNumContainers()
Get the number of allocated containers on the node.
|
YarnProtos.NodeReportProto |
getProto() |
String |
getRackName()
Get the rack name for the node.
|
Resource |
getUsed()
Get used
Resource on the node. |
int |
hashCode() |
void |
setCapability(Resource capability) |
void |
setHealthReport(String healthReport) |
void |
setHttpAddress(String httpAddress) |
void |
setLastHealthReportTime(long lastHealthReportTime) |
void |
setNodeId(NodeId nodeId) |
void |
setNodeState(NodeState nodeState) |
void |
setNumContainers(int numContainers) |
void |
setRackName(String rackName) |
void |
setUsed(Resource used) |
String |
toString() |
newInstance
public NodeReportPBImpl()
public NodeReportPBImpl(YarnProtos.NodeReportProto proto)
public Resource getCapability()
NodeReport
Resource
on the node.getCapability
in class NodeReport
Resource
on the nodepublic String getHealthReport()
NodeReport
getHealthReport
in class NodeReport
public void setHealthReport(String healthReport)
setHealthReport
in class NodeReport
public long getLastHealthReportTime()
NodeReport
getLastHealthReportTime
in class NodeReport
public void setLastHealthReportTime(long lastHealthReportTime)
setLastHealthReportTime
in class NodeReport
public String getHttpAddress()
NodeReport
getHttpAddress
in class NodeReport
public int getNumContainers()
NodeReport
getNumContainers
in class NodeReport
public String getRackName()
NodeReport
getRackName
in class NodeReport
public Resource getUsed()
NodeReport
Resource
on the node.getUsed
in class NodeReport
Resource
on the nodepublic NodeId getNodeId()
NodeReport
NodeId
of the node.getNodeId
in class NodeReport
NodeId
of the nodepublic void setNodeId(NodeId nodeId)
setNodeId
in class NodeReport
public NodeState getNodeState()
NodeReport
NodeState
of the node.getNodeState
in class NodeReport
NodeState
of the nodepublic void setNodeState(NodeState nodeState)
setNodeState
in class NodeReport
public void setCapability(Resource capability)
setCapability
in class NodeReport
public void setHttpAddress(String httpAddress)
setHttpAddress
in class NodeReport
public void setNumContainers(int numContainers)
setNumContainers
in class NodeReport
public void setRackName(String rackName)
setRackName
in class NodeReport
public void setUsed(Resource used)
setUsed
in class NodeReport
public YarnProtos.NodeReportProto getProto()
Copyright © 2013 Apache Software Foundation. All rights reserved.