Uses of Interface
org.apache.hadoop.net.Node

Packages that use Node
org.apache.hadoop.dfs A distributed implementation of FileSystem
org.apache.hadoop.net Network-related classes. 
 

Uses of Node in org.apache.hadoop.dfs
 

Classes in org.apache.hadoop.dfs that implement Node
 class DatanodeDescriptor
          DatanodeDescriptor tracks stats on a given DataNode, such as available storage capacity, last update time, etc., and maintains a set of blocks stored on the datanode.
 class DatanodeInfo
          DatanodeInfo represents the status of a DataNode.
 

Methods in org.apache.hadoop.dfs that return Node
 Node DatanodeInfo.getParent()
          Return this node's parent
 

Methods in org.apache.hadoop.dfs with parameters of type Node
 void DatanodeInfo.setParent(Node parent)
           
 

Uses of Node in org.apache.hadoop.net
 

Classes in org.apache.hadoop.net that implement Node
 class NodeBase
          A base class that implements interface Node
 

Fields in org.apache.hadoop.net declared as Node
protected  Node NodeBase.parent
           
 

Methods in org.apache.hadoop.net that return Node
 Node NetworkTopology.chooseRandom(String scope)
          randomly choose one node from scope if scope starts with ~, choose one from the all nodes except for the ones in scope; otherwise, choose one from scope
 Node NodeBase.getParent()
          Return this node's parent
 Node Node.getParent()
          Return this node's parent
 

Methods in org.apache.hadoop.net with parameters of type Node
 void NetworkTopology.add(Node node)
          Add a leaf node Update node counter & rack counter if neccessary
 boolean NetworkTopology.contains(Node node)
          Check if the tree contains node node
 int NetworkTopology.getDistance(Node node1, Node node2)
          Return the distance between two nodes It is assumed that the distance from one node to its parent is 1 The distance between two nodes is calculated by summing up their distances to their closest common ancestor.
static String NodeBase.getPath(Node node)
          Return this node's path
 boolean NetworkTopology.isOnSameRack(Node node1, Node node2)
          Check if two nodes are on the same rack
 void NetworkTopology.pseudoSortByDistance(Node reader, Node[] nodes)
          Sort nodes array by their distances to reader It linearly scans the array, if a local node is found, swap it with the first element of the array.
 void NetworkTopology.pseudoSortByDistance(Node reader, Node[] nodes)
          Sort nodes array by their distances to reader It linearly scans the array, if a local node is found, swap it with the first element of the array.
 void NetworkTopology.remove(Node node)
          Remove a node Update node counter & rack counter if neccessary
 void NodeBase.setParent(Node parent)
          Set this node's parent
 void Node.setParent(Node parent)
          Set this node's parent
 

Method parameters in org.apache.hadoop.net with type arguments of type Node
 int NetworkTopology.countNumOfAvailableNodes(String scope, List<Node> excludedNodes)
          return the number of leaves in scope but not in excludedNodes if scope starts with ~, return the number of nodes that are not in scope and excludedNodes;
 

Constructors in org.apache.hadoop.net with parameters of type Node
NodeBase(String name, String location, Node parent, int level)
          Construct a node from its name and its location
 



Copyright © 2006 The Apache Software Foundation