Class RemoteNodePBImpl
java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.RemoteNode
org.apache.hadoop.yarn.server.api.protocolrecords.impl.pb.RemoteNodePBImpl
- All Implemented Interfaces:
Comparable<RemoteNode>
Implementation of
RemoteNode.-
Constructor Summary
ConstructorsConstructorDescriptionRemoteNodePBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet HTTP address.org.apache.hadoop.yarn.api.records.NodeIdGetNodeId.Get Node Partition.org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtogetProto()Get Rack Name.inthashCode()voidsetHttpAddress(String httpAddress) Set HTTP address.voidsetNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId) SetNodeId.voidsetNodePartition(String nodePartition) Set Node Partition.voidsetRackName(String rackName) Set Rack Name.Methods inherited from class org.apache.hadoop.yarn.server.api.protocolrecords.RemoteNode
compareTo, newInstance, newInstance, newInstance, toString
-
Constructor Details
-
RemoteNodePBImpl
public RemoteNodePBImpl() -
RemoteNodePBImpl
public RemoteNodePBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto getProto() -
getNodeId
public org.apache.hadoop.yarn.api.records.NodeId getNodeId()Description copied from class:RemoteNodeGetNodeId.- Specified by:
getNodeIdin classRemoteNode- Returns:
- NodeId.
-
setNodeId
public void setNodeId(org.apache.hadoop.yarn.api.records.NodeId nodeId) Description copied from class:RemoteNodeSetNodeId.- Specified by:
setNodeIdin classRemoteNode- Parameters:
nodeId- NodeId.
-
getHttpAddress
Description copied from class:RemoteNodeGet HTTP address.- Specified by:
getHttpAddressin classRemoteNode- Returns:
- Http Address.
-
setHttpAddress
Description copied from class:RemoteNodeSet HTTP address.- Specified by:
setHttpAddressin classRemoteNode- Parameters:
httpAddress- HTTP address.
-
getRackName
Description copied from class:RemoteNodeGet Rack Name.- Specified by:
getRackNamein classRemoteNode- Returns:
- Rack Name.
-
setRackName
Description copied from class:RemoteNodeSet Rack Name.- Specified by:
setRackNamein classRemoteNode- Parameters:
rackName- Rack Name.
-
getNodePartition
Description copied from class:RemoteNodeGet Node Partition.- Specified by:
getNodePartitionin classRemoteNode- Returns:
- Node Partition.
-
setNodePartition
Description copied from class:RemoteNodeSet Node Partition.- Specified by:
setNodePartitionin classRemoteNode- Parameters:
nodePartition- node Partition.
-
hashCode
public int hashCode() -
equals
-