blob: 175e68e113efd343eb311ab9c00c1e692d985a50 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>ReplicationManager (ActiveMQ Artemis Website 2.29.0 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.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="ReplicationManager (ActiveMQ Artemis Website 2.29.0 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ReplicationManager.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="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses.html">All&nbsp;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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.activemq.artemis.core.replication</a></div>
<h2 title="Class ReplicationManager" class="title">Class ReplicationManager</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.activemq.artemis.core.replication.ReplicationManager</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">ActiveMQComponent</a></code></dd>
</dl>
<hr>
<pre>public final class <span class="typeNameLabel">ReplicationManager</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>
implements <a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">ActiveMQComponent</a></pre>
<div class="block">Manages replication tasks on the live server (that is the live server side of a "remote backup"
use case).
<p>
Its equivalent in the backup server is <a href="ReplicationEndpoint.html" title="class in org.apache.activemq.artemis.core.replication"><code>ReplicationEndpoint</code></a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="ReplicationEndpoint.html" title="class in org.apache.activemq.artemis.core.replication"><code>ReplicationEndpoint</code></a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="ReplicationManager.ADD_OPERATION_TYPE.html" title="enum in org.apache.activemq.artemis.core.replication">ReplicationManager.ADD_OPERATION_TYPE</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.apache.activemq.artemis.core.server.ActiveMQServer,org.apache.activemq.artemis.core.protocol.core.CoreRemotingConnection,long,long,org.apache.activemq.artemis.utils.ExecutorFactory)">ReplicationManager</a></span>&#8203;(<a href="../server/ActiveMQServer.html" title="interface in org.apache.activemq.artemis.core.server">ActiveMQServer</a>&nbsp;server,
<a href="../protocol/core/CoreRemotingConnection.html" title="interface in org.apache.activemq.artemis.core.protocol.core">CoreRemotingConnection</a>&nbsp;remotingConnection,
long&nbsp;timeout,
long&nbsp;initialReplicationSyncTimeout,
org.apache.activemq.artemis.utils.ExecutorFactory&nbsp;ioExecutorFactory)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendAddRecordTransactional(byte,org.apache.activemq.artemis.core.replication.ReplicationManager.ADD_OPERATION_TYPE,long,long,byte,org.apache.activemq.artemis.core.persistence.Persister,java.lang.Object)">appendAddRecordTransactional</a></span>&#8203;(byte&nbsp;journalID,
<a href="ReplicationManager.ADD_OPERATION_TYPE.html" title="enum in org.apache.activemq.artemis.core.replication">ReplicationManager.ADD_OPERATION_TYPE</a>&nbsp;operation,
long&nbsp;txID,
long&nbsp;id,
byte&nbsp;recordType,
<a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/persistence/Persister.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.persistence" class="externalLink">Persister</a>&nbsp;persister,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;record)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendCommitRecord(byte,long,boolean,boolean)">appendCommitRecord</a></span>&#8203;(byte&nbsp;journalID,
long&nbsp;txID,
boolean&nbsp;sync,
boolean&nbsp;lineUp)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendDeleteRecord(byte,long)">appendDeleteRecord</a></span>&#8203;(byte&nbsp;journalID,
long&nbsp;id)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendDeleteRecordTransactional(byte,long,long)">appendDeleteRecordTransactional</a></span>&#8203;(byte&nbsp;journalID,
long&nbsp;txID,
long&nbsp;id)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendDeleteRecordTransactional(byte,long,long,org.apache.activemq.artemis.core.journal.EncodingSupport)">appendDeleteRecordTransactional</a></span>&#8203;(byte&nbsp;journalID,
long&nbsp;txID,
long&nbsp;id,
<a href="../journal/EncodingSupport.html" title="interface in org.apache.activemq.artemis.core.journal">EncodingSupport</a>&nbsp;record)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendPrepareRecord(byte,long,org.apache.activemq.artemis.core.journal.EncodingSupport)">appendPrepareRecord</a></span>&#8203;(byte&nbsp;journalID,
long&nbsp;txID,
<a href="../journal/EncodingSupport.html" title="interface in org.apache.activemq.artemis.core.journal">EncodingSupport</a>&nbsp;transactionData)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendRollbackRecord(byte,long)">appendRollbackRecord</a></span>&#8203;(byte&nbsp;journalID,
long&nbsp;txID)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#appendUpdateRecord(byte,org.apache.activemq.artemis.core.replication.ReplicationManager.ADD_OPERATION_TYPE,long,byte,org.apache.activemq.artemis.core.persistence.Persister,java.lang.Object)">appendUpdateRecord</a></span>&#8203;(byte&nbsp;journalID,
<a href="ReplicationManager.ADD_OPERATION_TYPE.html" title="enum in org.apache.activemq.artemis.core.replication">ReplicationManager.ADD_OPERATION_TYPE</a>&nbsp;operation,
long&nbsp;id,
byte&nbsp;recordType,
<a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/persistence/Persister.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.persistence" class="externalLink">Persister</a>&nbsp;persister,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;record)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearReplicationTokens()">clearReplicationTokens</a></span>()</code></th>
<td class="colLast">
<div class="block">Completes any pending operations.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util" class="externalLink">Set</a>&lt;<a href="../persistence/OperationContext.html" title="interface in org.apache.activemq.artemis.core.persistence">OperationContext</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getActiveTokens()">getActiveTokens</a></span>()</code></th>
<td class="colLast">
<div class="block">A list of tokens that are still waiting for replications to be completed</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../protocol/core/CoreRemotingConnection.html" title="interface in org.apache.activemq.artemis.core.protocol.core">CoreRemotingConnection</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBackupTransportConnection()">getBackupTransportConnection</a></span>()</code></th>
<td class="colLast">
<div class="block">Used while stopping the server to ensure that we freeze communications with the backup.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isStarted()">isStarted</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isSynchronizing()">isSynchronizing</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#largeMessageBegin(long)">largeMessageBegin</a></span>&#8203;(long&nbsp;messageId)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#largeMessageClosed(java.lang.Long,org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager)">largeMessageClosed</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>&nbsp;messageId,
<a href="../persistence/impl/journal/JournalStorageManager.html" title="class in org.apache.activemq.artemis.core.persistence.impl.journal">JournalStorageManager</a>&nbsp;storageManager)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#largeMessageDelete(java.lang.Long,org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager)">largeMessageDelete</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>&nbsp;messageId,
<a href="../persistence/impl/journal/JournalStorageManager.html" title="class in org.apache.activemq.artemis.core.persistence.impl.journal">JournalStorageManager</a>&nbsp;storageManager)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#largeMessageWrite(long,byte%5B%5D)">largeMessageWrite</a></span>&#8203;(long&nbsp;messageId,
byte[]&nbsp;body)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pageClosed(org.apache.activemq.artemis.api.core.SimpleString,long)">pageClosed</a></span>&#8203;(<a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/SimpleString.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">SimpleString</a>&nbsp;storeName,
long&nbsp;pageNumber)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pageDeleted(org.apache.activemq.artemis.api.core.SimpleString,long)">pageDeleted</a></span>&#8203;(<a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/SimpleString.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">SimpleString</a>&nbsp;storeName,
long&nbsp;pageNumber)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pageWrite(org.apache.activemq.artemis.core.paging.PagedMessage,long)">pageWrite</a></span>&#8203;(<a href="../paging/PagedMessage.html" title="interface in org.apache.activemq.artemis.core.paging">PagedMessage</a>&nbsp;message,
long&nbsp;pageNumber)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sendLargeMessageIdListMessage(java.util.Map)">sendLargeMessageIdListMessage</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>,&#8203;<a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/Pair.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">Pair</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>,&#8203;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>&gt;&gt;&nbsp;largeMessages)</code></th>
<td class="colLast">
<div class="block">Reserves several LargeMessage IDs in the backup.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../persistence/OperationContext.html" title="interface in org.apache.activemq.artemis.core.persistence">OperationContext</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sendLiveIsStopping(org.apache.activemq.artemis.core.protocol.core.impl.wireformat.ReplicationLiveIsStoppingMessage.LiveStopping)">sendLiveIsStopping</a></span>&#8203;(<a href="../protocol/core/impl/wireformat/ReplicationLiveIsStoppingMessage.LiveStopping.html" title="enum in org.apache.activemq.artemis.core.protocol.core.impl.wireformat">ReplicationLiveIsStoppingMessage.LiveStopping</a>&nbsp;finalMessage)</code></th>
<td class="colLast">
<div class="block">Notifies the backup that the live server is stopping.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sendStartSyncMessage(org.apache.activemq.artemis.core.journal.impl.JournalFile%5B%5D,org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.JournalContent,java.lang.String,boolean)">sendStartSyncMessage</a></span>&#8203;(<a href="../journal/impl/JournalFile.html" title="interface in org.apache.activemq.artemis.core.journal.impl">JournalFile</a>[]&nbsp;datafiles,
<a href="../persistence/impl/journal/AbstractJournalStorageManager.JournalContent.html" title="enum in org.apache.activemq.artemis.core.persistence.impl.journal">AbstractJournalStorageManager.JournalContent</a>&nbsp;contentType,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;nodeID,
boolean&nbsp;allowsAutoFailBack)</code></th>
<td class="colLast">
<div class="block">Reserve the following fileIDs in the backup server.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sendSynchronizationDone(java.lang.String,long,org.apache.activemq.artemis.core.io.IOCriticalErrorListener)">sendSynchronizationDone</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;nodeID,
long&nbsp;initialReplicationSyncTimeout,
<a href="../io/IOCriticalErrorListener.html" title="interface in org.apache.activemq.artemis.core.io">IOCriticalErrorListener</a>&nbsp;criticalErrorListener)</code></th>
<td class="colLast">
<div class="block">Informs backup that data synchronization is done.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#start()">start</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stop()">stop</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stop(boolean)">stop</a></span>&#8203;(boolean&nbsp;clearTokens)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#syncJournalFile(org.apache.activemq.artemis.core.journal.impl.JournalFile,org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.JournalContent)">syncJournalFile</a></span>&#8203;(<a href="../journal/impl/JournalFile.html" title="interface in org.apache.activemq.artemis.core.journal.impl">JournalFile</a>&nbsp;jf,
<a href="../persistence/impl/journal/AbstractJournalStorageManager.JournalContent.html" title="enum in org.apache.activemq.artemis.core.persistence.impl.journal">AbstractJournalStorageManager.JournalContent</a>&nbsp;content)</code></th>
<td class="colLast">
<div class="block">Sends the whole content of the file to be duplicated.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#syncLargeMessageFile(org.apache.activemq.artemis.core.io.SequentialFile,long,long)">syncLargeMessageFile</a></span>&#8203;(<a href="../io/SequentialFile.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFile</a>&nbsp;file,
long&nbsp;size,
long&nbsp;id)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#syncPages(org.apache.activemq.artemis.core.io.SequentialFile,long,org.apache.activemq.artemis.api.core.SimpleString)">syncPages</a></span>&#8203;(<a href="../io/SequentialFile.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFile</a>&nbsp;file,
long&nbsp;id,
<a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/SimpleString.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">SimpleString</a>&nbsp;queueName)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.apache.activemq.artemis.core.server.ActiveMQComponent">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.activemq.artemis.core.server.<a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">ActiveMQComponent</a></h3>
<code><a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true#asyncStop(java.lang.Runnable)" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">asyncStop</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(org.apache.activemq.artemis.core.server.ActiveMQServer,org.apache.activemq.artemis.core.protocol.core.CoreRemotingConnection,long,long,org.apache.activemq.artemis.utils.ExecutorFactory)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ReplicationManager</h4>
<pre>public&nbsp;ReplicationManager&#8203;(<a href="../server/ActiveMQServer.html" title="interface in org.apache.activemq.artemis.core.server">ActiveMQServer</a>&nbsp;server,
<a href="../protocol/core/CoreRemotingConnection.html" title="interface in org.apache.activemq.artemis.core.protocol.core">CoreRemotingConnection</a>&nbsp;remotingConnection,
long&nbsp;timeout,
long&nbsp;initialReplicationSyncTimeout,
org.apache.activemq.artemis.utils.ExecutorFactory&nbsp;ioExecutorFactory)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>remotingConnection</code> - </dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="appendUpdateRecord(byte,org.apache.activemq.artemis.core.replication.ReplicationManager.ADD_OPERATION_TYPE,long,byte,org.apache.activemq.artemis.core.persistence.Persister,java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendUpdateRecord</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;appendUpdateRecord&#8203;(byte&nbsp;journalID,
<a href="ReplicationManager.ADD_OPERATION_TYPE.html" title="enum in org.apache.activemq.artemis.core.replication">ReplicationManager.ADD_OPERATION_TYPE</a>&nbsp;operation,
long&nbsp;id,
byte&nbsp;recordType,
<a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/persistence/Persister.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.persistence" class="externalLink">Persister</a>&nbsp;persister,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;record)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="appendDeleteRecord(byte,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendDeleteRecord</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;appendDeleteRecord&#8203;(byte&nbsp;journalID,
long&nbsp;id)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="appendAddRecordTransactional(byte,org.apache.activemq.artemis.core.replication.ReplicationManager.ADD_OPERATION_TYPE,long,long,byte,org.apache.activemq.artemis.core.persistence.Persister,java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendAddRecordTransactional</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;appendAddRecordTransactional&#8203;(byte&nbsp;journalID,
<a href="ReplicationManager.ADD_OPERATION_TYPE.html" title="enum in org.apache.activemq.artemis.core.replication">ReplicationManager.ADD_OPERATION_TYPE</a>&nbsp;operation,
long&nbsp;txID,
long&nbsp;id,
byte&nbsp;recordType,
<a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/persistence/Persister.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.persistence" class="externalLink">Persister</a>&nbsp;persister,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;record)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="appendCommitRecord(byte,long,boolean,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendCommitRecord</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;appendCommitRecord&#8203;(byte&nbsp;journalID,
long&nbsp;txID,
boolean&nbsp;sync,
boolean&nbsp;lineUp)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="appendDeleteRecordTransactional(byte,long,long,org.apache.activemq.artemis.core.journal.EncodingSupport)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendDeleteRecordTransactional</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;appendDeleteRecordTransactional&#8203;(byte&nbsp;journalID,
long&nbsp;txID,
long&nbsp;id,
<a href="../journal/EncodingSupport.html" title="interface in org.apache.activemq.artemis.core.journal">EncodingSupport</a>&nbsp;record)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="appendDeleteRecordTransactional(byte,long,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendDeleteRecordTransactional</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;appendDeleteRecordTransactional&#8203;(byte&nbsp;journalID,
long&nbsp;txID,
long&nbsp;id)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="appendPrepareRecord(byte,long,org.apache.activemq.artemis.core.journal.EncodingSupport)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendPrepareRecord</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;appendPrepareRecord&#8203;(byte&nbsp;journalID,
long&nbsp;txID,
<a href="../journal/EncodingSupport.html" title="interface in org.apache.activemq.artemis.core.journal">EncodingSupport</a>&nbsp;transactionData)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="appendRollbackRecord(byte,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendRollbackRecord</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;appendRollbackRecord&#8203;(byte&nbsp;journalID,
long&nbsp;txID)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="pageClosed(org.apache.activemq.artemis.api.core.SimpleString,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pageClosed</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;pageClosed&#8203;(<a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/SimpleString.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">SimpleString</a>&nbsp;storeName,
long&nbsp;pageNumber)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>storeName</code> - </dd>
<dd><code>pageNumber</code> - </dd>
</dl>
</li>
</ul>
<a id="pageDeleted(org.apache.activemq.artemis.api.core.SimpleString,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pageDeleted</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;pageDeleted&#8203;(<a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/SimpleString.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">SimpleString</a>&nbsp;storeName,
long&nbsp;pageNumber)</pre>
</li>
</ul>
<a id="pageWrite(org.apache.activemq.artemis.core.paging.PagedMessage,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pageWrite</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;pageWrite&#8203;(<a href="../paging/PagedMessage.html" title="interface in org.apache.activemq.artemis.core.paging">PagedMessage</a>&nbsp;message,
long&nbsp;pageNumber)</pre>
</li>
</ul>
<a id="largeMessageBegin(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>largeMessageBegin</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;largeMessageBegin&#8203;(long&nbsp;messageId)</pre>
</li>
</ul>
<a id="largeMessageDelete(java.lang.Long,org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>largeMessageDelete</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;largeMessageDelete&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>&nbsp;messageId,
<a href="../persistence/impl/journal/JournalStorageManager.html" title="class in org.apache.activemq.artemis.core.persistence.impl.journal">JournalStorageManager</a>&nbsp;storageManager)</pre>
</li>
</ul>
<a id="largeMessageClosed(java.lang.Long,org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>largeMessageClosed</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;largeMessageClosed&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>&nbsp;messageId,
<a href="../persistence/impl/journal/JournalStorageManager.html" title="class in org.apache.activemq.artemis.core.persistence.impl.journal">JournalStorageManager</a>&nbsp;storageManager)</pre>
</li>
</ul>
<a id="largeMessageWrite(long,byte[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>largeMessageWrite</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;largeMessageWrite&#8203;(long&nbsp;messageId,
byte[]&nbsp;body)</pre>
</li>
</ul>
<a id="isStarted()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isStarted</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isStarted()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true#isStarted()" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">isStarted</a></code>&nbsp;in interface&nbsp;<code><a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">ActiveMQComponent</a></code></dd>
</dl>
</li>
</ul>
<a id="start()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>start</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;start()
throws <a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/ActiveMQException.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">ActiveMQException</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true#start()" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">start</a></code>&nbsp;in interface&nbsp;<code><a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">ActiveMQComponent</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/ActiveMQException.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">ActiveMQException</a></code></dd>
</dl>
</li>
</ul>
<a id="stop()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stop</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;stop()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true#stop()" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">stop</a></code>&nbsp;in interface&nbsp;<code><a href="https://activemq.apache.org/components/artemis/artemis-server/apidocs/org/apache/activemq/artemis/core/server/ActiveMQComponent.html?is-external=true" title="class or interface in org.apache.activemq.artemis.core.server" class="externalLink">ActiveMQComponent</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="stop(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stop</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;stop&#8203;(boolean&nbsp;clearTokens)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="clearReplicationTokens()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearReplicationTokens</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;clearReplicationTokens()</pre>
<div class="block">Completes any pending operations.
<p>
This can be necessary in case the live loses connection to the backup (network failure, or
backup crashing).</div>
</li>
</ul>
<a id="getActiveTokens()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getActiveTokens</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util" class="externalLink">Set</a>&lt;<a href="../persistence/OperationContext.html" title="interface in org.apache.activemq.artemis.core.persistence">OperationContext</a>&gt;&nbsp;getActiveTokens()</pre>
<div class="block">A list of tokens that are still waiting for replications to be completed</div>
</li>
</ul>
<a id="syncJournalFile(org.apache.activemq.artemis.core.journal.impl.JournalFile,org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.JournalContent)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>syncJournalFile</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;syncJournalFile&#8203;(<a href="../journal/impl/JournalFile.html" title="interface in org.apache.activemq.artemis.core.journal.impl">JournalFile</a>&nbsp;jf,
<a href="../persistence/impl/journal/AbstractJournalStorageManager.JournalContent.html" title="enum in org.apache.activemq.artemis.core.persistence.impl.journal">AbstractJournalStorageManager.JournalContent</a>&nbsp;content)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<div class="block">Sends the whole content of the file to be duplicated.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/ActiveMQException.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">ActiveMQException</a></code></dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="syncLargeMessageFile(org.apache.activemq.artemis.core.io.SequentialFile,long,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>syncLargeMessageFile</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;syncLargeMessageFile&#8203;(<a href="../io/SequentialFile.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFile</a>&nbsp;file,
long&nbsp;size,
long&nbsp;id)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="syncPages(org.apache.activemq.artemis.core.io.SequentialFile,long,org.apache.activemq.artemis.api.core.SimpleString)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>syncPages</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;syncPages&#8203;(<a href="../io/SequentialFile.html" title="interface in org.apache.activemq.artemis.core.io">SequentialFile</a>&nbsp;file,
long&nbsp;id,
<a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/SimpleString.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">SimpleString</a>&nbsp;queueName)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang" class="externalLink">Exception</a></code></dd>
</dl>
</li>
</ul>
<a id="sendStartSyncMessage(org.apache.activemq.artemis.core.journal.impl.JournalFile[],org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.JournalContent,java.lang.String,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendStartSyncMessage</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;sendStartSyncMessage&#8203;(<a href="../journal/impl/JournalFile.html" title="interface in org.apache.activemq.artemis.core.journal.impl">JournalFile</a>[]&nbsp;datafiles,
<a href="../persistence/impl/journal/AbstractJournalStorageManager.JournalContent.html" title="enum in org.apache.activemq.artemis.core.persistence.impl.journal">AbstractJournalStorageManager.JournalContent</a>&nbsp;contentType,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;nodeID,
boolean&nbsp;allowsAutoFailBack)
throws <a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/ActiveMQException.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">ActiveMQException</a></pre>
<div class="block">Reserve the following fileIDs in the backup server.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>datafiles</code> - </dd>
<dd><code>contentType</code> - </dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/ActiveMQException.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">ActiveMQException</a></code></dd>
</dl>
</li>
</ul>
<a id="sendSynchronizationDone(java.lang.String,long,org.apache.activemq.artemis.core.io.IOCriticalErrorListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendSynchronizationDone</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;sendSynchronizationDone&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;nodeID,
long&nbsp;initialReplicationSyncTimeout,
<a href="../io/IOCriticalErrorListener.html" title="interface in org.apache.activemq.artemis.core.io">IOCriticalErrorListener</a>&nbsp;criticalErrorListener)
throws <a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/ActiveMQReplicationTimeooutException.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">ActiveMQReplicationTimeooutException</a></pre>
<div class="block">Informs backup that data synchronization is done.
<p>
So if 'live' fails, the (up-to-date) backup now may take over its duties. To do so, it must
know which is the live's <code>nodeID</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodeID</code> - </dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/ActiveMQReplicationTimeooutException.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">ActiveMQReplicationTimeooutException</a></code></dd>
</dl>
</li>
</ul>
<a id="sendLargeMessageIdListMessage(java.util.Map)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendLargeMessageIdListMessage</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;sendLargeMessageIdListMessage&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" class="externalLink">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>,&#8203;<a href="https://activemq.apache.org/components/artemis/artemis-core-client/apidocs/org/apache/activemq/artemis/api/core/Pair.html?is-external=true" title="class or interface in org.apache.activemq.artemis.api.core" class="externalLink">Pair</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>,&#8203;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang" class="externalLink">Long</a>&gt;&gt;&nbsp;largeMessages)</pre>
<div class="block">Reserves several LargeMessage IDs in the backup.
<p>
Doing this before hand removes the need of synchronizing large-message deletes with the
largeMessageSyncList.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>largeMessages</code> - </dd>
</dl>
</li>
</ul>
<a id="sendLiveIsStopping(org.apache.activemq.artemis.core.protocol.core.impl.wireformat.ReplicationLiveIsStoppingMessage.LiveStopping)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendLiveIsStopping</h4>
<pre class="methodSignature">public&nbsp;<a href="../persistence/OperationContext.html" title="interface in org.apache.activemq.artemis.core.persistence">OperationContext</a>&nbsp;sendLiveIsStopping&#8203;(<a href="../protocol/core/impl/wireformat/ReplicationLiveIsStoppingMessage.LiveStopping.html" title="enum in org.apache.activemq.artemis.core.protocol.core.impl.wireformat">ReplicationLiveIsStoppingMessage.LiveStopping</a>&nbsp;finalMessage)</pre>
<div class="block">Notifies the backup that the live server is stopping.
<p>
This notification allows the backup to skip quorum voting (or any other measure to avoid
'split-brain') and do a faster fail-over.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
</dl>
</li>
</ul>
<a id="getBackupTransportConnection()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBackupTransportConnection</h4>
<pre class="methodSignature">public&nbsp;<a href="../protocol/core/CoreRemotingConnection.html" title="interface in org.apache.activemq.artemis.core.protocol.core">CoreRemotingConnection</a>&nbsp;getBackupTransportConnection()</pre>
<div class="block">Used while stopping the server to ensure that we freeze communications with the backup.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>remoting connection with the backup</dd>
</dl>
</li>
</ul>
<a id="isSynchronizing()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isSynchronizing</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isSynchronizing()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ReplicationManager.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="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses.html">All&nbsp;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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>