diff options
Diffstat (limited to '_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/DataTree.html')
-rw-r--r-- | _released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/DataTree.html | 1581 |
1 files changed, 1581 insertions, 0 deletions
diff --git a/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/DataTree.html b/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/DataTree.html new file mode 100644 index 000000000..9e7603474 --- /dev/null +++ b/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/DataTree.html @@ -0,0 +1,1581 @@ +<!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_352) on Wed Jan 25 17:31:44 CET 2023 --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>DataTree (Apache ZooKeeper - Server 3.8.1 API)</title> +<meta name="date" content="2023-01-25"> +<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="DataTree (Apache ZooKeeper - Server 3.8.1 API)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":9,"i10":9,"i11":10,"i12":10,"i13":9,"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,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10}; +var tabs = {65535:["t0","All Methods"],1:["t1","Static 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> +<!-- ========= 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><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/DataTree.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> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../org/apache/zookeeper/server/DataNode.html" title="class in org.apache.zookeeper.server"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../org/apache/zookeeper/server/DataTree.ProcessTxnResult.html" title="class in org.apache.zookeeper.server"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../index.html?org/apache/zookeeper/server/DataTree.html" target="_top">Frames</a></li> +<li><a href="DataTree.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> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li><a href="#nested.class.summary">Nested</a> | </li> +<li><a href="#field.summary">Field</a> | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field.detail">Field</a> | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.zookeeper.server</div> +<h2 title="Class DataTree" class="title">Class DataTree</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">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.zookeeper.server.DataTree</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<hr> +<br> +<pre>public class <span class="typeNameLabel">DataTree</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">Object</a></pre> +<div class="block">This class maintains the tree data structure. It doesn't have any networking + or client connection code in it so that it can be tested in a stand alone + way. + <p> + The tree maintains two parallel data structures: a hashtable that maps from + full paths to DataNodes and a tree of DataNodes. All accesses to a path is + through the hashtable. The tree is traversed only when serializing to disk.</div> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ======== NESTED CLASS SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="nested.class.summary"> +<!-- --> +</a> +<h3>Nested Class Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> +<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Class and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static class </code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.ProcessTxnResult.html" title="class in org.apache.zookeeper.server">DataTree.ProcessTxnResult</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>class </code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.ZxidDigest.html" title="class in org.apache.zookeeper.server">DataTree.ZxidDigest</a></span></code> +<div class="block">A helper class to maintain the digest meta associated with specific zxid.</div> +</td> +</tr> +</table> +</li> +</ul> +<!-- =========== FIELD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> +<caption><span>Fields</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Field and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#DIGEST_LOG_INTERVAL">DIGEST_LOG_INTERVAL</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#DIGEST_LOG_LIMIT">DIGEST_LOG_LIMIT</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#lastProcessedZxid">lastProcessedZxid</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#STAT_OVERHEAD_BYTES">STAT_OVERHEAD_BYTES</a></span></code> +<div class="block">over-the-wire size of znode's stat.</div> +</td> +</tr> +</table> +</li> +</ul> +<!-- ======== CONSTRUCTOR SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#DataTree--">DataTree</a></span>()</code> </td> +</tr> +</table> +</li> +</ul> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#aclCacheSize--">aclCacheSize</a></span>()</code> </td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#addConfigNode--">addConfigNode</a></span>()</code> +<div class="block">create a /zookeeper/config node for maintaining the configuration (membership and quorum system) info for + zookeeper</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#addDigestWatcher-org.apache.zookeeper.DigestWatcher-">addDigestWatcher</a></span>(<a href="../../../../org/apache/zookeeper/DigestWatcher.html" title="interface in org.apache.zookeeper">DigestWatcher</a> digestWatcher)</code> +<div class="block">Add digest mismatch event handler.</div> +</td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#addWatch-java.lang.String-org.apache.zookeeper.Watcher-int-">addWatch</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> basePath, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher, + int mode)</code> </td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#approximateDataSize--">approximateDataSize</a></span>()</code> +<div class="block">Get the size of the nodes based on path and data length.</div> +</td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#cachedApproximateDataSize--">cachedApproximateDataSize</a></span>()</code> </td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#compareDigest-org.apache.zookeeper.txn.TxnHeader-org.apache.jute.Record-org.apache.zookeeper.txn.TxnDigest-">compareDigest</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnHeader</a> header, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/Record.html?is-external=true" title="class or interface in org.apache.jute">Record</a> txn, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnDigest.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnDigest</a> digest)</code> +<div class="block">Compares the digest of the tree with the digest present in transaction digest.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#compareSnapshotDigests-long-">compareSnapshotDigests</a></span>(long zxid)</code> +<div class="block">Compares the actual tree's digest with that in the snapshot.</div> +</td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#containsWatcher-java.lang.String-org.apache.zookeeper.Watcher.WatcherType-org.apache.zookeeper.Watcher-">containsWatcher</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="../../../../org/apache/zookeeper/Watcher.WatcherType.html" title="enum in org.apache.zookeeper">Watcher.WatcherType</a> type, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</code> </td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code>static void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#copyStat-org.apache.zookeeper.data.Stat-org.apache.zookeeper.data.Stat-">copyStat</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> from, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> to)</code> </td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code>static void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#copyStatPersisted-org.apache.zookeeper.data.StatPersisted-org.apache.zookeeper.data.StatPersisted-">copyStatPersisted</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/StatPersisted.html?is-external=true" title="class or interface in org.apache.zookeeper.data">StatPersisted</a> from, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/StatPersisted.html?is-external=true" title="class or interface in org.apache.zookeeper.data">StatPersisted</a> to)</code> </td> +</tr> +<tr id="i11" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#createNode-java.lang.String-byte:A-java.util.List-long-int-long-long-">createNode</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + byte[] data, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>> acl, + long ephemeralOwner, + int parentCVersion, + long zxid, + long time)</code> +<div class="block">Add a new node to the DataTree.</div> +</td> +</tr> +<tr id="i12" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#createNode-java.lang.String-byte:A-java.util.List-long-int-long-long-org.apache.zookeeper.data.Stat-">createNode</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + byte[] data, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>> acl, + long ephemeralOwner, + int parentCVersion, + long zxid, + long time, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> outputStat)</code> +<div class="block">Add a new node to the DataTree.</div> +</td> +</tr> +<tr id="i13" class="rowColor"> +<td class="colFirst"><code>static <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/StatPersisted.html?is-external=true" title="class or interface in org.apache.zookeeper.data">StatPersisted</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#createStat-long-long-long-">createStat</a></span>(long zxid, + long time, + long ephemeralOwner)</code> +<div class="block">Create a node stat from the given params.</div> +</td> +</tr> +<tr id="i14" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#deleteNode-java.lang.String-long-">deleteNode</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + long zxid)</code> +<div class="block">remove the path from the datatree</div> +</td> +</tr> +<tr id="i15" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#deserialize-org.apache.jute.InputArchive-java.lang.String-">deserialize</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/InputArchive.html?is-external=true" title="class or interface in org.apache.jute">InputArchive</a> ia, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tag)</code> </td> +</tr> +<tr id="i16" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#deserializeZxidDigest-org.apache.jute.InputArchive-long-">deserializeZxidDigest</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/InputArchive.html?is-external=true" title="class or interface in org.apache.jute">InputArchive</a> ia, + long startZxidOfSnapshot)</code> +<div class="block">Deserializing the zxid digest from the input stream and update the + digestFromLoadedSnapshot.</div> +</td> +</tr> +<tr id="i17" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#dumpEphemerals-java.io.PrintWriter-">dumpEphemerals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> pwriter)</code> +<div class="block">Write a text dump of all the ephemerals in the datatree.</div> +</td> +</tr> +<tr id="i18" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#dumpWatches-java.io.PrintWriter-boolean-">dumpWatches</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> pwriter, + boolean byPath)</code> +<div class="block">Write a text dump of all the watches on the datatree.</div> +</td> +</tr> +<tr id="i19" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#dumpWatchesSummary-java.io.PrintWriter-">dumpWatchesSummary</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> pwriter)</code> +<div class="block">Summary of the watches on the datatree.</div> +</td> +</tr> +<tr id="i20" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getACL-org.apache.zookeeper.server.DataNode-">getACL</a></span>(<a href="../../../../org/apache/zookeeper/server/DataNode.html" title="class in org.apache.zookeeper.server">DataNode</a> node)</code> </td> +</tr> +<tr id="i21" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getACL-java.lang.String-org.apache.zookeeper.data.Stat-">getACL</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> stat)</code> </td> +</tr> +<tr id="i22" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getAllChildrenNumber-java.lang.String-">getAllChildrenNumber</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</code> </td> +</tr> +<tr id="i23" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getChildren-java.lang.String-org.apache.zookeeper.data.Stat-org.apache.zookeeper.Watcher-">getChildren</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> stat, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</code> </td> +</tr> +<tr id="i24" class="altColor"> +<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">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getContainers--">getContainers</a></span>()</code> </td> +</tr> +<tr id="i25" class="rowColor"> +<td class="colFirst"><code>byte[]</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getData-java.lang.String-org.apache.zookeeper.data.Stat-org.apache.zookeeper.Watcher-">getData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> stat, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</code> </td> +</tr> +<tr id="i26" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/DataTree.ZxidDigest.html" title="class in org.apache.zookeeper.server">DataTree.ZxidDigest</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getDigestFromLoadedSnapshot--">getDigestFromLoadedSnapshot</a></span>()</code> </td> +</tr> +<tr id="i27" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/zookeeper/server/DataTree.ZxidDigest.html" title="class in org.apache.zookeeper.server">DataTree.ZxidDigest</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getDigestLog--">getDigestLog</a></span>()</code> +<div class="block">Return all the digests in the historical digest list.</div> +</td> +</tr> +<tr id="i28" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getEphemerals--">getEphemerals</a></span>()</code> +<div class="block">Returns a mapping of session ID to ephemeral znodes.</div> +</td> +</tr> +<tr id="i29" 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">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getEphemerals-long-">getEphemerals</a></span>(long sessionId)</code> </td> +</tr> +<tr id="i30" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getEphemeralsCount--">getEphemeralsCount</a></span>()</code> </td> +</tr> +<tr id="i31" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/DataTree.ZxidDigest.html" title="class in org.apache.zookeeper.server">DataTree.ZxidDigest</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getLastProcessedZxidDigest--">getLastProcessedZxidDigest</a></span>()</code> </td> +</tr> +<tr id="i32" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getMaxPrefixWithQuota-java.lang.String-">getMaxPrefixWithQuota</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</code> +<div class="block">If there is a quota set, return the appropriate prefix for that quota + Else return null</div> +</td> +</tr> +<tr id="i33" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/DataNode.html" title="class in org.apache.zookeeper.server">DataNode</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getNode-java.lang.String-">getNode</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</code> </td> +</tr> +<tr id="i34" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getNodeCount--">getNodeCount</a></span>()</code> </td> +</tr> +<tr id="i35" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ReferenceCountedACLCache.html" title="class in org.apache.zookeeper.server">ReferenceCountedACLCache</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getReferenceCountedAclCache--">getReferenceCountedAclCache</a></span>()</code> </td> +</tr> +<tr id="i36" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getSessions--">getSessions</a></span>()</code> </td> +</tr> +<tr id="i37" class="rowColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getTreeDigest--">getTreeDigest</a></span>()</code> </td> +</tr> +<tr id="i38" class="altColor"> +<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">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getTtls--">getTtls</a></span>()</code> </td> +</tr> +<tr id="i39" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getWatchCount--">getWatchCount</a></span>()</code> </td> +</tr> +<tr id="i40" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/watch/WatchesReport.html" title="class in org.apache.zookeeper.server.watch">WatchesReport</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getWatches--">getWatches</a></span>()</code> +<div class="block">Returns a watch report.</div> +</td> +</tr> +<tr id="i41" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/watch/WatchesPathReport.html" title="class in org.apache.zookeeper.server.watch">WatchesPathReport</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getWatchesByPath--">getWatchesByPath</a></span>()</code> +<div class="block">Returns a watch report by path.</div> +</td> +</tr> +<tr id="i42" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/watch/WatchesSummary.html" title="class in org.apache.zookeeper.server.watch">WatchesSummary</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#getWatchesSummary--">getWatchesSummary</a></span>()</code> +<div class="block">Returns a watch summary.</div> +</td> +</tr> +<tr id="i43" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/DataTree.ProcessTxnResult.html" title="class in org.apache.zookeeper.server">DataTree.ProcessTxnResult</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#processTxn-org.apache.zookeeper.txn.TxnHeader-org.apache.jute.Record-">processTxn</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnHeader</a> header, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/Record.html?is-external=true" title="class or interface in org.apache.jute">Record</a> txn)</code> </td> +</tr> +<tr id="i44" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/DataTree.ProcessTxnResult.html" title="class in org.apache.zookeeper.server">DataTree.ProcessTxnResult</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#processTxn-org.apache.zookeeper.txn.TxnHeader-org.apache.jute.Record-boolean-">processTxn</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnHeader</a> header, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/Record.html?is-external=true" title="class or interface in org.apache.jute">Record</a> txn, + boolean isSubTxn)</code> </td> +</tr> +<tr id="i45" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/DataTree.ProcessTxnResult.html" title="class in org.apache.zookeeper.server">DataTree.ProcessTxnResult</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#processTxn-org.apache.zookeeper.txn.TxnHeader-org.apache.jute.Record-org.apache.zookeeper.txn.TxnDigest-">processTxn</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnHeader</a> header, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/Record.html?is-external=true" title="class or interface in org.apache.jute">Record</a> txn, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnDigest.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnDigest</a> digest)</code> </td> +</tr> +<tr id="i46" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#removeCnxn-org.apache.zookeeper.Watcher-">removeCnxn</a></span>(<a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</code> </td> +</tr> +<tr id="i47" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#removeWatch-java.lang.String-org.apache.zookeeper.Watcher.WatcherType-org.apache.zookeeper.Watcher-">removeWatch</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="../../../../org/apache/zookeeper/Watcher.WatcherType.html" title="enum in org.apache.zookeeper">Watcher.WatcherType</a> type, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</code> </td> +</tr> +<tr id="i48" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#reportDigestMismatch-long-">reportDigestMismatch</a></span>(long zxid)</code> +<div class="block">Reports any mismatch in the transaction digest.</div> +</td> +</tr> +<tr id="i49" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#serialize-org.apache.jute.OutputArchive-java.lang.String-">serialize</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tag)</code> </td> +</tr> +<tr id="i50" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#serializeAcls-org.apache.jute.OutputArchive-">serializeAcls</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa)</code> </td> +</tr> +<tr id="i51" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#serializeNodeData-org.apache.jute.OutputArchive-java.lang.String-org.apache.zookeeper.server.DataNode-">serializeNodeData</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="../../../../org/apache/zookeeper/server/DataNode.html" title="class in org.apache.zookeeper.server">DataNode</a> node)</code> </td> +</tr> +<tr id="i52" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#serializeNodes-org.apache.jute.OutputArchive-">serializeNodes</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa)</code> </td> +</tr> +<tr id="i53" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#serializeZxidDigest-org.apache.jute.OutputArchive-">serializeZxidDigest</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa)</code> +<div class="block">Serializing the digest to snapshot, this is done after the data tree + is being serialized, so when we replay the txns and it hits this zxid + we know we should be in a non-fuzzy state, and have the same digest.</div> +</td> +</tr> +<tr id="i54" class="altColor"> +<td class="colFirst"><code><a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#setACL-java.lang.String-java.util.List-int-">setACL</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>> acl, + int version)</code> </td> +</tr> +<tr id="i55" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#setCversionPzxid-java.lang.String-int-long-">setCversionPzxid</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + int newCversion, + long zxid)</code> +<div class="block">This method sets the Cversion and Pzxid for the specified node to the + values passed as arguments.</div> +</td> +</tr> +<tr id="i56" class="altColor"> +<td class="colFirst"><code><a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#setData-java.lang.String-byte:A-int-long-long-">setData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + byte[] data, + int version, + long zxid, + long time)</code> </td> +</tr> +<tr id="i57" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#setWatches-long-java.util.List-java.util.List-java.util.List-java.util.List-java.util.List-org.apache.zookeeper.Watcher-">setWatches</a></span>(long relativeZxid, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> dataWatches, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> existWatches, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> childWatches, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> persistentWatches, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> persistentRecursiveWatches, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</code> </td> +</tr> +<tr id="i58" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#shutdownWatcher--">shutdownWatcher</a></span>()</code> </td> +</tr> +<tr id="i59" class="rowColor"> +<td class="colFirst"><code><a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#statNode-java.lang.String-org.apache.zookeeper.Watcher-">statNode</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</code> </td> +</tr> +<tr id="i60" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/DataTree.html#updateQuotaStat-java.lang.String-long-int-">updateQuotaStat</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> lastPrefix, + long bytesDiff, + int countDiff)</code> +<div class="block">update the count/bytes of this stat data node</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class 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">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">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">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">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">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">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">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">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">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">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">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">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ FIELD DETAIL =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.detail"> +<!-- --> +</a> +<h3>Field Detail</h3> +<a name="STAT_OVERHEAD_BYTES"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>STAT_OVERHEAD_BYTES</h4> +<pre>public static final int STAT_OVERHEAD_BYTES</pre> +<div class="block">over-the-wire size of znode's stat. Counting the fields of Stat class</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.DataTree.STAT_OVERHEAD_BYTES">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="DIGEST_LOG_LIMIT"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>DIGEST_LOG_LIMIT</h4> +<pre>public static final int DIGEST_LOG_LIMIT</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.DataTree.DIGEST_LOG_LIMIT">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="DIGEST_LOG_INTERVAL"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>DIGEST_LOG_INTERVAL</h4> +<pre>public static final int DIGEST_LOG_INTERVAL</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.DataTree.DIGEST_LOG_INTERVAL">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="lastProcessedZxid"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>lastProcessedZxid</h4> +<pre>public volatile long lastProcessedZxid</pre> +</li> +</ul> +</li> +</ul> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="DataTree--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>DataTree</h4> +<pre>public DataTree()</pre> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="getEphemerals-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getEphemerals</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> getEphemerals(long sessionId)</pre> +</li> +</ul> +<a name="getContainers--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getContainers</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> getContainers()</pre> +</li> +</ul> +<a name="getTtls--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getTtls</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> getTtls()</pre> +</li> +</ul> +<a name="getSessions--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSessions</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>> getSessions()</pre> +</li> +</ul> +<a name="getNode-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getNode</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/DataNode.html" title="class in org.apache.zookeeper.server">DataNode</a> getNode(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</pre> +</li> +</ul> +<a name="getNodeCount--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getNodeCount</h4> +<pre>public int getNodeCount()</pre> +</li> +</ul> +<a name="getWatchCount--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getWatchCount</h4> +<pre>public int getWatchCount()</pre> +</li> +</ul> +<a name="getEphemeralsCount--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getEphemeralsCount</h4> +<pre>public int getEphemeralsCount()</pre> +</li> +</ul> +<a name="approximateDataSize--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>approximateDataSize</h4> +<pre>public long approximateDataSize()</pre> +<div class="block">Get the size of the nodes based on path and data length.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>size of the data</dd> +</dl> +</li> +</ul> +<a name="cachedApproximateDataSize--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>cachedApproximateDataSize</h4> +<pre>public long cachedApproximateDataSize()</pre> +</li> +</ul> +<a name="addConfigNode--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>addConfigNode</h4> +<pre>public void addConfigNode()</pre> +<div class="block">create a /zookeeper/config node for maintaining the configuration (membership and quorum system) info for + zookeeper</div> +</li> +</ul> +<a name="copyStatPersisted-org.apache.zookeeper.data.StatPersisted-org.apache.zookeeper.data.StatPersisted-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>copyStatPersisted</h4> +<pre>public static void copyStatPersisted(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/StatPersisted.html?is-external=true" title="class or interface in org.apache.zookeeper.data">StatPersisted</a> from, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/StatPersisted.html?is-external=true" title="class or interface in org.apache.zookeeper.data">StatPersisted</a> to)</pre> +</li> +</ul> +<a name="copyStat-org.apache.zookeeper.data.Stat-org.apache.zookeeper.data.Stat-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>copyStat</h4> +<pre>public static void copyStat(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> from, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> to)</pre> +</li> +</ul> +<a name="updateQuotaStat-java.lang.String-long-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>updateQuotaStat</h4> +<pre>public void updateQuotaStat(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> lastPrefix, + long bytesDiff, + int countDiff)</pre> +<div class="block">update the count/bytes of this stat data node</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>lastPrefix</code> - the path of the node that has a quota.</dd> +<dd><code>bytesDiff</code> - the diff to be added to number of bytes</dd> +<dd><code>countDiff</code> - the diff to be added to the count</dd> +</dl> +</li> +</ul> +<a name="createNode-java.lang.String-byte:A-java.util.List-long-int-long-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createNode</h4> +<pre>public void createNode(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + byte[] data, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>> acl, + long ephemeralOwner, + int parentCVersion, + long zxid, + long time) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a>, + <a href="../../../../org/apache/zookeeper/KeeperException.NodeExistsException.html" title="class in org.apache.zookeeper">KeeperException.NodeExistsException</a></pre> +<div class="block">Add a new node to the DataTree.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>path</code> - Path for the new node.</dd> +<dd><code>data</code> - Data to store in the node.</dd> +<dd><code>acl</code> - Node acls</dd> +<dd><code>ephemeralOwner</code> - the session id that owns this node. -1 indicates this is not + an ephemeral node.</dd> +<dd><code>zxid</code> - Transaction ID</dd> +<dd><code>time</code> - </dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NodeExistsException.html" title="class in org.apache.zookeeper">KeeperException.NodeExistsException</a></code></dd> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></code></dd> +</dl> +</li> +</ul> +<a name="createNode-java.lang.String-byte:A-java.util.List-long-int-long-long-org.apache.zookeeper.data.Stat-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createNode</h4> +<pre>public void createNode(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + byte[] data, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>> acl, + long ephemeralOwner, + int parentCVersion, + long zxid, + long time, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> outputStat) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a>, + <a href="../../../../org/apache/zookeeper/KeeperException.NodeExistsException.html" title="class in org.apache.zookeeper">KeeperException.NodeExistsException</a></pre> +<div class="block">Add a new node to the DataTree.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>path</code> - Path for the new node.</dd> +<dd><code>data</code> - Data to store in the node.</dd> +<dd><code>acl</code> - Node acls</dd> +<dd><code>ephemeralOwner</code> - the session id that owns this node. -1 indicates this is not + an ephemeral node.</dd> +<dd><code>zxid</code> - Transaction ID</dd> +<dd><code>time</code> - </dd> +<dd><code>outputStat</code> - A Stat object to store Stat output results into.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NodeExistsException.html" title="class in org.apache.zookeeper">KeeperException.NodeExistsException</a></code></dd> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></code></dd> +</dl> +</li> +</ul> +<a name="deleteNode-java.lang.String-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>deleteNode</h4> +<pre>public void deleteNode(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + long zxid) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></pre> +<div class="block">remove the path from the datatree</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>path</code> - the path to of the node to be deleted</dd> +<dd><code>zxid</code> - the current zxid</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code>KeeperException.NoNodeException</code></dd> +</dl> +</li> +</ul> +<a name="setData-java.lang.String-byte:A-int-long-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setData</h4> +<pre>public <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> setData(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + byte[] data, + int version, + long zxid, + long time) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></code></dd> +</dl> +</li> +</ul> +<a name="getMaxPrefixWithQuota-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getMaxPrefixWithQuota</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getMaxPrefixWithQuota(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</pre> +<div class="block">If there is a quota set, return the appropriate prefix for that quota + Else return null</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>path</code> - The ZK path to check for quota</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>Max quota prefix, or null if none</dd> +</dl> +</li> +</ul> +<a name="addWatch-java.lang.String-org.apache.zookeeper.Watcher-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>addWatch</h4> +<pre>public void addWatch(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> basePath, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher, + int mode)</pre> +</li> +</ul> +<a name="getData-java.lang.String-org.apache.zookeeper.data.Stat-org.apache.zookeeper.Watcher-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getData</h4> +<pre>public byte[] getData(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> stat, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></code></dd> +</dl> +</li> +</ul> +<a name="statNode-java.lang.String-org.apache.zookeeper.Watcher-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>statNode</h4> +<pre>public <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> statNode(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></code></dd> +</dl> +</li> +</ul> +<a name="getChildren-java.lang.String-org.apache.zookeeper.data.Stat-org.apache.zookeeper.Watcher-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getChildren</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> getChildren(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> stat, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></code></dd> +</dl> +</li> +</ul> +<a name="getAllChildrenNumber-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getAllChildrenNumber</h4> +<pre>public int getAllChildrenNumber(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path)</pre> +</li> +</ul> +<a name="setACL-java.lang.String-java.util.List-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setACL</h4> +<pre>public <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> setACL(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>> acl, + int version) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></code></dd> +</dl> +</li> +</ul> +<a name="getACL-java.lang.String-org.apache.zookeeper.data.Stat-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getACL</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>> getACL(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/Stat.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Stat</a> stat) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></code></dd> +</dl> +</li> +</ul> +<a name="getACL-org.apache.zookeeper.server.DataNode-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getACL</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/ACL.html?is-external=true" title="class or interface in org.apache.zookeeper.data">ACL</a>> getACL(<a href="../../../../org/apache/zookeeper/server/DataNode.html" title="class in org.apache.zookeeper.server">DataNode</a> node)</pre> +</li> +</ul> +<a name="aclCacheSize--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>aclCacheSize</h4> +<pre>public int aclCacheSize()</pre> +</li> +</ul> +<a name="processTxn-org.apache.zookeeper.txn.TxnHeader-org.apache.jute.Record-org.apache.zookeeper.txn.TxnDigest-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>processTxn</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/DataTree.ProcessTxnResult.html" title="class in org.apache.zookeeper.server">DataTree.ProcessTxnResult</a> processTxn(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnHeader</a> header, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/Record.html?is-external=true" title="class or interface in org.apache.jute">Record</a> txn, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnDigest.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnDigest</a> digest)</pre> +</li> +</ul> +<a name="processTxn-org.apache.zookeeper.txn.TxnHeader-org.apache.jute.Record-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>processTxn</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/DataTree.ProcessTxnResult.html" title="class in org.apache.zookeeper.server">DataTree.ProcessTxnResult</a> processTxn(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnHeader</a> header, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/Record.html?is-external=true" title="class or interface in org.apache.jute">Record</a> txn)</pre> +</li> +</ul> +<a name="processTxn-org.apache.zookeeper.txn.TxnHeader-org.apache.jute.Record-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>processTxn</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/DataTree.ProcessTxnResult.html" title="class in org.apache.zookeeper.server">DataTree.ProcessTxnResult</a> processTxn(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnHeader</a> header, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/Record.html?is-external=true" title="class or interface in org.apache.jute">Record</a> txn, + boolean isSubTxn)</pre> +</li> +</ul> +<a name="serializeNodeData-org.apache.jute.OutputArchive-java.lang.String-org.apache.zookeeper.server.DataNode-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>serializeNodeData</h4> +<pre>public void serializeNodeData(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="../../../../org/apache/zookeeper/server/DataNode.html" title="class in org.apache.zookeeper.server">DataNode</a> node) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> +<a name="serializeAcls-org.apache.jute.OutputArchive-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>serializeAcls</h4> +<pre>public void serializeAcls(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> +<a name="serializeNodes-org.apache.jute.OutputArchive-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>serializeNodes</h4> +<pre>public void serializeNodes(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> +<a name="serialize-org.apache.jute.OutputArchive-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>serialize</h4> +<pre>public void serialize(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tag) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> +<a name="deserialize-org.apache.jute.InputArchive-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>deserialize</h4> +<pre>public void deserialize(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/InputArchive.html?is-external=true" title="class or interface in org.apache.jute">InputArchive</a> ia, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tag) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<dl> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> +<a name="dumpWatchesSummary-java.io.PrintWriter-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>dumpWatchesSummary</h4> +<pre>public void dumpWatchesSummary(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> pwriter)</pre> +<div class="block">Summary of the watches on the datatree.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>pwriter</code> - the output to write to</dd> +</dl> +</li> +</ul> +<a name="dumpWatches-java.io.PrintWriter-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>dumpWatches</h4> +<pre>public void dumpWatches(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> pwriter, + boolean byPath)</pre> +<div class="block">Write a text dump of all the watches on the datatree. + Warning, this is expensive, use sparingly!</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>pwriter</code> - the output to write to</dd> +</dl> +</li> +</ul> +<a name="getWatches--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getWatches</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/watch/WatchesReport.html" title="class in org.apache.zookeeper.server.watch">WatchesReport</a> getWatches()</pre> +<div class="block">Returns a watch report.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>watch report</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../org/apache/zookeeper/server/watch/WatchesReport.html" title="class in org.apache.zookeeper.server.watch"><code>WatchesReport</code></a></dd> +</dl> +</li> +</ul> +<a name="getWatchesByPath--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getWatchesByPath</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/watch/WatchesPathReport.html" title="class in org.apache.zookeeper.server.watch">WatchesPathReport</a> getWatchesByPath()</pre> +<div class="block">Returns a watch report by path.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>watch report</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../org/apache/zookeeper/server/watch/WatchesPathReport.html" title="class in org.apache.zookeeper.server.watch"><code>WatchesPathReport</code></a></dd> +</dl> +</li> +</ul> +<a name="getWatchesSummary--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getWatchesSummary</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/watch/WatchesSummary.html" title="class in org.apache.zookeeper.server.watch">WatchesSummary</a> getWatchesSummary()</pre> +<div class="block">Returns a watch summary.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>watch summary</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../org/apache/zookeeper/server/watch/WatchesSummary.html" title="class in org.apache.zookeeper.server.watch"><code>WatchesSummary</code></a></dd> +</dl> +</li> +</ul> +<a name="dumpEphemerals-java.io.PrintWriter-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>dumpEphemerals</h4> +<pre>public void dumpEphemerals(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</a> pwriter)</pre> +<div class="block">Write a text dump of all the ephemerals in the datatree.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>pwriter</code> - the output to write to</dd> +</dl> +</li> +</ul> +<a name="shutdownWatcher--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>shutdownWatcher</h4> +<pre>public void shutdownWatcher()</pre> +</li> +</ul> +<a name="getEphemerals--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getEphemerals</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>> getEphemerals()</pre> +<div class="block">Returns a mapping of session ID to ephemeral znodes.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>map of session ID to sets of ephemeral znodes</dd> +</dl> +</li> +</ul> +<a name="removeCnxn-org.apache.zookeeper.Watcher-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>removeCnxn</h4> +<pre>public void removeCnxn(<a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</pre> +</li> +</ul> +<a name="setWatches-long-java.util.List-java.util.List-java.util.List-java.util.List-java.util.List-org.apache.zookeeper.Watcher-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setWatches</h4> +<pre>public void setWatches(long relativeZxid, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> dataWatches, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> existWatches, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> childWatches, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> persistentWatches, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> persistentRecursiveWatches, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</pre> +</li> +</ul> +<a name="setCversionPzxid-java.lang.String-int-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setCversionPzxid</h4> +<pre>public void setCversionPzxid(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + int newCversion, + long zxid) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoNodeException.html" title="class in org.apache.zookeeper">KeeperException.NoNodeException</a></pre> +<div class="block">This method sets the Cversion and Pzxid for the specified node to the + values passed as arguments. The values are modified only if newCversion + is greater than the current Cversion. A NoNodeException is thrown if + a znode for the specified path is not found.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>path</code> - Full path to the znode whose Cversion needs to be modified. + A "/" at the end of the path is ignored.</dd> +<dd><code>newCversion</code> - Value to be assigned to Cversion</dd> +<dd><code>zxid</code> - Value to be assigned to Pzxid</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code>KeeperException.NoNodeException</code> - If znode not found.</dd> +</dl> +</li> +</ul> +<a name="containsWatcher-java.lang.String-org.apache.zookeeper.Watcher.WatcherType-org.apache.zookeeper.Watcher-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>containsWatcher</h4> +<pre>public boolean containsWatcher(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="../../../../org/apache/zookeeper/Watcher.WatcherType.html" title="enum in org.apache.zookeeper">Watcher.WatcherType</a> type, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</pre> +</li> +</ul> +<a name="removeWatch-java.lang.String-org.apache.zookeeper.Watcher.WatcherType-org.apache.zookeeper.Watcher-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>removeWatch</h4> +<pre>public boolean removeWatch(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, + <a href="../../../../org/apache/zookeeper/Watcher.WatcherType.html" title="enum in org.apache.zookeeper">Watcher.WatcherType</a> type, + <a href="../../../../org/apache/zookeeper/Watcher.html" title="interface in org.apache.zookeeper">Watcher</a> watcher)</pre> +</li> +</ul> +<a name="getReferenceCountedAclCache--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getReferenceCountedAclCache</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ReferenceCountedACLCache.html" title="class in org.apache.zookeeper.server">ReferenceCountedACLCache</a> getReferenceCountedAclCache()</pre> +</li> +</ul> +<a name="serializeZxidDigest-org.apache.jute.OutputArchive-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>serializeZxidDigest</h4> +<pre>public boolean serializeZxidDigest(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/OutputArchive.html?is-external=true" title="class or interface in org.apache.jute">OutputArchive</a> oa) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Serializing the digest to snapshot, this is done after the data tree + is being serialized, so when we replay the txns and it hits this zxid + we know we should be in a non-fuzzy state, and have the same digest.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>oa</code> - the output stream to write to</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>true if the digest is serialized successfully</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> +<a name="deserializeZxidDigest-org.apache.jute.InputArchive-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>deserializeZxidDigest</h4> +<pre>public boolean deserializeZxidDigest(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/InputArchive.html?is-external=true" title="class or interface in org.apache.jute">InputArchive</a> ia, + long startZxidOfSnapshot) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Deserializing the zxid digest from the input stream and update the + digestFromLoadedSnapshot.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>ia</code> - the input stream to read from</dd> +<dd><code>startZxidOfSnapshot</code> - the zxid of snapshot file</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the true if it deserialized successfully</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> +<a name="compareSnapshotDigests-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>compareSnapshotDigests</h4> +<pre>public void compareSnapshotDigests(long zxid)</pre> +<div class="block">Compares the actual tree's digest with that in the snapshot. + Resets digestFromLoadedSnapshot after comparision.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>zxid</code> - zxid</dd> +</dl> +</li> +</ul> +<a name="compareDigest-org.apache.zookeeper.txn.TxnHeader-org.apache.jute.Record-org.apache.zookeeper.txn.TxnDigest-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>compareDigest</h4> +<pre>public boolean compareDigest(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnHeader</a> header, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/jute/Record.html?is-external=true" title="class or interface in org.apache.jute">Record</a> txn, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/txn/TxnDigest.html?is-external=true" title="class or interface in org.apache.zookeeper.txn">TxnDigest</a> digest)</pre> +<div class="block">Compares the digest of the tree with the digest present in transaction digest. + If there is any error, logs and alerts the watchers.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>header</code> - transaction header being applied</dd> +<dd><code>txn</code> - transaction</dd> +<dd><code>digest</code> - transaction digest</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>false if digest in the txn doesn't match what we have now in + the data tree</dd> +</dl> +</li> +</ul> +<a name="reportDigestMismatch-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>reportDigestMismatch</h4> +<pre>public void reportDigestMismatch(long zxid)</pre> +<div class="block">Reports any mismatch in the transaction digest.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>zxid</code> - zxid for which the error is being reported.</dd> +</dl> +</li> +</ul> +<a name="getTreeDigest--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getTreeDigest</h4> +<pre>public long getTreeDigest()</pre> +</li> +</ul> +<a name="getLastProcessedZxidDigest--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getLastProcessedZxidDigest</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/DataTree.ZxidDigest.html" title="class in org.apache.zookeeper.server">DataTree.ZxidDigest</a> getLastProcessedZxidDigest()</pre> +</li> +</ul> +<a name="getDigestFromLoadedSnapshot--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getDigestFromLoadedSnapshot</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/DataTree.ZxidDigest.html" title="class in org.apache.zookeeper.server">DataTree.ZxidDigest</a> getDigestFromLoadedSnapshot()</pre> +</li> +</ul> +<a name="addDigestWatcher-org.apache.zookeeper.DigestWatcher-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>addDigestWatcher</h4> +<pre>public void addDigestWatcher(<a href="../../../../org/apache/zookeeper/DigestWatcher.html" title="interface in org.apache.zookeeper">DigestWatcher</a> digestWatcher)</pre> +<div class="block">Add digest mismatch event handler.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>digestWatcher</code> - the handler to add</dd> +</dl> +</li> +</ul> +<a name="getDigestLog--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getDigestLog</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/zookeeper/server/DataTree.ZxidDigest.html" title="class in org.apache.zookeeper.server">DataTree.ZxidDigest</a>> getDigestLog()</pre> +<div class="block">Return all the digests in the historical digest list.</div> +</li> +</ul> +<a name="createStat-long-long-long-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>createStat</h4> +<pre>public static <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/data/StatPersisted.html?is-external=true" title="class or interface in org.apache.zookeeper.data">StatPersisted</a> createStat(long zxid, + long time, + long ephemeralOwner)</pre> +<div class="block">Create a node stat from the given params.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>zxid</code> - the zxid associated with the txn</dd> +<dd><code>time</code> - the time when the txn is created</dd> +<dd><code>ephemeralOwner</code> - the owner if the node is an ephemeral</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the stat</dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= 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><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/DataTree.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> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../org/apache/zookeeper/server/DataNode.html" title="class in org.apache.zookeeper.server"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../org/apache/zookeeper/server/DataTree.ProcessTxnResult.html" title="class in org.apache.zookeeper.server"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../index.html?org/apache/zookeeper/server/DataTree.html" target="_top">Frames</a></li> +<li><a href="DataTree.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> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li><a href="#nested.class.summary">Nested</a> | </li> +<li><a href="#field.summary">Field</a> | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field.detail">Field</a> | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2008–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +</body> +</html> |