554 lines
25 KiB
HTML
554 lines
25 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<!-- NewPage -->
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<!-- Generated by javadoc (1.8.0_151) on Tue Oct 31 17:36:47 EDT 2017 -->
|
||
|
<title>com.sleepycat.je.rep (Oracle - Berkeley DB Java Edition API)</title>
|
||
|
<meta name="date" content="2017-10-31">
|
||
|
<link rel="stylesheet" type="text/css" href="../../../../style.css" title="Style">
|
||
|
<script type="text/javascript" src="../../../../script.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script type="text/javascript"><!--
|
||
|
try {
|
||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||
|
parent.document.title="com.sleepycat.je.rep (Oracle - Berkeley DB Java Edition API)";
|
||
|
}
|
||
|
}
|
||
|
catch(err) {
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
<noscript>
|
||
|
<div>JavaScript is disabled on your browser.</div>
|
||
|
</noscript>
|
||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
<div class="topNav"><a name="navbar.top">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||
|
<a name="navbar.top.firstrow">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="navList" title="Navigation">
|
||
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
||
|
<li class="navBarCell1Rev">Package</li>
|
||
|
<li>Class</li>
|
||
|
<li><a href="package-use.html">Use</a></li>
|
||
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
||
|
<li><a href="../../../../index-all.html">Index</a></li>
|
||
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
||
|
</ul>
|
||
|
<div class="aboutLanguage"><b>Berkeley DB Java Edition</b><br><font size=\"-1\"> version 7.5.11</font>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="subNav">
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../../com/sleepycat/je/jmx/package-summary.html">Prev Package</a></li>
|
||
|
<li><a href="../../../../com/sleepycat/je/rep/arbiter/package-summary.html">Next Package</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../../index.html?com/sleepycat/je/rep/package-summary.html" target="_top">Frames</a></li>
|
||
|
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList" id="allclasses_navbar_top">
|
||
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
||
|
</ul>
|
||
|
<div>
|
||
|
<script type="text/javascript"><!--
|
||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||
|
if(window==top) {
|
||
|
allClassesLink.style.display = "block";
|
||
|
}
|
||
|
else {
|
||
|
allClassesLink.style.display = "none";
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
</div>
|
||
|
<a name="skip.navbar.top">
|
||
|
<!-- -->
|
||
|
</a></div>
|
||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
<div class="header">
|
||
|
<h1 title="Package" class="title">Package com.sleepycat.je.rep</h1>
|
||
|
<div class="docSummary">
|
||
|
<div class="block"><div id="index">
|
||
|
Berkeley DB Java Edition High Availability (JE HA) enables replication of JE
|
||
|
environments.</div>
|
||
|
</div>
|
||
|
<p>See: <a href="#package.description">Description</a></p>
|
||
|
</div>
|
||
|
<div class="contentContainer">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
|
||
|
<caption><span>Interface Summary</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Interface</th>
|
||
|
<th class="colLast" scope="col">Description</th>
|
||
|
</tr>
|
||
|
<tbody>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/AppStateMonitor.html" title="interface in com.sleepycat.je.rep">AppStateMonitor</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">A mechanism for adding application specific information when asynchronously
|
||
|
tracking the state of a running JE HA application.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicationNode.html" title="interface in com.sleepycat.je.rep">ReplicationNode</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">An administrative view of a node in a replication group.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/StateChangeListener.html" title="interface in com.sleepycat.je.rep">StateChangeListener</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">An asynchronous mechanism for tracking the <a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.State.html" title="enum in com.sleepycat.je.rep"><code>State</code></a> of the replicated environment and
|
||
|
choosing how to route database operations.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</li>
|
||
|
<li class="blockList">
|
||
|
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
|
||
|
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Class</th>
|
||
|
<th class="colLast" scope="col">Description</th>
|
||
|
</tr>
|
||
|
<tbody>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/CommitPointConsistencyPolicy.html" title="class in com.sleepycat.je.rep">CommitPointConsistencyPolicy</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">A consistency policy which ensures that the environment on a Replica node is
|
||
|
at least as current as denoted by the specified <a href="../../../../com/sleepycat/je/CommitToken.html" title="class in com.sleepycat.je"><code>CommitToken</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/NetworkRestore.html" title="class in com.sleepycat.je.rep">NetworkRestore</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Obtains log files for a Replica from other members of the replication
|
||
|
group.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/NetworkRestoreConfig.html" title="class in com.sleepycat.je.rep">NetworkRestoreConfig</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">NetworkRestoreConfig defines the configuration parameters used to configure
|
||
|
a NetworkRestore operation.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/NoConsistencyRequiredPolicy.html" title="class in com.sleepycat.je.rep">NoConsistencyRequiredPolicy</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">A consistency policy that lets a transaction on a replica using this policy
|
||
|
proceed regardless of the state of the Replica relative to the Master.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/NodeState.html" title="class in com.sleepycat.je.rep">NodeState</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">The current state of a replication node and the application this node is
|
||
|
running in.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.html" title="class in com.sleepycat.je.rep">ReplicatedEnvironment</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">A replicated database environment that is a node in a replication
|
||
|
group.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironmentStats.html" title="class in com.sleepycat.je.rep">ReplicatedEnvironmentStats</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Statistics for a replicated environment.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicationConfig.html" title="class in com.sleepycat.je.rep">ReplicationConfig</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Specifies the immutable attributes of a replicated environment.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicationGroup.html" title="class in com.sleepycat.je.rep">ReplicationGroup</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">An administrative view of the collection of nodes that form the replication
|
||
|
group.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicationMutableConfig.html" title="class in com.sleepycat.je.rep">ReplicationMutableConfig</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Specifies the attributes that may be changed after a <a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.html" title="class in com.sleepycat.je.rep"><code>ReplicatedEnvironment</code></a> has been created.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/StateChangeEvent.html" title="class in com.sleepycat.je.rep">StateChangeEvent</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Communicates the <a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.State.html" title="enum in com.sleepycat.je.rep"><code>state</code></a> change at a node
|
||
|
to the StateChangeListener.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/TimeConsistencyPolicy.html" title="class in com.sleepycat.je.rep">TimeConsistencyPolicy</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">A consistency policy which describes the amount of time the Replica is
|
||
|
allowed to lag the Master.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</li>
|
||
|
<li class="blockList">
|
||
|
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Summary table, listing enums, and an explanation">
|
||
|
<caption><span>Enum Summary</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Enum</th>
|
||
|
<th class="colLast" scope="col">Description</th>
|
||
|
</tr>
|
||
|
<tbody>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/NodeType.html" title="enum in com.sleepycat.je.rep">NodeType</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">The different types of nodes that can be in a replication group.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/QuorumPolicy.html" title="enum in com.sleepycat.je.rep">QuorumPolicy</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">The quorum policy determine the number of nodes that must participate to
|
||
|
pick the winner of an election, and therefore the master of the group.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.State.html" title="enum in com.sleepycat.je.rep">ReplicatedEnvironment.State</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">The replication node state determines the operations that the
|
||
|
application can perform against its replicated environment.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/SyncupProgress.html" title="enum in com.sleepycat.je.rep">SyncupProgress</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Describes the different phases of replication stream syncup that are
|
||
|
executed when a replica starts working with a new replication group master.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</li>
|
||
|
<li class="blockList">
|
||
|
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Exception Summary table, listing exceptions, and an explanation">
|
||
|
<caption><span>Exception Summary</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Exception</th>
|
||
|
<th class="colLast" scope="col">Description</th>
|
||
|
</tr>
|
||
|
<tbody>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/DatabasePreemptedException.html" title="class in com.sleepycat.je.rep">DatabasePreemptedException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Thrown when attempting to use a Database handle that was forcibly closed by
|
||
|
replication.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/GroupShutdownException.html" title="class in com.sleepycat.je.rep">GroupShutdownException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Thrown when an attempt is made to access an environment that was
|
||
|
shutdown by the Master as a result of a call to
|
||
|
<a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.html#shutdownGroup-long-java.util.concurrent.TimeUnit-"><code>ReplicatedEnvironment.shutdownGroup(long, TimeUnit)</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/InsufficientAcksException.html" title="class in com.sleepycat.je.rep">InsufficientAcksException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">
|
||
|
This exception is thrown at the time of a commit in a Master, if the Master
|
||
|
could not obtain transaction commit acknowledgments from its Replicas in
|
||
|
accordance with the <a href="../../../../com/sleepycat/je/Durability.ReplicaAckPolicy.html" title="enum in com.sleepycat.je"><code>Durability.ReplicaAckPolicy</code></a> currently in effect and within
|
||
|
the requested timeout interval.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/InsufficientLogException.html" title="class in com.sleepycat.je.rep">InsufficientLogException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">This exception indicates that the log files constituting the Environment are
|
||
|
insufficient and cannot be used as the basis for continuing with the
|
||
|
replication stream provided by the current master.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/InsufficientReplicasException.html" title="class in com.sleepycat.je.rep">InsufficientReplicasException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Thrown by <a href="../../../../com/sleepycat/je/Environment.html#beginTransaction-com.sleepycat.je.Transaction-com.sleepycat.je.TransactionConfig-"><code>Environment.beginTransaction(com.sleepycat.je.Transaction, com.sleepycat.je.TransactionConfig)</code></a> and <a href="../../../../com/sleepycat/je/Transaction.html#commit--"><code>Transaction.commit()</code></a> when these operations are initiated at a Master which is
|
||
|
not in contact with a quorum of Replicas as determined by the <a href="../../../../com/sleepycat/je/Durability.ReplicaAckPolicy.html" title="enum in com.sleepycat.je"><code>Durability.ReplicaAckPolicy</code></a> that is in effect for the operation.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/LockPreemptedException.html" title="class in com.sleepycat.je.rep">LockPreemptedException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Thrown when a lock has been "stolen", or preempted, from a transaction in a
|
||
|
replicated environment.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/LogOverwriteException.html" title="class in com.sleepycat.je.rep">LogOverwriteException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Thrown when one or more log files are modified (overwritten) as the result
|
||
|
of a replication operation.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/MasterReplicaTransitionException.html" title="class in com.sleepycat.je.rep">MasterReplicaTransitionException</a></td>
|
||
|
<td class="colLast">Deprecated
|
||
|
<div class="block"><span class="deprecationComment">as of JE 5.0.88 because the environment no longer needs to
|
||
|
restart when transitioning from master to replica.</span></div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/MasterStateException.html" title="class in com.sleepycat.je.rep">MasterStateException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">This exception indicates that the application attempted an operation that is
|
||
|
not permitted when it is in the <a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.State.html#MASTER"><code>ReplicatedEnvironment.State.MASTER</code></a>
|
||
|
state.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/MasterTransferFailureException.html" title="class in com.sleepycat.je.rep">MasterTransferFailureException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Thrown by <a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.html#transferMaster-java.util.Set-int-java.util.concurrent.TimeUnit-"><code>ReplicatedEnvironment.transferMaster(java.util.Set<java.lang.String>, int, java.util.concurrent.TimeUnit)</code></a> if a Master Transfer
|
||
|
operation cannot be completed within the allotted time.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/MemberNotFoundException.html" title="class in com.sleepycat.je.rep">MemberNotFoundException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Thrown when an operation requires a replication group member and that member
|
||
|
is not present in the replication group.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicaConsistencyException.html" title="class in com.sleepycat.je.rep">ReplicaConsistencyException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">This exception is thrown by a Replica to indicate it could not meet the
|
||
|
consistency requirements as defined by the
|
||
|
<code>ReplicaConsistencyPolicy</code> in effect for the transaction, within
|
||
|
the allowed timeout period.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicaStateException.html" title="class in com.sleepycat.je.rep">ReplicaStateException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">This exception indicates that the application attempted an operation that is
|
||
|
not permitted when it is in the <a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.State.html#REPLICA"><code>ReplicatedEnvironment.State.REPLICA</code></a>
|
||
|
state.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/ReplicaWriteException.html" title="class in com.sleepycat.je.rep">ReplicaWriteException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">This exception indicates that an update operation or transaction commit
|
||
|
or abort was attempted while in the
|
||
|
<a href="../../../../com/sleepycat/je/rep/ReplicatedEnvironment.State.html#REPLICA"><code>ReplicatedEnvironment.State.REPLICA</code></a> state.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/RestartRequiredException.html" title="class in com.sleepycat.je.rep">RestartRequiredException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">RestartRequiredException serves as the base class for all exceptions which
|
||
|
makes it impossible for HA to proceed without some form of corrective action
|
||
|
on the part of the user, followed by a restart of the application.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/RollbackException.html" title="class in com.sleepycat.je.rep">RollbackException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">This asynchronous exception indicates that a new master has been selected,
|
||
|
this <code>Replica</code>'s log is ahead of the current <code>Master</code>,
|
||
|
and in this case, the <code>Replica</code> was unable to rollback without a
|
||
|
recovery.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/RollbackProhibitedException.html" title="class in com.sleepycat.je.rep">RollbackProhibitedException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">This exception may be thrown by a Replica during the <a
|
||
|
href="../../../../../ReplicationGuide/lifecycle.html#lifecycle-nodestartup">
|
||
|
replication stream sync-up</a> phase of startup.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="rowColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/StateChangeException.html" title="class in com.sleepycat.je.rep">StateChangeException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Provides a synchronous mechanism for informing an application about a change
|
||
|
in the state of the replication node.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colFirst"><a href="../../../../com/sleepycat/je/rep/UnknownMasterException.html" title="class in com.sleepycat.je.rep">UnknownMasterException</a></td>
|
||
|
<td class="colLast">
|
||
|
<div class="block">Indicates that the underlying operation requires communication with a
|
||
|
Master, but that a Master was not available.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="package.description">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h2 title="Package com.sleepycat.je.rep Description">Package com.sleepycat.je.rep Description</h2>
|
||
|
<div class="block"><div id="index">
|
||
|
Berkeley DB Java Edition High Availability (JE HA) enables replication of JE
|
||
|
environments. JE HA is an embedded database management
|
||
|
system designed to provide fast, reliable, and scalable data
|
||
|
management. A JE environment is replicated across the nodes of a
|
||
|
single read/write Master, multiple read only Replica Replication
|
||
|
Group. JE HA is used to improve application availability, provide
|
||
|
improved read performance, and increase data durability.
|
||
|
<h3>Getting Started</h3>
|
||
|
The
|
||
|
<a href="../../../../../ReplicationGuide/index.html"
|
||
|
target="_top">Replication
|
||
|
Guide</a> is invaluable for understanding the capabilities of JE HA
|
||
|
and how best to design your replicated application.
|
||
|
<blockquote>
|
||
|
<p>
|
||
|
The
|
||
|
<a
|
||
|
href="../../../../../ReplicationGuide/introduction.html"
|
||
|
target="_top">Introduction</a>
|
||
|
covers terminology, the replication group
|
||
|
lifecycle, and the concepts of durability and consistency. Much of the
|
||
|
javadoc refers to the topics covered there.
|
||
|
<p>
|
||
|
<a
|
||
|
href="../../../../../ReplicationGuide/progoverview.html" target="_top">Replication
|
||
|
API First Steps</a> explains how to configure and start a replication
|
||
|
group.
|
||
|
<p>
|
||
|
<a
|
||
|
href="../../../../../ReplicationGuide/txn-management.html" target="_top">Transaction Management
|
||
|
</a> highlights the tradeoffs that must be considered in a replicated
|
||
|
application and provides some use cases.
|
||
|
</blockquote>
|
||
|
In addition, the
|
||
|
<a href="../../../../../examples/je/rep/quote/package-summary.html">je.rep.quote</a> example
|
||
|
package provides three example replication applications.
|
||
|
|
||
|
<h3>What the com.sleepycat.je.rep package contains</h3>
|
||
|
<h5>Replication control</h5>
|
||
|
<ul>
|
||
|
<li><code>ReplicatedEnvironment</code> is the main access point to
|
||
|
replication.</li>
|
||
|
<li><code>ReplicationConfig</code> and
|
||
|
<code>ReplicationMutableConfig</code> specify attributes of the
|
||
|
replication system.</li>
|
||
|
</ul>
|
||
|
<h5>Administration</h5>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<code>ReplicationNode</code> and <code>ReplicationGroup</code> supply
|
||
|
administrative views of the replication system.
|
||
|
</li>
|
||
|
</ul>
|
||
|
<h5>Support</h5>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<code>StateChangeListener</code> and <code>StateChangeEvent</code>
|
||
|
implement a Listener pattern for tracking changes in the replication system.
|
||
|
</li>
|
||
|
<li>
|
||
|
<code>CommitPointConsistencyPolicy</code>,
|
||
|
<code>TimeConsistencyPolicy</code> and
|
||
|
<code>NoConsistencyPolicy</code> let the user control the read only
|
||
|
replica's view of the the replicated data.
|
||
|
</li>
|
||
|
<li>
|
||
|
<code>ReplicatedEnviromentStats</code> provide feedback on system execution.
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<h3>Related Packages</h3>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<a href="../../../../com/sleepycat/je/rep/monitor/package-summary.html">com.sleepycat.je.rep.monitor</a> lets the application track
|
||
|
the replication system in order to do tasks such as load balancing and
|
||
|
write request routing.
|
||
|
</li>
|
||
|
<li>
|
||
|
<a href="../../../../com/sleepycat/je/rep/util/package-summary.html">com.sleepycat.je.rep.util</a> provides command line and
|
||
|
programmatic APIs for administering and starting up a replication
|
||
|
system.
|
||
|
</li>
|
||
|
</ul>
|
||
|
<h3>Related Documentation</h3></div>
|
||
|
<dl>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../../../ReplicationGuide/index.html" target="_blank">Replication Guide</a>,
|
||
|
<a
|
||
|
href="../../../../../examples/je/rep/quote/package-summary.html">
|
||
|
JE HA Examples</a></dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||
|
<a name="navbar.bottom.firstrow">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="navList" title="Navigation">
|
||
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
||
|
<li class="navBarCell1Rev">Package</li>
|
||
|
<li>Class</li>
|
||
|
<li><a href="package-use.html">Use</a></li>
|
||
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
||
|
<li><a href="../../../../index-all.html">Index</a></li>
|
||
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
||
|
</ul>
|
||
|
<div class="aboutLanguage"><b>Berkeley DB Java Edition</b><br><font size=\"-1\"> version 7.5.11</font>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="subNav">
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../../com/sleepycat/je/jmx/package-summary.html">Prev Package</a></li>
|
||
|
<li><a href="../../../../com/sleepycat/je/rep/arbiter/package-summary.html">Next Package</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../../index.html?com/sleepycat/je/rep/package-summary.html" target="_top">Frames</a></li>
|
||
|
<li><a href="package-summary.html" target="_top">No Frames</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
||
|
</ul>
|
||
|
<div>
|
||
|
<script type="text/javascript"><!--
|
||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||
|
if(window==top) {
|
||
|
allClassesLink.style.display = "block";
|
||
|
}
|
||
|
else {
|
||
|
allClassesLink.style.display = "none";
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
</div>
|
||
|
<a name="skip.navbar.bottom">
|
||
|
<!-- -->
|
||
|
</a></div>
|
||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
<p class="legalCopy"><small><font size=1>Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.</font> </small></p>
|
||
|
</body>
|
||
|
</html>
|