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_03) on Mon Apr 12 16:25:47 EDT 2010 --> 6<TITLE> 7ReplicationHostAddress (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="date" CONTENT="2010-04-12"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.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="ReplicationHostAddress (Oracle - Berkeley DB Java 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/ReplicationHostAddress.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<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 53</TD> 54</TR> 55 56<TR> 57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="../../../com/sleepycat/db/ReplicationHoldElectionException.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 59 <A HREF="../../../com/sleepycat/db/ReplicationJoinFailureException.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 61 <A HREF="../../../index.html?com/sleepycat/db/ReplicationHostAddress.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="ReplicationHostAddress.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 81DETAIL: <A HREF="#field_detail">FIELD</A> | <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"> 91com.sleepycat.db</FONT> 92<BR> 93Class ReplicationHostAddress</H2> 94<PRE> 95<A HREF="http://java.sun.com/j2se/1.5.0/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>com.sleepycat.db.ReplicationHostAddress</B> 97</PRE> 98<HR> 99<DL> 100<DT><PRE>public class <B>ReplicationHostAddress</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> 101</PRE> 102 103<P> 104A simple wrapper class to hold information needed to define 105a host in a replication group. 106<p> 107The ReplicationHostAddress can be used to refer to the current 108site, or to a remote site in the replication group. 109<p> 110Used in the <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#replicationManagerAddRemoteSite(com.sleepycat.db.ReplicationHostAddress, boolean)"><CODE>EnvironmentConfig.replicationManagerAddRemoteSite</CODE></A> 111and the <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationManagerLocalSite(com.sleepycat.db.ReplicationHostAddress)"><CODE>EnvironmentConfig.setReplicationManagerLocalSite</CODE></A> 112methods. 113<P> 114 115<P> 116<HR> 117 118<P> 119<!-- =========== FIELD SUMMARY =========== --> 120 121<A NAME="field_summary"><!-- --></A> 122<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 123<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 124<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 125<B>Field Summary</B></FONT></TH> 126</TR> 127<TR BGCOLOR="white" CLASS="TableRowColor"> 128<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 129<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 130<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationHostAddress.html#host">host</A></B></CODE> 131 132<BR> 133 The name component of the site address.</TD> 134</TR> 135<TR BGCOLOR="white" CLASS="TableRowColor"> 136<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 137<CODE> int</CODE></FONT></TD> 138<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationHostAddress.html#port">port</A></B></CODE> 139 140<BR> 141 The network port component of the site address.</TD> 142</TR> 143</TABLE> 144 145<!-- ======== CONSTRUCTOR SUMMARY ======== --> 146 147<A NAME="constructor_summary"><!-- --></A> 148<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 149<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 150<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 151<B>Constructor Summary</B></FONT></TH> 152</TR> 153<TR BGCOLOR="white" CLASS="TableRowColor"> 154<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationHostAddress.html#ReplicationHostAddress()">ReplicationHostAddress</A></B>()</CODE> 155 156<BR> 157 Create a ReplicationHostAddress with default settings.</TD> 158</TR> 159<TR BGCOLOR="white" CLASS="TableRowColor"> 160<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationHostAddress.html#ReplicationHostAddress(java.lang.String, int)">ReplicationHostAddress</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> host, 161 int port)</CODE> 162 163<BR> 164 Create a ReplicationHostAddress with user defined host and port information.</TD> 165</TR> 166</TABLE> 167 168<!-- ========== METHOD SUMMARY =========== --> 169 170<A NAME="method_summary"><!-- --></A> 171<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 172<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 173<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 174<B>Method Summary</B></FONT></TH> 175</TR> 176<TR BGCOLOR="white" CLASS="TableRowColor"> 177<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 178<CODE> boolean</CODE></FONT></TD> 179<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationHostAddress.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> o)</CODE> 180 181<BR> 182 </TD> 183</TR> 184<TR BGCOLOR="white" CLASS="TableRowColor"> 185<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 186<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/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="../../../com/sleepycat/db/ReplicationHostAddress.html#toString()">toString</A></B>()</CODE> 188 189<BR> 190 </TD> 191</TR> 192</TABLE> 193 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 194<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 195<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 196<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 197</TR> 198<TR BGCOLOR="white" CLASS="TableRowColor"> 199<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/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/j2se/1.5.0/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/j2se/1.5.0/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/j2se/1.5.0/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/j2se/1.5.0/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/j2se/1.5.0/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/j2se/1.5.0/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/j2se/1.5.0/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/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 200</TR> 201</TABLE> 202 203<P> 204 205<!-- ============ FIELD DETAIL =========== --> 206 207<A NAME="field_detail"><!-- --></A> 208<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 209<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 210<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 211<B>Field Detail</B></FONT></TH> 212</TR> 213</TABLE> 214 215<A NAME="port"><!-- --></A><H3> 216port</H3> 217<PRE> 218public int <B>port</B></PRE> 219<DL> 220<DD>The network port component of the site address. 221<P> 222<DL> 223</DL> 224</DL> 225<HR> 226 227<A NAME="host"><!-- --></A><H3> 228host</H3> 229<PRE> 230public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>host</B></PRE> 231<DL> 232<DD>The name component of the site address. Can be a fully qualified 233 name, or a dotted format address in String format. 234<P> 235<DL> 236</DL> 237</DL> 238 239<!-- ========= CONSTRUCTOR DETAIL ======== --> 240 241<A NAME="constructor_detail"><!-- --></A> 242<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 243<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 244<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 245<B>Constructor Detail</B></FONT></TH> 246</TR> 247</TABLE> 248 249<A NAME="ReplicationHostAddress()"><!-- --></A><H3> 250ReplicationHostAddress</H3> 251<PRE> 252public <B>ReplicationHostAddress</B>()</PRE> 253<DL> 254<DD>Create a ReplicationHostAddress with default settings. 255 <p> 256 This is likely not what you want. The current default is 257 host: localhost and port 0. 258 <p> 259 Only use this constructor if you plan to configure the object 260 fields manually after construction. 261<P> 262</DL> 263<HR> 264 265<A NAME="ReplicationHostAddress(java.lang.String, int)"><!-- --></A><H3> 266ReplicationHostAddress</H3> 267<PRE> 268public <B>ReplicationHostAddress</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> host, 269 int port)</PRE> 270<DL> 271<DD>Create a ReplicationHostAddress with user defined host and port information. 272<P> 273</DL> 274 275<!-- ============ METHOD DETAIL ========== --> 276 277<A NAME="method_detail"><!-- --></A> 278<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 279<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 280<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 281<B>Method Detail</B></FONT></TH> 282</TR> 283</TABLE> 284 285<A NAME="toString()"><!-- --></A><H3> 286toString</H3> 287<PRE> 288public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE> 289<DL> 290<DD> 291<P> 292<DD><DL> 293<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/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/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> 294</DD> 295<DD><DL> 296</DL> 297</DD> 298</DL> 299<HR> 300 301<A NAME="equals(java.lang.Object)"><!-- --></A><H3> 302equals</H3> 303<PRE> 304public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> o)</PRE> 305<DL> 306<DD> 307<P> 308<DD><DL> 309<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> 310</DD> 311<DD><DL> 312</DL> 313</DD> 314</DL> 315<!-- ========= END OF CLASS DATA ========= --> 316<HR> 317 318 319<!-- ======= START OF BOTTOM NAVBAR ====== --> 320<A NAME="navbar_bottom"><!-- --></A> 321<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 322<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 323<TR> 324<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 325<A NAME="navbar_bottom_firstrow"><!-- --></A> 326<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 327 <TR ALIGN="center" VALIGN="top"> 328 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 329 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 330 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 331 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ReplicationHostAddress.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 332 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 333 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 334 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 335 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 336 </TR> 337</TABLE> 338</TD> 339<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 340<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 341</TD> 342</TR> 343 344<TR> 345<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 346 <A HREF="../../../com/sleepycat/db/ReplicationHoldElectionException.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 347 <A HREF="../../../com/sleepycat/db/ReplicationJoinFailureException.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 348<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 349 <A HREF="../../../index.html?com/sleepycat/db/ReplicationHostAddress.html" target="_top"><B>FRAMES</B></A> 350 <A HREF="ReplicationHostAddress.html" target="_top"><B>NO FRAMES</B></A> 351 <SCRIPT type="text/javascript"> 352 <!-- 353 if(window==top) { 354 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 355 } 356 //--> 357</SCRIPT> 358<NOSCRIPT> 359 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 360</NOSCRIPT> 361 362 363</FONT></TD> 364</TR> 365<TR> 366<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 367 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 368<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 369DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 370</TR> 371</TABLE> 372<A NAME="skip-navbar_bottom"></A> 373<!-- ======== END OF BOTTOM NAVBAR ======= --> 374 375<HR> 376<font size=1>Copyright (c) 1996-2009 Oracle. All rights reserved.</font> 377</BODY> 378</HTML> 379