org.apache.hadoop.yarn.api.records.impl.pb
Class NodeReportPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.NodeReportProto>
      extended by org.apache.hadoop.yarn.api.records.impl.pb.NodeReportPBImpl
All Implemented Interfaces:
NodeReport

public class NodeReportPBImpl
extends ProtoBase<YarnProtos.NodeReportProto>
implements NodeReport


Constructor Summary
NodeReportPBImpl()
           
NodeReportPBImpl(YarnProtos.NodeReportProto proto)
           
 
Method Summary
 Resource getCapability()
          Get the total Resource on the node.
 String getHttpAddress()
          Get the http address of the node.
 NodeHealthStatus getNodeHealthStatus()
          Get the NodeHealthStatus of the node.
 NodeId getNodeId()
          Get the NodeId of the node.
 int getNumContainers()
          Get the number of running containers on the node.
 YarnProtos.NodeReportProto getProto()
           
 String getRackName()
          Get the rack name for the node.
 Resource getUsed()
          Get used Resource on the node.
 void setCapability(Resource capability)
           
 void setHttpAddress(String httpAddress)
           
 void setNodeHealthStatus(NodeHealthStatus healthStatus)
           
 void setNodeId(NodeId nodeId)
           
 void setNumContainers(int numContainers)
           
 void setRackName(String rackName)
           
 void setUsed(Resource used)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeReportPBImpl

public NodeReportPBImpl()

NodeReportPBImpl

public NodeReportPBImpl(YarnProtos.NodeReportProto proto)
Method Detail

getCapability

public Resource getCapability()
Description copied from interface: NodeReport
Get the total Resource on the node.

Specified by:
getCapability in interface NodeReport
Returns:
total Resource on the node

getNodeHealthStatus

public NodeHealthStatus getNodeHealthStatus()
Description copied from interface: NodeReport
Get the NodeHealthStatus of the node.

Specified by:
getNodeHealthStatus in interface NodeReport
Returns:
NodeHealthStatus of the node

getHttpAddress

public String getHttpAddress()
Description copied from interface: NodeReport
Get the http address of the node.

Specified by:
getHttpAddress in interface NodeReport
Returns:
http address of the node

getNumContainers

public int getNumContainers()
Description copied from interface: NodeReport
Get the number of running containers on the node.

Specified by:
getNumContainers in interface NodeReport
Returns:
number of running containers on the node

getRackName

public String getRackName()
Description copied from interface: NodeReport
Get the rack name for the node.

Specified by:
getRackName in interface NodeReport
Returns:
rack name for the node

getUsed

public Resource getUsed()
Description copied from interface: NodeReport
Get used Resource on the node.

Specified by:
getUsed in interface NodeReport
Returns:
used Resource on the node

getNodeId

public NodeId getNodeId()
Description copied from interface: NodeReport
Get the NodeId of the node.

Specified by:
getNodeId in interface NodeReport
Returns:
NodeId of the node

setNodeId

public void setNodeId(NodeId nodeId)
Specified by:
setNodeId in interface NodeReport

setCapability

public void setCapability(Resource capability)
Specified by:
setCapability in interface NodeReport

setNodeHealthStatus

public void setNodeHealthStatus(NodeHealthStatus healthStatus)
Specified by:
setNodeHealthStatus in interface NodeReport

setHttpAddress

public void setHttpAddress(String httpAddress)
Specified by:
setHttpAddress in interface NodeReport

setNumContainers

public void setNumContainers(int numContainers)
Specified by:
setNumContainers in interface NodeReport

setRackName

public void setRackName(String rackName)
Specified by:
setRackName in interface NodeReport

setUsed

public void setUsed(Resource used)
Specified by:
setUsed in interface NodeReport

getProto

public YarnProtos.NodeReportProto getProto()
Specified by:
getProto in class ProtoBase<YarnProtos.NodeReportProto>


Copyright © 2012 Apache Software Foundation. All Rights Reserved.