[120] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!--NewPage--> |
---|
| 3 | <HTML> |
---|
| 4 | <HEAD> |
---|
| 5 | <!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:57:01 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | Uses of Interface org.apache.hadoop.net.Node (Hadoop 0.20.1 API) |
---|
| 8 | </TITLE> |
---|
| 9 | |
---|
| 10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
| 11 | |
---|
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> |
---|
| 13 | |
---|
| 14 | <SCRIPT type="text/javascript"> |
---|
| 15 | function windowTitle() |
---|
| 16 | { |
---|
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 18 | parent.document.title="Uses of Interface org.apache.hadoop.net.Node (Hadoop 0.20.1 API)"; |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | </SCRIPT> |
---|
| 22 | <NOSCRIPT> |
---|
| 23 | </NOSCRIPT> |
---|
| 24 | |
---|
| 25 | </HEAD> |
---|
| 26 | |
---|
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
| 28 | <HR> |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 32 | <A NAME="navbar_top"><!-- --></A> |
---|
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 35 | <TR> |
---|
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 39 | <TR ALIGN="center" VALIGN="top"> |
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> |
---|
| 43 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 48 | </TR> |
---|
| 49 | </TABLE> |
---|
| 50 | </TD> |
---|
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 52 | </EM> |
---|
| 53 | </TD> |
---|
| 54 | </TR> |
---|
| 55 | |
---|
| 56 | <TR> |
---|
| 57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 58 | PREV |
---|
| 59 | NEXT</FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../../index.html?org/apache/hadoop/net//class-useNode.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="Node.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | </TABLE> |
---|
| 78 | <A NAME="skip-navbar_top"></A> |
---|
| 79 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 80 | |
---|
| 81 | <HR> |
---|
| 82 | <CENTER> |
---|
| 83 | <H2> |
---|
| 84 | <B>Uses of Interface<br>org.apache.hadoop.net.Node</B></H2> |
---|
| 85 | </CENTER> |
---|
| 86 | |
---|
| 87 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 88 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 89 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 90 | Packages that use <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 91 | </TR> |
---|
| 92 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 93 | <TD><A HREF="#org.apache.hadoop.mapred"><B>org.apache.hadoop.mapred</B></A></TD> |
---|
| 94 | <TD>A software framework for easily writing applications which process vast |
---|
| 95 | amounts of data (multi-terabyte data-sets) parallelly on large clusters |
---|
| 96 | (thousands of nodes) built of commodity hardware in a reliable, fault-tolerant |
---|
| 97 | manner. </TD> |
---|
| 98 | </TR> |
---|
| 99 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 100 | <TD><A HREF="#org.apache.hadoop.net"><B>org.apache.hadoop.net</B></A></TD> |
---|
| 101 | <TD>Network-related classes. </TD> |
---|
| 102 | </TR> |
---|
| 103 | </TABLE> |
---|
| 104 | |
---|
| 105 | <P> |
---|
| 106 | <A NAME="org.apache.hadoop.mapred"><!-- --></A> |
---|
| 107 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 108 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 109 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 110 | Uses of <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> in <A HREF="../../../../../org/apache/hadoop/mapred/package-summary.html">org.apache.hadoop.mapred</A></FONT></TH> |
---|
| 111 | </TR> |
---|
| 112 | </TABLE> |
---|
| 113 | |
---|
| 114 | <P> |
---|
| 115 | |
---|
| 116 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 117 | <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> |
---|
| 118 | <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../org/apache/hadoop/mapred/package-summary.html">org.apache.hadoop.mapred</A> that return <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 119 | </TR> |
---|
| 120 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 121 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 122 | <CODE> <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD> |
---|
| 123 | <TD><CODE><B>JobTracker.</B><B><A HREF="../../../../../org/apache/hadoop/mapred/JobTracker.html#getNode(java.lang.String)">getNode</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> |
---|
| 124 | |
---|
| 125 | <BR> |
---|
| 126 | Return the Node in the network topology that corresponds to the hostname</TD> |
---|
| 127 | </TR> |
---|
| 128 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 129 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 130 | <CODE>static <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD> |
---|
| 131 | <TD><CODE><B>JobTracker.</B><B><A HREF="../../../../../org/apache/hadoop/mapred/JobTracker.html#getParentNode(org.apache.hadoop.net.Node, int)">getParentNode</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node, |
---|
| 132 | int level)</CODE> |
---|
| 133 | |
---|
| 134 | <BR> |
---|
| 135 | </TD> |
---|
| 136 | </TR> |
---|
| 137 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 138 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 139 | <CODE> <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD> |
---|
| 140 | <TD><CODE><B>JobTracker.</B><B><A HREF="../../../../../org/apache/hadoop/mapred/JobTracker.html#resolveAndAddToTopology(java.lang.String)">resolveAndAddToTopology</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> |
---|
| 141 | |
---|
| 142 | <BR> |
---|
| 143 | </TD> |
---|
| 144 | </TR> |
---|
| 145 | </TABLE> |
---|
| 146 | |
---|
| 147 | <P> |
---|
| 148 | |
---|
| 149 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 150 | <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> |
---|
| 151 | <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../org/apache/hadoop/mapred/package-summary.html">org.apache.hadoop.mapred</A> that return types with arguments of type <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 152 | </TR> |
---|
| 153 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 154 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 155 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A>></CODE></FONT></TD> |
---|
| 156 | <TD><CODE><B>JobTracker.</B><B><A HREF="../../../../../org/apache/hadoop/mapred/JobTracker.html#getNodesAtMaxLevel()">getNodesAtMaxLevel</A></B>()</CODE> |
---|
| 157 | |
---|
| 158 | <BR> |
---|
| 159 | Returns a collection of nodes at the max level</TD> |
---|
| 160 | </TR> |
---|
| 161 | </TABLE> |
---|
| 162 | |
---|
| 163 | <P> |
---|
| 164 | |
---|
| 165 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 166 | <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> |
---|
| 167 | <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../org/apache/hadoop/mapred/package-summary.html">org.apache.hadoop.mapred</A> with parameters of type <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 168 | </TR> |
---|
| 169 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 170 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 171 | <CODE>static <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD> |
---|
| 172 | <TD><CODE><B>JobTracker.</B><B><A HREF="../../../../../org/apache/hadoop/mapred/JobTracker.html#getParentNode(org.apache.hadoop.net.Node, int)">getParentNode</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node, |
---|
| 173 | int level)</CODE> |
---|
| 174 | |
---|
| 175 | <BR> |
---|
| 176 | </TD> |
---|
| 177 | </TR> |
---|
| 178 | </TABLE> |
---|
| 179 | |
---|
| 180 | <P> |
---|
| 181 | <A NAME="org.apache.hadoop.net"><!-- --></A> |
---|
| 182 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 183 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 184 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 185 | Uses of <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> in <A HREF="../../../../../org/apache/hadoop/net/package-summary.html">org.apache.hadoop.net</A></FONT></TH> |
---|
| 186 | </TR> |
---|
| 187 | </TABLE> |
---|
| 188 | |
---|
| 189 | <P> |
---|
| 190 | |
---|
| 191 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 192 | <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> |
---|
| 193 | <TH ALIGN="left" COLSPAN="2">Classes in <A HREF="../../../../../org/apache/hadoop/net/package-summary.html">org.apache.hadoop.net</A> that implement <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 194 | </TR> |
---|
| 195 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 196 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 197 | <CODE> class</CODE></FONT></TD> |
---|
| 198 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/net/NodeBase.html" title="class in org.apache.hadoop.net">NodeBase</A></B></CODE> |
---|
| 199 | |
---|
| 200 | <BR> |
---|
| 201 | A base class that implements interface Node</TD> |
---|
| 202 | </TR> |
---|
| 203 | </TABLE> |
---|
| 204 | |
---|
| 205 | <P> |
---|
| 206 | |
---|
| 207 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 208 | <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> |
---|
| 209 | <TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../../org/apache/hadoop/net/package-summary.html">org.apache.hadoop.net</A> declared as <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 210 | </TR> |
---|
| 211 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 212 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 213 | <CODE>protected <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD> |
---|
| 214 | <TD><CODE><B>NodeBase.</B><B><A HREF="../../../../../org/apache/hadoop/net/NodeBase.html#parent">parent</A></B></CODE> |
---|
| 215 | |
---|
| 216 | <BR> |
---|
| 217 | </TD> |
---|
| 218 | </TR> |
---|
| 219 | </TABLE> |
---|
| 220 | |
---|
| 221 | <P> |
---|
| 222 | |
---|
| 223 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 224 | <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> |
---|
| 225 | <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../org/apache/hadoop/net/package-summary.html">org.apache.hadoop.net</A> that return <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 226 | </TR> |
---|
| 227 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 228 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 229 | <CODE> <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD> |
---|
| 230 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#chooseRandom(java.lang.String)">chooseRandom</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> scope)</CODE> |
---|
| 231 | |
---|
| 232 | <BR> |
---|
| 233 | randomly choose one node from <i>scope</i> |
---|
| 234 | if scope starts with ~, choose one from the all nodes except for the |
---|
| 235 | ones in <i>scope</i>; otherwise, choose one from <i>scope</i></TD> |
---|
| 236 | </TR> |
---|
| 237 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 238 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 239 | <CODE> <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD> |
---|
| 240 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#getNode(java.lang.String)">getNode</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> loc)</CODE> |
---|
| 241 | |
---|
| 242 | <BR> |
---|
| 243 | Given a string representation of a node, return its reference</TD> |
---|
| 244 | </TR> |
---|
| 245 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 246 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 247 | <CODE> <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD> |
---|
| 248 | <TD><CODE><B>Node.</B><B><A HREF="../../../../../org/apache/hadoop/net/Node.html#getParent()">getParent</A></B>()</CODE> |
---|
| 249 | |
---|
| 250 | <BR> |
---|
| 251 | Return this node's parent</TD> |
---|
| 252 | </TR> |
---|
| 253 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 254 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 255 | <CODE> <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD> |
---|
| 256 | <TD><CODE><B>NodeBase.</B><B><A HREF="../../../../../org/apache/hadoop/net/NodeBase.html#getParent()">getParent</A></B>()</CODE> |
---|
| 257 | |
---|
| 258 | <BR> |
---|
| 259 | Return this node's parent</TD> |
---|
| 260 | </TR> |
---|
| 261 | </TABLE> |
---|
| 262 | |
---|
| 263 | <P> |
---|
| 264 | |
---|
| 265 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 266 | <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> |
---|
| 267 | <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../org/apache/hadoop/net/package-summary.html">org.apache.hadoop.net</A> with parameters of type <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 268 | </TR> |
---|
| 269 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 270 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 271 | <CODE> void</CODE></FONT></TD> |
---|
| 272 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#add(org.apache.hadoop.net.Node)">add</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node)</CODE> |
---|
| 273 | |
---|
| 274 | <BR> |
---|
| 275 | Add a leaf node |
---|
| 276 | Update node counter & rack counter if neccessary</TD> |
---|
| 277 | </TR> |
---|
| 278 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 279 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 280 | <CODE> boolean</CODE></FONT></TD> |
---|
| 281 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#contains(org.apache.hadoop.net.Node)">contains</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node)</CODE> |
---|
| 282 | |
---|
| 283 | <BR> |
---|
| 284 | Check if the tree contains node <i>node</i></TD> |
---|
| 285 | </TR> |
---|
| 286 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 287 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 288 | <CODE> int</CODE></FONT></TD> |
---|
| 289 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#getDistance(org.apache.hadoop.net.Node, org.apache.hadoop.net.Node)">getDistance</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node1, |
---|
| 290 | <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node2)</CODE> |
---|
| 291 | |
---|
| 292 | <BR> |
---|
| 293 | Return the distance between two nodes |
---|
| 294 | It is assumed that the distance from one node to its parent is 1 |
---|
| 295 | The distance between two nodes is calculated by summing up their distances |
---|
| 296 | to their closest common ancestor.</TD> |
---|
| 297 | </TR> |
---|
| 298 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 299 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 300 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
| 301 | <TD><CODE><B>NodeBase.</B><B><A HREF="../../../../../org/apache/hadoop/net/NodeBase.html#getPath(org.apache.hadoop.net.Node)">getPath</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node)</CODE> |
---|
| 302 | |
---|
| 303 | <BR> |
---|
| 304 | Return this node's path</TD> |
---|
| 305 | </TR> |
---|
| 306 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 307 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 308 | <CODE> boolean</CODE></FONT></TD> |
---|
| 309 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#isOnSameRack(org.apache.hadoop.net.Node, org.apache.hadoop.net.Node)">isOnSameRack</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node1, |
---|
| 310 | <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node2)</CODE> |
---|
| 311 | |
---|
| 312 | <BR> |
---|
| 313 | Check if two nodes are on the same rack</TD> |
---|
| 314 | </TR> |
---|
| 315 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 316 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 317 | <CODE> void</CODE></FONT></TD> |
---|
| 318 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#pseudoSortByDistance(org.apache.hadoop.net.Node, org.apache.hadoop.net.Node[])">pseudoSortByDistance</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> reader, |
---|
| 319 | <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A>[] nodes)</CODE> |
---|
| 320 | |
---|
| 321 | <BR> |
---|
| 322 | Sort nodes array by their distances to <i>reader</i> |
---|
| 323 | It linearly scans the array, if a local node is found, swap it with |
---|
| 324 | the first element of the array.</TD> |
---|
| 325 | </TR> |
---|
| 326 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 327 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 328 | <CODE> void</CODE></FONT></TD> |
---|
| 329 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#pseudoSortByDistance(org.apache.hadoop.net.Node, org.apache.hadoop.net.Node[])">pseudoSortByDistance</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> reader, |
---|
| 330 | <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A>[] nodes)</CODE> |
---|
| 331 | |
---|
| 332 | <BR> |
---|
| 333 | Sort nodes array by their distances to <i>reader</i> |
---|
| 334 | It linearly scans the array, if a local node is found, swap it with |
---|
| 335 | the first element of the array.</TD> |
---|
| 336 | </TR> |
---|
| 337 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 338 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 339 | <CODE> void</CODE></FONT></TD> |
---|
| 340 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#remove(org.apache.hadoop.net.Node)">remove</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> node)</CODE> |
---|
| 341 | |
---|
| 342 | <BR> |
---|
| 343 | Remove a node |
---|
| 344 | Update node counter & rack counter if neccessary</TD> |
---|
| 345 | </TR> |
---|
| 346 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 347 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 348 | <CODE> void</CODE></FONT></TD> |
---|
| 349 | <TD><CODE><B>Node.</B><B><A HREF="../../../../../org/apache/hadoop/net/Node.html#setParent(org.apache.hadoop.net.Node)">setParent</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> parent)</CODE> |
---|
| 350 | |
---|
| 351 | <BR> |
---|
| 352 | Set this node's parent</TD> |
---|
| 353 | </TR> |
---|
| 354 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 355 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 356 | <CODE> void</CODE></FONT></TD> |
---|
| 357 | <TD><CODE><B>NodeBase.</B><B><A HREF="../../../../../org/apache/hadoop/net/NodeBase.html#setParent(org.apache.hadoop.net.Node)">setParent</A></B>(<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> parent)</CODE> |
---|
| 358 | |
---|
| 359 | <BR> |
---|
| 360 | Set this node's parent</TD> |
---|
| 361 | </TR> |
---|
| 362 | </TABLE> |
---|
| 363 | |
---|
| 364 | <P> |
---|
| 365 | |
---|
| 366 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 367 | <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> |
---|
| 368 | <TH ALIGN="left" COLSPAN="2">Method parameters in <A HREF="../../../../../org/apache/hadoop/net/package-summary.html">org.apache.hadoop.net</A> with type arguments of type <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 369 | </TR> |
---|
| 370 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 371 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 372 | <CODE> int</CODE></FONT></TD> |
---|
| 373 | <TD><CODE><B>NetworkTopology.</B><B><A HREF="../../../../../org/apache/hadoop/net/NetworkTopology.html#countNumOfAvailableNodes(java.lang.String, java.util.List)">countNumOfAvailableNodes</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> scope, |
---|
| 374 | <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A>> excludedNodes)</CODE> |
---|
| 375 | |
---|
| 376 | <BR> |
---|
| 377 | return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i> |
---|
| 378 | if scope starts with ~, return the number of nodes that are not |
---|
| 379 | in <i>scope</i> and <i>excludedNodes</i>;</TD> |
---|
| 380 | </TR> |
---|
| 381 | </TABLE> |
---|
| 382 | |
---|
| 383 | <P> |
---|
| 384 | |
---|
| 385 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 386 | <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> |
---|
| 387 | <TH ALIGN="left" COLSPAN="2">Constructors in <A HREF="../../../../../org/apache/hadoop/net/package-summary.html">org.apache.hadoop.net</A> with parameters of type <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></FONT></TH> |
---|
| 388 | </TR> |
---|
| 389 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 390 | <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/net/NodeBase.html#NodeBase(java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int)">NodeBase</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, |
---|
| 391 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> location, |
---|
| 392 | <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> parent, |
---|
| 393 | int level)</CODE> |
---|
| 394 | |
---|
| 395 | <BR> |
---|
| 396 | Construct a node from its name and its location</TD> |
---|
| 397 | </TR> |
---|
| 398 | </TABLE> |
---|
| 399 | |
---|
| 400 | <P> |
---|
| 401 | <HR> |
---|
| 402 | |
---|
| 403 | |
---|
| 404 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 405 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 406 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 407 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 408 | <TR> |
---|
| 409 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 410 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 411 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 412 | <TR ALIGN="center" VALIGN="top"> |
---|
| 413 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 414 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 415 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> |
---|
| 416 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> |
---|
| 417 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 418 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 419 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 420 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 421 | </TR> |
---|
| 422 | </TABLE> |
---|
| 423 | </TD> |
---|
| 424 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 425 | </EM> |
---|
| 426 | </TD> |
---|
| 427 | </TR> |
---|
| 428 | |
---|
| 429 | <TR> |
---|
| 430 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 431 | PREV |
---|
| 432 | NEXT</FONT></TD> |
---|
| 433 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 434 | <A HREF="../../../../../index.html?org/apache/hadoop/net//class-useNode.html" target="_top"><B>FRAMES</B></A> |
---|
| 435 | <A HREF="Node.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 436 | <SCRIPT type="text/javascript"> |
---|
| 437 | <!-- |
---|
| 438 | if(window==top) { |
---|
| 439 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 440 | } |
---|
| 441 | //--> |
---|
| 442 | </SCRIPT> |
---|
| 443 | <NOSCRIPT> |
---|
| 444 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 445 | </NOSCRIPT> |
---|
| 446 | |
---|
| 447 | |
---|
| 448 | </FONT></TD> |
---|
| 449 | </TR> |
---|
| 450 | </TABLE> |
---|
| 451 | <A NAME="skip-navbar_bottom"></A> |
---|
| 452 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 453 | |
---|
| 454 | <HR> |
---|
| 455 | Copyright © 2009 The Apache Software Foundation |
---|
| 456 | </BODY> |
---|
| 457 | </HTML> |
---|