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