Table of Contents
This document describes how to write replicated Berkeley DB applications for Berkeley DB version 4.8. The APIs used to implement replication in your application are described here. This book describes the concepts surrounding replication, the scenarios under which you might choose to use it, and the architectural requirements that a replication application has over a transactional application.
This book is aimed at the software engineer responsible for writing a replicated DB application.
This book assumes that you have already read and understood the concepts contained in the Berkeley DB Getting Started with Transaction Processing guide.
The following typographical conventions are used within in this manual:
Class names are represented in monospaced font
, as are method
names
. For example:
"The Environment()
constructor returns an Environment
class object."
Variable or non-literal text is presented in italics. For example: "Go to your DB_INSTALL directory."
Program examples are displayed in a monospaced font
on a shaded background.
For example:
import com.sleepycat.db.DatabaseConfig; ... // Allow the database to be created. DatabaseConfig myDbConfig = new DatabaseConfig(); myDbConfig.setAllowCreate(true);
In some situations, programming examples are updated from one chapter to the next. When
this occurs, the new code is presented in monospaced bold
font. For example:
import com.sleepycat.db.Database;
import com.sleepycat.db.DatabaseConfig; ... // Allow the database to be created. DatabaseConfig myDbConfig = new DatabaseConfig(); myDbConfig.setAllowCreate(true);Database myDb = new Database("mydb.db", null, myDbConfig);
Finally, notes of special interest are represented using a note block such as this.
Beyond this manual, you may also find the following sources of information useful when building a transactional DB application: