Generated by
JDiff

Class org.apache.hadoop.net.NetworkTopology

Added Methods
String getFirstHalf(String) Divide networklocation string into two parts by last separator and get the first part here.
NetworkTopology getInstance(Configuration) Get an instance of NetworkTopology based on the value of the configuration parameter net.topology.impl.
String getLastHalf(String) Divide networklocation string into two parts by last separator and get the second part here.
List getLeaves(String) return leaves in scope
Node getNodeForNetworkLocation(Node) Return a reference to the node given its string representation.
String getRack(String) Given a string representation of a rack for a specific network location To be overridden in subclasses for specific NetworkTopology implementations as alternative to overriding the full #getRack(String) method.
boolean isNodeGroupAware() Check if network topology is aware of NodeGroup
boolean isOnSameNodeGroup(Node, Node) Return false directly as not aware of NodeGroup to be override in sub-class
boolean isSameParents(Node, Node) Compare the parents of each node for equality
void swap(Node[], int, int)  
 

Changed Methods
int countNumOfAvailableNodes(String, Collection) Change in signature from (String, List) to (String, Collection).
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;
 

Added Fields
ReadWriteLock netlock  
int numOfRacks  
Random r