source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/net/NodeBase.html @ 120

Last change on this file since 120 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 30.8 KB
Line 
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:56:54 UTC 2009 -->
6<TITLE>
7NodeBase (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">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="NodeBase (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>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/NodeBase.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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&nbsp;<A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/net/ScriptBasedMapping.html" title="class in org.apache.hadoop.net"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/hadoop/net/NodeBase.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="NodeBase.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<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<TR>
78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82</TR>
83</TABLE>
84<A NAME="skip-navbar_top"></A>
85<!-- ========= END OF TOP NAVBAR ========= -->
86
87<HR>
88<!-- ======== START OF CLASS DATA ======== -->
89<H2>
90<FONT SIZE="-1">
91org.apache.hadoop.net</FONT>
92<BR>
93Class NodeBase</H2>
94<PRE>
95<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.net.NodeBase</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></DD>
100</DL>
101<HR>
102<DL>
103<DT><PRE>public class <B>NodeBase</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></DL>
104</PRE>
105
106<P>
107A base class that implements interface Node
108<P>
109
110<P>
111<HR>
112
113<P>
114<!-- =========== FIELD SUMMARY =========== -->
115
116<A NAME="field_summary"><!-- --></A>
117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
119<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
120<B>Field Summary</B></FONT></TH>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
124<CODE>protected &nbsp;int</CODE></FONT></TD>
125<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#level">level</A></B></CODE>
126
127<BR>
128&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
129</TR>
130<TR BGCOLOR="white" CLASS="TableRowColor">
131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132<CODE>protected &nbsp;<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>
133<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#location">location</A></B></CODE>
134
135<BR>
136&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
137</TR>
138<TR BGCOLOR="white" CLASS="TableRowColor">
139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140<CODE>protected &nbsp;<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>
141<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#name">name</A></B></CODE>
142
143<BR>
144&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
145</TR>
146<TR BGCOLOR="white" CLASS="TableRowColor">
147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148<CODE>protected &nbsp;<A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD>
149<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#parent">parent</A></B></CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>static&nbsp;char</CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#PATH_SEPARATOR">PATH_SEPARATOR</A></B></CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>static&nbsp;<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>
165<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#PATH_SEPARATOR_STR">PATH_SEPARATOR_STR</A></B></CODE>
166
167<BR>
168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
169</TR>
170<TR BGCOLOR="white" CLASS="TableRowColor">
171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172<CODE>static&nbsp;<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>
173<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#ROOT">ROOT</A></B></CODE>
174
175<BR>
176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
177</TR>
178</TABLE>
179&nbsp;
180<!-- ======== CONSTRUCTOR SUMMARY ======== -->
181
182<A NAME="constructor_summary"><!-- --></A>
183<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
184<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
185<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
186<B>Constructor Summary</B></FONT></TH>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#NodeBase()">NodeBase</A></B>()</CODE>
190
191<BR>
192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default constructor</TD>
193</TR>
194<TR BGCOLOR="white" CLASS="TableRowColor">
195<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#NodeBase(java.lang.String)">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>&nbsp;path)</CODE>
196
197<BR>
198&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a node from its path</TD>
199</TR>
200<TR BGCOLOR="white" CLASS="TableRowColor">
201<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#NodeBase(java.lang.String, java.lang.String)">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>&nbsp;name,
202         <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>&nbsp;location)</CODE>
203
204<BR>
205&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a node from its name and its location</TD>
206</TR>
207<TR BGCOLOR="white" CLASS="TableRowColor">
208<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>&nbsp;name,
209         <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>&nbsp;location,
210         <A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A>&nbsp;parent,
211         int&nbsp;level)</CODE>
212
213<BR>
214&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a node from its name and its location</TD>
215</TR>
216</TABLE>
217&nbsp;
218<!-- ========== METHOD SUMMARY =========== -->
219
220<A NAME="method_summary"><!-- --></A>
221<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
222<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
223<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
224<B>Method Summary</B></FONT></TH>
225</TR>
226<TR BGCOLOR="white" CLASS="TableRowColor">
227<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
228<CODE>&nbsp;int</CODE></FONT></TD>
229<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#getLevel()">getLevel</A></B>()</CODE>
230
231<BR>
232&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return this node's level in the tree.</TD>
233</TR>
234<TR BGCOLOR="white" CLASS="TableRowColor">
235<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
236<CODE>&nbsp;<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>
237<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#getName()">getName</A></B>()</CODE>
238
239<BR>
240&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return this node's name</TD>
241</TR>
242<TR BGCOLOR="white" CLASS="TableRowColor">
243<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
244<CODE>&nbsp;<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>
245<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#getNetworkLocation()">getNetworkLocation</A></B>()</CODE>
246
247<BR>
248&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return this node's network location</TD>
249</TR>
250<TR BGCOLOR="white" CLASS="TableRowColor">
251<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
252<CODE>&nbsp;<A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></FONT></TD>
253<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#getParent()">getParent</A></B>()</CODE>
254
255<BR>
256&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return this node's parent</TD>
257</TR>
258<TR BGCOLOR="white" CLASS="TableRowColor">
259<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
260<CODE>static&nbsp;<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>
261<TD><CODE><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>&nbsp;node)</CODE>
262
263<BR>
264&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return this node's path</TD>
265</TR>
266<TR BGCOLOR="white" CLASS="TableRowColor">
267<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
268<CODE>static&nbsp;<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>
269<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#normalize(java.lang.String)">normalize</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>&nbsp;path)</CODE>
270
271<BR>
272&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Normalize a path</TD>
273</TR>
274<TR BGCOLOR="white" CLASS="TableRowColor">
275<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
276<CODE>&nbsp;void</CODE></FONT></TD>
277<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#setLevel(int)">setLevel</A></B>(int&nbsp;level)</CODE>
278
279<BR>
280&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set this node's level in the tree</TD>
281</TR>
282<TR BGCOLOR="white" CLASS="TableRowColor">
283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284<CODE>&nbsp;void</CODE></FONT></TD>
285<TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#setNetworkLocation(java.lang.String)">setNetworkLocation</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>&nbsp;location)</CODE>
286
287<BR>
288&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set this node's network location</TD>
289</TR>
290<TR BGCOLOR="white" CLASS="TableRowColor">
291<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
292<CODE>&nbsp;void</CODE></FONT></TD>
293<TD><CODE><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>&nbsp;parent)</CODE>
294
295<BR>
296&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set this node's parent</TD>
297</TR>
298<TR BGCOLOR="white" CLASS="TableRowColor">
299<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
300<CODE>&nbsp;<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><A HREF="../../../../org/apache/hadoop/net/NodeBase.html#toString()">toString</A></B>()</CODE>
302
303<BR>
304&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return this node's string representation</TD>
305</TR>
306</TABLE>
307&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
308<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
309<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
310<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
311</TR>
312<TR BGCOLOR="white" CLASS="TableRowColor">
313<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
314</TR>
315</TABLE>
316&nbsp;
317<P>
318
319<!-- ============ FIELD DETAIL =========== -->
320
321<A NAME="field_detail"><!-- --></A>
322<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
323<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
324<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
325<B>Field Detail</B></FONT></TH>
326</TR>
327</TABLE>
328
329<A NAME="PATH_SEPARATOR"><!-- --></A><H3>
330PATH_SEPARATOR</H3>
331<PRE>
332public static final char <B>PATH_SEPARATOR</B></PRE>
333<DL>
334<DL>
335<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.net.NodeBase.PATH_SEPARATOR">Constant Field Values</A></DL>
336</DL>
337<HR>
338
339<A NAME="PATH_SEPARATOR_STR"><!-- --></A><H3>
340PATH_SEPARATOR_STR</H3>
341<PRE>
342public static final <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> <B>PATH_SEPARATOR_STR</B></PRE>
343<DL>
344<DL>
345<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.net.NodeBase.PATH_SEPARATOR_STR">Constant Field Values</A></DL>
346</DL>
347<HR>
348
349<A NAME="ROOT"><!-- --></A><H3>
350ROOT</H3>
351<PRE>
352public static final <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> <B>ROOT</B></PRE>
353<DL>
354<DL>
355<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.net.NodeBase.ROOT">Constant Field Values</A></DL>
356</DL>
357<HR>
358
359<A NAME="name"><!-- --></A><H3>
360name</H3>
361<PRE>
362protected <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> <B>name</B></PRE>
363<DL>
364<DL>
365</DL>
366</DL>
367<HR>
368
369<A NAME="location"><!-- --></A><H3>
370location</H3>
371<PRE>
372protected <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> <B>location</B></PRE>
373<DL>
374<DL>
375</DL>
376</DL>
377<HR>
378
379<A NAME="level"><!-- --></A><H3>
380level</H3>
381<PRE>
382protected int <B>level</B></PRE>
383<DL>
384<DL>
385</DL>
386</DL>
387<HR>
388
389<A NAME="parent"><!-- --></A><H3>
390parent</H3>
391<PRE>
392protected <A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> <B>parent</B></PRE>
393<DL>
394<DL>
395</DL>
396</DL>
397
398<!-- ========= CONSTRUCTOR DETAIL ======== -->
399
400<A NAME="constructor_detail"><!-- --></A>
401<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
402<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
403<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
404<B>Constructor Detail</B></FONT></TH>
405</TR>
406</TABLE>
407
408<A NAME="NodeBase()"><!-- --></A><H3>
409NodeBase</H3>
410<PRE>
411public <B>NodeBase</B>()</PRE>
412<DL>
413<DD>Default constructor
414<P>
415</DL>
416<HR>
417
418<A NAME="NodeBase(java.lang.String)"><!-- --></A><H3>
419NodeBase</H3>
420<PRE>
421public <B>NodeBase</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>&nbsp;path)</PRE>
422<DL>
423<DD>Construct a node from its path
424<P>
425<DL>
426<DT><B>Parameters:</B><DD><CODE>path</CODE> - a concatenation of this node's location, the path seperator, and its name</DL>
427</DL>
428<HR>
429
430<A NAME="NodeBase(java.lang.String, java.lang.String)"><!-- --></A><H3>
431NodeBase</H3>
432<PRE>
433public <B>NodeBase</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>&nbsp;name,
434                <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>&nbsp;location)</PRE>
435<DL>
436<DD>Construct a node from its name and its location
437<P>
438<DL>
439<DT><B>Parameters:</B><DD><CODE>name</CODE> - this node's name<DD><CODE>location</CODE> - this node's location</DL>
440</DL>
441<HR>
442
443<A NAME="NodeBase(java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int)"><!-- --></A><H3>
444NodeBase</H3>
445<PRE>
446public <B>NodeBase</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>&nbsp;name,
447                <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>&nbsp;location,
448                <A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A>&nbsp;parent,
449                int&nbsp;level)</PRE>
450<DL>
451<DD>Construct a node from its name and its location
452<P>
453<DL>
454<DT><B>Parameters:</B><DD><CODE>name</CODE> - this node's name<DD><CODE>location</CODE> - this node's location<DD><CODE>parent</CODE> - this node's parent node<DD><CODE>level</CODE> - this node's level in the tree</DL>
455</DL>
456
457<!-- ============ METHOD DETAIL ========== -->
458
459<A NAME="method_detail"><!-- --></A>
460<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
461<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
462<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
463<B>Method Detail</B></FONT></TH>
464</TR>
465</TABLE>
466
467<A NAME="getName()"><!-- --></A><H3>
468getName</H3>
469<PRE>
470public <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> <B>getName</B>()</PRE>
471<DL>
472<DD>Return this node's name
473<P>
474<DD><DL>
475<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/net/Node.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></DL>
476</DD>
477<DD><DL>
478</DL>
479</DD>
480</DL>
481<HR>
482
483<A NAME="getNetworkLocation()"><!-- --></A><H3>
484getNetworkLocation</H3>
485<PRE>
486public <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> <B>getNetworkLocation</B>()</PRE>
487<DL>
488<DD>Return this node's network location
489<P>
490<DD><DL>
491<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/net/Node.html#getNetworkLocation()">getNetworkLocation</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></DL>
492</DD>
493<DD><DL>
494</DL>
495</DD>
496</DL>
497<HR>
498
499<A NAME="setNetworkLocation(java.lang.String)"><!-- --></A><H3>
500setNetworkLocation</H3>
501<PRE>
502public void <B>setNetworkLocation</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>&nbsp;location)</PRE>
503<DL>
504<DD>Set this node's network location
505<P>
506<DD><DL>
507<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/net/Node.html#setNetworkLocation(java.lang.String)">setNetworkLocation</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></DL>
508</DD>
509<DD><DL>
510</DL>
511</DD>
512</DL>
513<HR>
514
515<A NAME="getPath(org.apache.hadoop.net.Node)"><!-- --></A><H3>
516getPath</H3>
517<PRE>
518public 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> <B>getPath</B>(<A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A>&nbsp;node)</PRE>
519<DL>
520<DD>Return this node's path
521<P>
522<DD><DL>
523</DL>
524</DD>
525<DD><DL>
526</DL>
527</DD>
528</DL>
529<HR>
530
531<A NAME="toString()"><!-- --></A><H3>
532toString</H3>
533<PRE>
534public <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> <B>toString</B>()</PRE>
535<DL>
536<DD>Return this node's string representation
537<P>
538<DD><DL>
539<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
540</DD>
541<DD><DL>
542</DL>
543</DD>
544</DL>
545<HR>
546
547<A NAME="normalize(java.lang.String)"><!-- --></A><H3>
548normalize</H3>
549<PRE>
550public 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> <B>normalize</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>&nbsp;path)</PRE>
551<DL>
552<DD>Normalize a path
553<P>
554<DD><DL>
555</DL>
556</DD>
557<DD><DL>
558</DL>
559</DD>
560</DL>
561<HR>
562
563<A NAME="getParent()"><!-- --></A><H3>
564getParent</H3>
565<PRE>
566public <A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A> <B>getParent</B>()</PRE>
567<DL>
568<DD>Return this node's parent
569<P>
570<DD><DL>
571<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/net/Node.html#getParent()">getParent</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></DL>
572</DD>
573<DD><DL>
574</DL>
575</DD>
576</DL>
577<HR>
578
579<A NAME="setParent(org.apache.hadoop.net.Node)"><!-- --></A><H3>
580setParent</H3>
581<PRE>
582public void <B>setParent</B>(<A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A>&nbsp;parent)</PRE>
583<DL>
584<DD>Set this node's parent
585<P>
586<DD><DL>
587<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/net/Node.html#setParent(org.apache.hadoop.net.Node)">setParent</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></DL>
588</DD>
589<DD><DL>
590</DL>
591</DD>
592</DL>
593<HR>
594
595<A NAME="getLevel()"><!-- --></A><H3>
596getLevel</H3>
597<PRE>
598public int <B>getLevel</B>()</PRE>
599<DL>
600<DD>Return this node's level in the tree.
601 E.g. the root of a tree returns 0 and its children return 1
602<P>
603<DD><DL>
604<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/net/Node.html#getLevel()">getLevel</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></DL>
605</DD>
606<DD><DL>
607</DL>
608</DD>
609</DL>
610<HR>
611
612<A NAME="setLevel(int)"><!-- --></A><H3>
613setLevel</H3>
614<PRE>
615public void <B>setLevel</B>(int&nbsp;level)</PRE>
616<DL>
617<DD>Set this node's level in the tree
618<P>
619<DD><DL>
620<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/hadoop/net/Node.html#setLevel(int)">setLevel</A></CODE> in interface <CODE><A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net">Node</A></CODE></DL>
621</DD>
622<DD><DL>
623</DL>
624</DD>
625</DL>
626<!-- ========= END OF CLASS DATA ========= -->
627<HR>
628
629
630<!-- ======= START OF BOTTOM NAVBAR ====== -->
631<A NAME="navbar_bottom"><!-- --></A>
632<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
633<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
634<TR>
635<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
636<A NAME="navbar_bottom_firstrow"><!-- --></A>
637<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
638  <TR ALIGN="center" VALIGN="top">
639  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
640  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
641  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
642  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/NodeBase.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
643  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
644  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
645  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
646  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
647  </TR>
648</TABLE>
649</TD>
650<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
651</EM>
652</TD>
653</TR>
654
655<TR>
656<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
657&nbsp;<A HREF="../../../../org/apache/hadoop/net/Node.html" title="interface in org.apache.hadoop.net"><B>PREV CLASS</B></A>&nbsp;
658&nbsp;<A HREF="../../../../org/apache/hadoop/net/ScriptBasedMapping.html" title="class in org.apache.hadoop.net"><B>NEXT CLASS</B></A></FONT></TD>
659<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
660  <A HREF="../../../../index.html?org/apache/hadoop/net/NodeBase.html" target="_top"><B>FRAMES</B></A>  &nbsp;
661&nbsp;<A HREF="NodeBase.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
662&nbsp;<SCRIPT type="text/javascript">
663  <!--
664  if(window==top) {
665    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
666  }
667  //-->
668</SCRIPT>
669<NOSCRIPT>
670  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
671</NOSCRIPT>
672
673
674</FONT></TD>
675</TR>
676<TR>
677<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
678  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
679<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
680DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
681</TR>
682</TABLE>
683<A NAME="skip-navbar_bottom"></A>
684<!-- ======== END OF BOTTOM NAVBAR ======= -->
685
686<HR>
687Copyright &copy; 2009 The Apache Software Foundation
688</BODY>
689</HTML>
Note: See TracBrowser for help on using the repository browser.