| 1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 |
<title>Getting Started with Replicated Berkeley DB Applications</title> |
| 7 |
<link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 |
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 |
<link rel="start" href="index.html" title="Getting Started with Replicated Berkeley DB Applications" /> |
| 10 |
<link rel="next" href="preface.html" title="Preface" /> |
| 11 |
</head> |
| 12 |
<body> |
| 13 |
<div xmlns="" class="navheader"> |
| 14 |
<div class="libver"> |
| 15 |
<p>Library Version 11.2.5.3</p> |
| 16 |
</div> |
| 17 |
<table width="100%" summary="Navigation header"> |
| 18 |
<tr> |
| 19 |
<th colspan="3" align="center">Getting Started with Replicated Berkeley DB Applications</th> |
| 20 |
</tr> |
| 21 |
<tr> |
| 22 |
<td width="20%" align="left"> </td> |
| 23 |
<th width="60%" align="center"> </th> |
| 24 |
<td width="20%" align="right"> <a accesskey="n" href="preface.html">Next</a></td> |
| 25 |
</tr> |
| 26 |
</table> |
| 27 |
<hr /> |
| 28 |
</div> |
| 29 |
<div class="book" lang="en" xml:lang="en"> |
| 30 |
<div class="titlepage"> |
| 31 |
<div> |
| 32 |
<div> |
| 33 |
<h1 class="title"><a id="idp99040"></a>Getting Started with Replicated Berkeley DB Applications</h1> |
| 34 |
</div> |
| 35 |
<div> |
| 36 |
<div class="legalnotice"> |
| 37 |
<a id="idm376432"></a> |
| 38 |
<p class="legalnotice-title"> |
| 39 |
<b>Legal Notice</b> |
| 40 |
</p> |
| 41 |
<span> |
| 42 |
<p> |
| 43 |
This documentation is distributed under an open source license. |
| 44 |
You may review the terms of this license at: |
| 45 |
<a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/oslicense-093458.html" target="_top">http://www.oracle.com/technetwork/database/berkeleydb/downloads/oslicense-093458.html</a> |
| 46 |
|
| 47 |
|
| 48 |
</p> |
| 49 |
|
| 50 |
<p> |
| 51 |
Oracle, Berkeley DB, |
| 52 |
|
| 53 |
|
| 54 |
and |
| 55 |
Sleepycat are trademarks or registered trademarks of |
| 56 |
Oracle. All rights to these marks are reserved. |
| 57 |
No third-party use is permitted without the |
| 58 |
express prior written consent of Oracle. |
| 59 |
</p> |
| 60 |
<p> |
| 61 |
<span class="trademark">Java</span>™ and all Java-based marks are a trademark |
| 62 |
or registered trademark of Sun Microsystems, |
| 63 |
Inc, in the United States and other countries. |
| 64 |
</p> |
| 65 |
<p> |
| 66 |
Other names may be trademarks of their respective owners. |
| 67 |
</p> |
| 68 |
<p> |
| 69 |
To obtain a copy of this document's original source code, please |
| 70 |
submit a request to the Oracle Technology Network forum at: |
| 71 |
<a class="ulink" href="http://forums.oracle.com/forums/forum.jspa?forumID=271" target="_top">http://forums.oracle.com/forums/forum.jspa?forumID=271</a> |
| 72 |
|
| 73 |
|
| 74 |
</p> |
| 75 |
</span> |
| 76 |
</div> |
| 77 |
</div> |
| 78 |
<div> |
| 79 |
<p class="pubdate">9/9/2013</p> |
| 80 |
</div> |
| 81 |
</div> |
| 82 |
<hr /> |
| 83 |
</div> |
| 84 |
<div class="toc"> |
| 85 |
<p> |
| 86 |
<b>Table of Contents</b> |
| 87 |
</p> |
| 88 |
<dl> |
| 89 |
<dt> |
| 90 |
<span class="preface"> |
| 91 |
<a href="preface.html">Preface</a> |
| 92 |
</span> |
| 93 |
</dt> |
| 94 |
<dd> |
| 95 |
<dl> |
| 96 |
<dt> |
| 97 |
<span class="sect1"> |
| 98 |
<a href="preface.html#conventions">Conventions Used in this Book</a> |
| 99 |
</span> |
| 100 |
</dt> |
| 101 |
<dt> |
| 102 |
<span class="sect1"> |
| 103 |
<a href="moreinfo.html">For More Information</a> |
| 104 |
</span> |
| 105 |
</dt> |
| 106 |
<dd> |
| 107 |
<dl> |
| 108 |
<dt> |
| 109 |
<span class="sect2"> |
| 110 |
<a href="moreinfo.html#contact_us">Contact Us</a> |
| 111 |
</span> |
| 112 |
</dt> |
| 113 |
</dl> |
| 114 |
</dd> |
| 115 |
</dl> |
| 116 |
</dd> |
| 117 |
<dt> |
| 118 |
<span class="chapter"> |
| 119 |
<a href="introduction.html">1. Introduction</a> |
| 120 |
</span> |
| 121 |
</dt> |
| 122 |
<dd> |
| 123 |
<dl> |
| 124 |
<dt> |
| 125 |
<span class="sect1"> |
| 126 |
<a href="introduction.html#overview">Overview</a> |
| 127 |
</span> |
| 128 |
</dt> |
| 129 |
<dd> |
| 130 |
<dl> |
| 131 |
<dt> |
| 132 |
<span class="sect2"> |
| 133 |
<a href="introduction.html#repenvirons">Replication Environments</a> |
| 134 |
</span> |
| 135 |
</dt> |
| 136 |
<dt> |
| 137 |
<span class="sect2"> |
| 138 |
<a href="introduction.html#repdbs">Replication Databases</a> |
| 139 |
</span> |
| 140 |
</dt> |
| 141 |
<dt> |
| 142 |
<span class="sect2"> |
| 143 |
<a href="introduction.html#commlayer">Communications Layer</a> |
| 144 |
</span> |
| 145 |
</dt> |
| 146 |
<dt> |
| 147 |
<span class="sect2"> |
| 148 |
<a href="introduction.html#masterselect">Selecting a Master</a> |
| 149 |
</span> |
| 150 |
</dt> |
| 151 |
</dl> |
| 152 |
</dd> |
| 153 |
<dt> |
| 154 |
<span class="sect1"> |
| 155 |
<a href="repadvantage.html">Replication Benefits</a> |
| 156 |
</span> |
| 157 |
</dt> |
| 158 |
<dt> |
| 159 |
<span class="sect1"> |
| 160 |
<a href="apioverview.html">The Replication APIs</a> |
| 161 |
</span> |
| 162 |
</dt> |
| 163 |
<dd> |
| 164 |
<dl> |
| 165 |
<dt> |
| 166 |
<span class="sect2"> |
| 167 |
<a href="apioverview.html#repframeworkoverview">Replication Manager Overview</a> |
| 168 |
</span> |
| 169 |
</dt> |
| 170 |
<dt> |
| 171 |
<span class="sect2"> |
| 172 |
<a href="apioverview.html#repapioverview">Replication Base API Overview</a> |
| 173 |
</span> |
| 174 |
</dt> |
| 175 |
</dl> |
| 176 |
</dd> |
| 177 |
<dt> |
| 178 |
<span class="sect1"> |
| 179 |
<a href="elections.html">Holding Elections</a> |
| 180 |
</span> |
| 181 |
</dt> |
| 182 |
<dd> |
| 183 |
<dl> |
| 184 |
<dt> |
| 185 |
<span class="sect2"> |
| 186 |
<a href="elections.html#influencingelections">Influencing Elections</a> |
| 187 |
</span> |
| 188 |
</dt> |
| 189 |
<dt> |
| 190 |
<span class="sect2"> |
| 191 |
<a href="elections.html#winningelections">Winning Elections</a> |
| 192 |
</span> |
| 193 |
</dt> |
| 194 |
<dt> |
| 195 |
<span class="sect2"> |
| 196 |
<a href="elections.html#switchingmasters">Switching Masters</a> |
| 197 |
</span> |
| 198 |
</dt> |
| 199 |
</dl> |
| 200 |
</dd> |
| 201 |
<dt> |
| 202 |
<span class="sect1"> |
| 203 |
<a href="permmessages.html">Permanent Message Handling</a> |
| 204 |
</span> |
| 205 |
</dt> |
| 206 |
<dd> |
| 207 |
<dl> |
| 208 |
<dt> |
| 209 |
<span class="sect2"> |
| 210 |
<a href="permmessages.html#permmessagenot">When Not to Manage |
| 211 |
Permanent Messages</a> |
| 212 |
</span> |
| 213 |
</dt> |
| 214 |
<dt> |
| 215 |
<span class="sect2"> |
| 216 |
<a href="permmessages.html#permmanage">Managing Permanent Messages</a> |
| 217 |
</span> |
| 218 |
</dt> |
| 219 |
<dt> |
| 220 |
<span class="sect2"> |
| 221 |
<a href="permmessages.html#permimplement">Implementing Permanent |
| 222 |
Message Handling</a> |
| 223 |
</span> |
| 224 |
</dt> |
| 225 |
</dl> |
| 226 |
</dd> |
| 227 |
</dl> |
| 228 |
</dd> |
| 229 |
<dt> |
| 230 |
<span class="chapter"> |
| 231 |
<a href="txnapp.html">2. Transactional Application</a> |
| 232 |
</span> |
| 233 |
</dt> |
| 234 |
<dd> |
| 235 |
<dl> |
| 236 |
<dt> |
| 237 |
<span class="sect1"> |
| 238 |
<a href="txnapp.html#appoverview">Application Overview</a> |
| 239 |
</span> |
| 240 |
</dt> |
| 241 |
<dt> |
| 242 |
<span class="sect1"> |
| 243 |
<a href="simpleprogramlisting.html">Program Listing</a> |
| 244 |
</span> |
| 245 |
</dt> |
| 246 |
<dd> |
| 247 |
<dl> |
| 248 |
<dt> |
| 249 |
<span class="sect2"> |
| 250 |
<a href="simpleprogramlisting.html#repconfiginfo_cxx"> |
| 251 |
|
| 252 |
<span>Class: RepConfig</span> |
| 253 |
</a> |
| 254 |
</span> |
| 255 |
</dt> |
| 256 |
<dt> |
| 257 |
<span class="sect2"> |
| 258 |
<a href="simpleprogramlisting.html#simpletxnusage_java">Class: SimpleTxn</a> |
| 259 |
</span> |
| 260 |
</dt> |
| 261 |
<dt> |
| 262 |
<span class="sect2"> |
| 263 |
<a href="simpleprogramlisting.html#simpletxnmain_java">Method: SimpleTxn.main()</a> |
| 264 |
</span> |
| 265 |
</dt> |
| 266 |
<dt> |
| 267 |
<span class="sect2"> |
| 268 |
<a href="simpleprogramlisting.html#simpletxn_init_java">Method: SimpleTxn.init()</a> |
| 269 |
</span> |
| 270 |
</dt> |
| 271 |
<dt> |
| 272 |
<span class="sect2"> |
| 273 |
<a href="simpleprogramlisting.html#doloop_java">Method: SimpleTxn.doloop()</a> |
| 274 |
</span> |
| 275 |
</dt> |
| 276 |
<dt> |
| 277 |
<span class="sect2"> |
| 278 |
<a href="simpleprogramlisting.html#printstocks_c"> |
| 279 |
|
| 280 |
|
| 281 |
<span>Method: SimpleTxn.printStocks()</span> |
| 282 |
</a> |
| 283 |
</span> |
| 284 |
</dt> |
| 285 |
</dl> |
| 286 |
</dd> |
| 287 |
</dl> |
| 288 |
</dd> |
| 289 |
<dt> |
| 290 |
<span class="chapter"> |
| 291 |
<a href="repapp.html">3. The DB Replication Manager</a> |
| 292 |
</span> |
| 293 |
</dt> |
| 294 |
<dd> |
| 295 |
<dl> |
| 296 |
<dt> |
| 297 |
<span class="sect1"> |
| 298 |
<a href="repapp.html#rep_init_code"> |
| 299 |
Starting and Stopping Replication |
| 300 |
</a> |
| 301 |
</span> |
| 302 |
</dt> |
| 303 |
<dd> |
| 304 |
<dl> |
| 305 |
<dt> |
| 306 |
<span class="sect2"> |
| 307 |
<a href="repapp.html#election_flags">Managing Election Policies</a> |
| 308 |
</span> |
| 309 |
</dt> |
| 310 |
<dt> |
| 311 |
<span class="sect2"> |
| 312 |
<a href="repapp.html#thread_count">Selecting the Number of Threads</a> |
| 313 |
</span> |
| 314 |
</dt> |
| 315 |
</dl> |
| 316 |
</dd> |
| 317 |
<dt> |
| 318 |
<span class="sect1"> |
| 319 |
<a href="repmgr_init_example_c.html">Adding the Replication Manager to |
| 320 |
|
| 321 |
|
| 322 |
<span>SimpleTxn</span> |
| 323 |
</a> |
| 324 |
</span> |
| 325 |
</dt> |
| 326 |
<dt> |
| 327 |
<span class="sect1"> |
| 328 |
<a href="fwrkpermmessage.html">Permanent Message Handling</a> |
| 329 |
</span> |
| 330 |
</dt> |
| 331 |
<dd> |
| 332 |
<dl> |
| 333 |
<dt> |
| 334 |
<span class="sect2"> |
| 335 |
<a href="fwrkpermmessage.html#fmwrkpermpolicy">Identifying Permanent Message Policies</a> |
| 336 |
</span> |
| 337 |
</dt> |
| 338 |
<dt> |
| 339 |
<span class="sect2"> |
| 340 |
<a href="fwrkpermmessage.html#fmwrkpermtimeout">Setting the Permanent Message Timeout</a> |
| 341 |
</span> |
| 342 |
</dt> |
| 343 |
<dt> |
| 344 |
<span class="sect2"> |
| 345 |
<a href="fwrkpermmessage.html#perm2fmwrkexample">Adding a Permanent Message Policy to |
| 346 |
|
| 347 |
|
| 348 |
<span>RepQuoteExampleGSG</span> |
| 349 |
</a> |
| 350 |
</span> |
| 351 |
</dt> |
| 352 |
</dl> |
| 353 |
</dd> |
| 354 |
<dt> |
| 355 |
<span class="sect1"> |
| 356 |
<a href="electiontimes.html">Managing Election Times</a> |
| 357 |
</span> |
| 358 |
</dt> |
| 359 |
<dd> |
| 360 |
<dl> |
| 361 |
<dt> |
| 362 |
<span class="sect2"> |
| 363 |
<a href="electiontimes.html#electiontimeout">Managing Election Timeouts</a> |
| 364 |
</span> |
| 365 |
</dt> |
| 366 |
<dt> |
| 367 |
<span class="sect2"> |
| 368 |
<a href="electiontimes.html#electretrytime">Managing Election Retry Times</a> |
| 369 |
</span> |
| 370 |
</dt> |
| 371 |
</dl> |
| 372 |
</dd> |
| 373 |
<dt> |
| 374 |
<span class="sect1"> |
| 375 |
<a href="fmwrkconnectretry.html">Managing Connection Retries</a> |
| 376 |
</span> |
| 377 |
</dt> |
| 378 |
<dt> |
| 379 |
<span class="sect1"> |
| 380 |
<a href="heartbeats.html">Managing Heartbeats</a> |
| 381 |
</span> |
| 382 |
</dt> |
| 383 |
</dl> |
| 384 |
</dd> |
| 385 |
<dt> |
| 386 |
<span class="chapter"> |
| 387 |
<a href="fwrkmasterreplica.html">4. Replica versus Master Processes</a> |
| 388 |
</span> |
| 389 |
</dt> |
| 390 |
<dd> |
| 391 |
<dl> |
| 392 |
<dt> |
| 393 |
<span class="sect1"> |
| 394 |
<a href="fwrkmasterreplica.html#determinestate">Determining State</a> |
| 395 |
</span> |
| 396 |
</dt> |
| 397 |
<dt> |
| 398 |
<span class="sect1"> |
| 399 |
<a href="processingloop.html">Processing Loop</a> |
| 400 |
</span> |
| 401 |
</dt> |
| 402 |
<dt> |
| 403 |
<span class="sect1"> |
| 404 |
<a href="exampledoloop.html">Example Processing Loop</a> |
| 405 |
</span> |
| 406 |
</dt> |
| 407 |
<dd> |
| 408 |
<dl> |
| 409 |
<dt> |
| 410 |
<span class="sect2"> |
| 411 |
<a href="exampledoloop.html#runningit">Running It</a> |
| 412 |
</span> |
| 413 |
</dt> |
| 414 |
</dl> |
| 415 |
</dd> |
| 416 |
</dl> |
| 417 |
</dd> |
| 418 |
<dt> |
| 419 |
<span class="chapter"> |
| 420 |
<a href="addfeatures.html">5. Additional Features</a> |
| 421 |
</span> |
| 422 |
</dt> |
| 423 |
<dd> |
| 424 |
<dl> |
| 425 |
<dt> |
| 426 |
<span class="sect1"> |
| 427 |
<a href="addfeatures.html#delayedsync">Delayed Synchronization</a> |
| 428 |
</span> |
| 429 |
</dt> |
| 430 |
<dt> |
| 431 |
<span class="sect1"> |
| 432 |
<a href="manageblock.html">Managing Blocking Operations</a> |
| 433 |
</span> |
| 434 |
</dt> |
| 435 |
<dt> |
| 436 |
<span class="sect1"> |
| 437 |
<a href="autoinit.html">Stop Auto-Initialization</a> |
| 438 |
</span> |
| 439 |
</dt> |
| 440 |
<dt> |
| 441 |
<span class="sect1"> |
| 442 |
<a href="rywc.html">Read-Your-Writes Consistency</a> |
| 443 |
</span> |
| 444 |
</dt> |
| 445 |
<dt> |
| 446 |
<span class="sect1"> |
| 447 |
<a href="c2ctransfer.html">Client to Client Transfer</a> |
| 448 |
</span> |
| 449 |
</dt> |
| 450 |
<dd> |
| 451 |
<dl> |
| 452 |
<dt> |
| 453 |
<span class="sect2"> |
| 454 |
<a href="c2ctransfer.html#fmwrkpeerserver">Identifying Peers</a> |
| 455 |
</span> |
| 456 |
</dt> |
| 457 |
</dl> |
| 458 |
</dd> |
| 459 |
<dt> |
| 460 |
<span class="sect1"> |
| 461 |
<a href="bulk.html">Bulk Transfers</a> |
| 462 |
</span> |
| 463 |
</dt> |
| 464 |
</dl> |
| 465 |
</dd> |
| 466 |
</dl> |
| 467 |
</div> |
| 468 |
</div> |
| 469 |
<div class="navfooter"> |
| 470 |
<hr /> |
| 471 |
<table width="100%" summary="Navigation footer"> |
| 472 |
<tr> |
| 473 |
<td width="40%" align="left"> </td> |
| 474 |
<td width="20%" align="center"> </td> |
| 475 |
<td width="40%" align="right"> <a accesskey="n" href="preface.html">Next</a></td> |
| 476 |
</tr> |
| 477 |
<tr> |
| 478 |
<td width="40%" align="left" valign="top"> </td> |
| 479 |
<td width="20%" align="center"> </td> |
| 480 |
<td width="40%" align="right" valign="top"> Preface</td> |
| 481 |
</tr> |
| 482 |
</table> |
| 483 |
</div> |
| 484 |
</body> |
| 485 |
</html> |