@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() |
newInstancepublic NodeReportPBImpl()
public NodeReportPBImpl(YarnProtos.NodeReportProto proto)
public Resource getCapability()
NodeReportResource on the node.getCapability in class NodeReportResource on the nodepublic String getHealthReport()
NodeReportgetHealthReport in class NodeReportpublic void setHealthReport(String healthReport)
setHealthReport in class NodeReportpublic long getLastHealthReportTime()
NodeReportgetLastHealthReportTime in class NodeReportpublic void setLastHealthReportTime(long lastHealthReportTime)
setLastHealthReportTime in class NodeReportpublic String getHttpAddress()
NodeReportgetHttpAddress in class NodeReportpublic int getNumContainers()
NodeReportgetNumContainers in class NodeReportpublic String getRackName()
NodeReportgetRackName in class NodeReportpublic Resource getUsed()
NodeReportResource on the node.getUsed in class NodeReportResource on the nodepublic NodeId getNodeId()
NodeReportNodeId of the node.getNodeId in class NodeReportNodeId of the nodepublic void setNodeId(NodeId nodeId)
setNodeId in class NodeReportpublic NodeState getNodeState()
NodeReportNodeState of the node.getNodeState in class NodeReportNodeState of the nodepublic void setNodeState(NodeState nodeState)
setNodeState in class NodeReportpublic void setCapability(Resource capability)
setCapability in class NodeReportpublic void setHttpAddress(String httpAddress)
setHttpAddress in class NodeReportpublic void setNumContainers(int numContainers)
setNumContainers in class NodeReportpublic void setRackName(String rackName)
setRackName in class NodeReportpublic void setUsed(Resource used)
setUsed in class NodeReportpublic YarnProtos.NodeReportProto getProto()
Copyright © 2013 Apache Software Foundation. All rights reserved.