[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:56:54 UTC 2009 --> |
---|
| 6 | <TITLE> |
---|
| 7 | DNS (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="DNS (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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DNS.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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 | <A HREF="../../../../org/apache/hadoop/net/CachedDNSToSwitchMapping.html" title="class in org.apache.hadoop.net"><B>PREV CLASS</B></A> |
---|
| 59 | <A HREF="../../../../org/apache/hadoop/net/DNSToSwitchMapping.html" title="interface 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/DNS.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="DNS.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 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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"> |
---|
| 91 | org.apache.hadoop.net</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class DNS</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.DNS</B> |
---|
| 97 | </PRE> |
---|
| 98 | <HR> |
---|
| 99 | <DL> |
---|
| 100 | <DT><PRE>public class <B>DNS</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></DL> |
---|
| 101 | </PRE> |
---|
| 102 | |
---|
| 103 | <P> |
---|
| 104 | A class that provides direct and reverse lookup functionalities, allowing |
---|
| 105 | the querying of specific network interfaces or nameservers. |
---|
| 106 | <P> |
---|
| 107 | |
---|
| 108 | <P> |
---|
| 109 | <HR> |
---|
| 110 | |
---|
| 111 | <P> |
---|
| 112 | |
---|
| 113 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 114 | |
---|
| 115 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 116 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 117 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 118 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 119 | <B>Constructor Summary</B></FONT></TH> |
---|
| 120 | </TR> |
---|
| 121 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 122 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/DNS.html#DNS()">DNS</A></B>()</CODE> |
---|
| 123 | |
---|
| 124 | <BR> |
---|
| 125 | </TD> |
---|
| 126 | </TR> |
---|
| 127 | </TABLE> |
---|
| 128 | |
---|
| 129 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 130 | |
---|
| 131 | <A NAME="method_summary"><!-- --></A> |
---|
| 132 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 133 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 134 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 135 | <B>Method Summary</B></FONT></TH> |
---|
| 136 | </TR> |
---|
| 137 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 138 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 139 | <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> |
---|
| 140 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/DNS.html#getDefaultHost(java.lang.String)">getDefaultHost</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> strInterface)</CODE> |
---|
| 141 | |
---|
| 142 | <BR> |
---|
| 143 | Returns the default (first) host name associated by the default |
---|
| 144 | nameserver with the address bound to the specified network interface</TD> |
---|
| 145 | </TR> |
---|
| 146 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 147 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 148 | <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> |
---|
| 149 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/DNS.html#getDefaultHost(java.lang.String, java.lang.String)">getDefaultHost</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> strInterface, |
---|
| 150 | <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> nameserver)</CODE> |
---|
| 151 | |
---|
| 152 | <BR> |
---|
| 153 | Returns the default (first) host name associated by the provided |
---|
| 154 | nameserver with the address bound to the specified network interface</TD> |
---|
| 155 | </TR> |
---|
| 156 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 157 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 158 | <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> |
---|
| 159 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/DNS.html#getDefaultIP(java.lang.String)">getDefaultIP</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> strInterface)</CODE> |
---|
| 160 | |
---|
| 161 | <BR> |
---|
| 162 | Returns the first available IP address associated with the provided |
---|
| 163 | network interface</TD> |
---|
| 164 | </TR> |
---|
| 165 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 166 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 167 | <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> |
---|
| 168 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/DNS.html#getHosts(java.lang.String)">getHosts</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> strInterface)</CODE> |
---|
| 169 | |
---|
| 170 | <BR> |
---|
| 171 | Returns all the host names associated by the default nameserver with the |
---|
| 172 | address bound to the specified network interface</TD> |
---|
| 173 | </TR> |
---|
| 174 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 175 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 176 | <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> |
---|
| 177 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/DNS.html#getHosts(java.lang.String, java.lang.String)">getHosts</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> strInterface, |
---|
| 178 | <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> nameserver)</CODE> |
---|
| 179 | |
---|
| 180 | <BR> |
---|
| 181 | Returns all the host names associated by the provided nameserver with the |
---|
| 182 | address bound to the specified network interface</TD> |
---|
| 183 | </TR> |
---|
| 184 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 185 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 186 | <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> |
---|
| 187 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/DNS.html#getIPs(java.lang.String)">getIPs</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> strInterface)</CODE> |
---|
| 188 | |
---|
| 189 | <BR> |
---|
| 190 | Returns all the IPs associated with the provided interface, if any, in |
---|
| 191 | textual form.</TD> |
---|
| 192 | </TR> |
---|
| 193 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 195 | <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> |
---|
| 196 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/net/DNS.html#reverseDns(java.net.InetAddress, java.lang.String)">reverseDns</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</A> hostIp, |
---|
| 197 | <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> ns)</CODE> |
---|
| 198 | |
---|
| 199 | <BR> |
---|
| 200 | Returns the hostname associated with the specified IP address by the |
---|
| 201 | provided nameserver.</TD> |
---|
| 202 | </TR> |
---|
| 203 | </TABLE> |
---|
| 204 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 205 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 206 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 207 | <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> |
---|
| 208 | </TR> |
---|
| 209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 210 | <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#toString()" title="class or interface in java.lang">toString</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> |
---|
| 211 | </TR> |
---|
| 212 | </TABLE> |
---|
| 213 | |
---|
| 214 | <P> |
---|
| 215 | |
---|
| 216 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 217 | |
---|
| 218 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 219 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 220 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 221 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 222 | <B>Constructor Detail</B></FONT></TH> |
---|
| 223 | </TR> |
---|
| 224 | </TABLE> |
---|
| 225 | |
---|
| 226 | <A NAME="DNS()"><!-- --></A><H3> |
---|
| 227 | DNS</H3> |
---|
| 228 | <PRE> |
---|
| 229 | public <B>DNS</B>()</PRE> |
---|
| 230 | <DL> |
---|
| 231 | </DL> |
---|
| 232 | |
---|
| 233 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 234 | |
---|
| 235 | <A NAME="method_detail"><!-- --></A> |
---|
| 236 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 237 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 238 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 239 | <B>Method Detail</B></FONT></TH> |
---|
| 240 | </TR> |
---|
| 241 | </TABLE> |
---|
| 242 | |
---|
| 243 | <A NAME="reverseDns(java.net.InetAddress, java.lang.String)"><!-- --></A><H3> |
---|
| 244 | reverseDns</H3> |
---|
| 245 | <PRE> |
---|
| 246 | public 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>reverseDns</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</A> hostIp, |
---|
| 247 | <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> ns) |
---|
| 248 | throws <A HREF="http://java.sun.com/javase/6/docs/api/javax/naming/NamingException.html?is-external=true" title="class or interface in javax.naming">NamingException</A></PRE> |
---|
| 249 | <DL> |
---|
| 250 | <DD>Returns the hostname associated with the specified IP address by the |
---|
| 251 | provided nameserver. |
---|
| 252 | <P> |
---|
| 253 | <DD><DL> |
---|
| 254 | <DT><B>Parameters:</B><DD><CODE>hostIp</CODE> - The address to reverse lookup<DD><CODE>ns</CODE> - The host name of a reachable DNS server |
---|
| 255 | <DT><B>Returns:</B><DD>The host name associated with the provided IP |
---|
| 256 | <DT><B>Throws:</B> |
---|
| 257 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/naming/NamingException.html?is-external=true" title="class or interface in javax.naming">NamingException</A></CODE> - If a NamingException is encountered</DL> |
---|
| 258 | </DD> |
---|
| 259 | </DL> |
---|
| 260 | <HR> |
---|
| 261 | |
---|
| 262 | <A NAME="getIPs(java.lang.String)"><!-- --></A><H3> |
---|
| 263 | getIPs</H3> |
---|
| 264 | <PRE> |
---|
| 265 | public 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>getIPs</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> strInterface) |
---|
| 266 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></PRE> |
---|
| 267 | <DL> |
---|
| 268 | <DD>Returns all the IPs associated with the provided interface, if any, in |
---|
| 269 | textual form. |
---|
| 270 | <P> |
---|
| 271 | <DD><DL> |
---|
| 272 | <DT><B>Parameters:</B><DD><CODE>strInterface</CODE> - The name of the network interface to query (e.g. eth0) |
---|
| 273 | <DT><B>Returns:</B><DD>A string vector of all the IPs associated with the provided |
---|
| 274 | interface |
---|
| 275 | <DT><B>Throws:</B> |
---|
| 276 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></CODE> - If an UnknownHostException is encountered in querying the |
---|
| 277 | default interface</DL> |
---|
| 278 | </DD> |
---|
| 279 | </DL> |
---|
| 280 | <HR> |
---|
| 281 | |
---|
| 282 | <A NAME="getDefaultIP(java.lang.String)"><!-- --></A><H3> |
---|
| 283 | getDefaultIP</H3> |
---|
| 284 | <PRE> |
---|
| 285 | public 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>getDefaultIP</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> strInterface) |
---|
| 286 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></PRE> |
---|
| 287 | <DL> |
---|
| 288 | <DD>Returns the first available IP address associated with the provided |
---|
| 289 | network interface |
---|
| 290 | <P> |
---|
| 291 | <DD><DL> |
---|
| 292 | <DT><B>Parameters:</B><DD><CODE>strInterface</CODE> - The name of the network interface to query (e.g. eth0) |
---|
| 293 | <DT><B>Returns:</B><DD>The IP address in text form |
---|
| 294 | <DT><B>Throws:</B> |
---|
| 295 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></CODE> - If one is encountered in querying the default interface</DL> |
---|
| 296 | </DD> |
---|
| 297 | </DL> |
---|
| 298 | <HR> |
---|
| 299 | |
---|
| 300 | <A NAME="getHosts(java.lang.String, java.lang.String)"><!-- --></A><H3> |
---|
| 301 | getHosts</H3> |
---|
| 302 | <PRE> |
---|
| 303 | public 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>getHosts</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> strInterface, |
---|
| 304 | <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> nameserver) |
---|
| 305 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></PRE> |
---|
| 306 | <DL> |
---|
| 307 | <DD>Returns all the host names associated by the provided nameserver with the |
---|
| 308 | address bound to the specified network interface |
---|
| 309 | <P> |
---|
| 310 | <DD><DL> |
---|
| 311 | <DT><B>Parameters:</B><DD><CODE>strInterface</CODE> - The name of the network interface to query (e.g. eth0)<DD><CODE>nameserver</CODE> - The DNS host name |
---|
| 312 | <DT><B>Returns:</B><DD>A string vector of all host names associated with the IPs tied to |
---|
| 313 | the specified interface |
---|
| 314 | <DT><B>Throws:</B> |
---|
| 315 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></CODE></DL> |
---|
| 316 | </DD> |
---|
| 317 | </DL> |
---|
| 318 | <HR> |
---|
| 319 | |
---|
| 320 | <A NAME="getHosts(java.lang.String)"><!-- --></A><H3> |
---|
| 321 | getHosts</H3> |
---|
| 322 | <PRE> |
---|
| 323 | public 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>getHosts</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> strInterface) |
---|
| 324 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></PRE> |
---|
| 325 | <DL> |
---|
| 326 | <DD>Returns all the host names associated by the default nameserver with the |
---|
| 327 | address bound to the specified network interface |
---|
| 328 | <P> |
---|
| 329 | <DD><DL> |
---|
| 330 | <DT><B>Parameters:</B><DD><CODE>strInterface</CODE> - The name of the network interface to query (e.g. eth0) |
---|
| 331 | <DT><B>Returns:</B><DD>The list of host names associated with IPs bound to the network |
---|
| 332 | interface |
---|
| 333 | <DT><B>Throws:</B> |
---|
| 334 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></CODE> - If one is encountered while querying the deault interface</DL> |
---|
| 335 | </DD> |
---|
| 336 | </DL> |
---|
| 337 | <HR> |
---|
| 338 | |
---|
| 339 | <A NAME="getDefaultHost(java.lang.String, java.lang.String)"><!-- --></A><H3> |
---|
| 340 | getDefaultHost</H3> |
---|
| 341 | <PRE> |
---|
| 342 | public 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>getDefaultHost</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> strInterface, |
---|
| 343 | <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> nameserver) |
---|
| 344 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></PRE> |
---|
| 345 | <DL> |
---|
| 346 | <DD>Returns the default (first) host name associated by the provided |
---|
| 347 | nameserver with the address bound to the specified network interface |
---|
| 348 | <P> |
---|
| 349 | <DD><DL> |
---|
| 350 | <DT><B>Parameters:</B><DD><CODE>strInterface</CODE> - The name of the network interface to query (e.g. eth0)<DD><CODE>nameserver</CODE> - The DNS host name |
---|
| 351 | <DT><B>Returns:</B><DD>The default host names associated with IPs bound to the network |
---|
| 352 | interface |
---|
| 353 | <DT><B>Throws:</B> |
---|
| 354 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></CODE> - If one is encountered while querying the deault interface</DL> |
---|
| 355 | </DD> |
---|
| 356 | </DL> |
---|
| 357 | <HR> |
---|
| 358 | |
---|
| 359 | <A NAME="getDefaultHost(java.lang.String)"><!-- --></A><H3> |
---|
| 360 | getDefaultHost</H3> |
---|
| 361 | <PRE> |
---|
| 362 | public 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>getDefaultHost</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> strInterface) |
---|
| 363 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></PRE> |
---|
| 364 | <DL> |
---|
| 365 | <DD>Returns the default (first) host name associated by the default |
---|
| 366 | nameserver with the address bound to the specified network interface |
---|
| 367 | <P> |
---|
| 368 | <DD><DL> |
---|
| 369 | <DT><B>Parameters:</B><DD><CODE>strInterface</CODE> - The name of the network interface to query (e.g. eth0) |
---|
| 370 | <DT><B>Returns:</B><DD>The default host name associated with IPs bound to the network |
---|
| 371 | interface |
---|
| 372 | <DT><B>Throws:</B> |
---|
| 373 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></CODE> - If one is encountered while querying the deault interface</DL> |
---|
| 374 | </DD> |
---|
| 375 | </DL> |
---|
| 376 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 377 | <HR> |
---|
| 378 | |
---|
| 379 | |
---|
| 380 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 381 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 382 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 383 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 384 | <TR> |
---|
| 385 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 386 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 387 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 388 | <TR ALIGN="center" VALIGN="top"> |
---|
| 389 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 390 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 391 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 392 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DNS.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 393 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 394 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 395 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
| 396 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 397 | </TR> |
---|
| 398 | </TABLE> |
---|
| 399 | </TD> |
---|
| 400 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 401 | </EM> |
---|
| 402 | </TD> |
---|
| 403 | </TR> |
---|
| 404 | |
---|
| 405 | <TR> |
---|
| 406 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 407 | <A HREF="../../../../org/apache/hadoop/net/CachedDNSToSwitchMapping.html" title="class in org.apache.hadoop.net"><B>PREV CLASS</B></A> |
---|
| 408 | <A HREF="../../../../org/apache/hadoop/net/DNSToSwitchMapping.html" title="interface in org.apache.hadoop.net"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 409 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 410 | <A HREF="../../../../index.html?org/apache/hadoop/net/DNS.html" target="_top"><B>FRAMES</B></A> |
---|
| 411 | <A HREF="DNS.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 412 | <SCRIPT type="text/javascript"> |
---|
| 413 | <!-- |
---|
| 414 | if(window==top) { |
---|
| 415 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 416 | } |
---|
| 417 | //--> |
---|
| 418 | </SCRIPT> |
---|
| 419 | <NOSCRIPT> |
---|
| 420 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 421 | </NOSCRIPT> |
---|
| 422 | |
---|
| 423 | |
---|
| 424 | </FONT></TD> |
---|
| 425 | </TR> |
---|
| 426 | <TR> |
---|
| 427 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 428 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 429 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 430 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 431 | </TR> |
---|
| 432 | </TABLE> |
---|
| 433 | <A NAME="skip-navbar_bottom"></A> |
---|
| 434 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 435 | |
---|
| 436 | <HR> |
---|
| 437 | Copyright © 2009 The Apache Software Foundation |
---|
| 438 | </BODY> |
---|
| 439 | </HTML> |
---|