diff options
Diffstat (limited to 'content/doc/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ZooKeeperServer.html')
-rw-r--r-- | content/doc/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ZooKeeperServer.html | 2855 |
1 files changed, 2855 insertions, 0 deletions
diff --git a/content/doc/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ZooKeeperServer.html b/content/doc/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ZooKeeperServer.html new file mode 100644 index 000000000..bba4ecaf9 --- /dev/null +++ b/content/doc/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ZooKeeperServer.html @@ -0,0 +1,2855 @@ +<!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>ZooKeeperServer (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="ZooKeeperServer (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":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"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":9,"i50":9,"i51":10,"i52":9,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":9,"i62":9,"i63":9,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":9,"i81":10,"i82":9,"i83":9,"i84":10,"i85":10,"i86":10,"i87":10,"i88":10,"i89":10,"i90":10,"i91":10,"i92":10,"i93":10,"i94":9,"i95":10,"i96":10,"i97":10,"i98":10,"i99":10,"i100":10,"i101":10,"i102":10,"i103":10,"i104":10,"i105":10,"i106":10,"i107":10,"i108":10,"i109":10,"i110":10,"i111":10,"i112":10,"i113":10,"i114":10,"i115":10,"i116":10,"i117":10,"i118":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/ZooKeeperServer.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/ZooKeeperSaslServer.html" title="class in org.apache.zookeeper.server"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.MissingSessionException.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/ZooKeeperServer.html" target="_top">Frames</a></li> +<li><a href="ZooKeeperServer.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 ZooKeeperServer" class="title">Class ZooKeeperServer</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.ZooKeeperServer</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html" title="interface in org.apache.zookeeper.server">ServerStats.Provider</a>, <a href="../../../../org/apache/zookeeper/server/SessionTracker.SessionExpirer.html" title="interface in org.apache.zookeeper.server">SessionTracker.SessionExpirer</a></dd> +</dl> +<dl> +<dt>Direct Known Subclasses:</dt> +<dd><a href="../../../../org/apache/zookeeper/server/quorum/QuorumZooKeeperServer.html" title="class in org.apache.zookeeper.server.quorum">QuorumZooKeeperServer</a>, <a href="../../../../org/apache/zookeeper/server/quorum/ReadOnlyZooKeeperServer.html" title="class in org.apache.zookeeper.server.quorum">ReadOnlyZooKeeperServer</a></dd> +</dl> +<hr> +<br> +<pre>public class <span class="typeNameLabel">ZooKeeperServer</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> +implements <a href="../../../../org/apache/zookeeper/server/SessionTracker.SessionExpirer.html" title="interface in org.apache.zookeeper.server">SessionTracker.SessionExpirer</a>, <a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html" title="interface in org.apache.zookeeper.server">ServerStats.Provider</a></pre> +<div class="block">This class implements a simple standalone ZooKeeperServer. It sets up the + following chain of RequestProcessors to process requests: + PrepRequestProcessor -> SyncRequestProcessor -> FinalRequestProcessor</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/ZooKeeperServer.MissingSessionException.html" title="class in org.apache.zookeeper.server">ZooKeeperServer.MissingSessionException</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected static class </code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.State.html" title="enum in org.apache.zookeeper.server">ZooKeeperServer.State</a></span></code> </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 <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/ZooKeeperServer.html#ALLOW_SASL_FAILED_CLIENTS">ALLOW_SASL_FAILED_CLIENTS</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#CLOSE_SESSION_TXN_ENABLED">CLOSE_SESSION_TXN_ENABLED</a></span></code> </td> +</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/ZooKeeperServer.html#DEFAULT_STARTING_BUFFER_SIZE">DEFAULT_STARTING_BUFFER_SIZE</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/ZooKeeperServer.html#DEFAULT_THROTTLED_OP_WAIT_TIME">DEFAULT_THROTTLED_OP_WAIT_TIME</a></span></code> </td> +</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/ZooKeeperServer.html#DEFAULT_TICK_TIME">DEFAULT_TICK_TIME</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#ENABLE_EAGER_ACL_CHECK">ENABLE_EAGER_ACL_CHECK</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#ENFORCE_QUOTA">ENFORCE_QUOTA</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#enforceQuota">enforceQuota</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/zookeeper/server/RequestProcessor.html" title="interface in org.apache.zookeeper.server">RequestProcessor</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#firstProcessor">firstProcessor</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#GET_CHILDREN_RESPONSE_CACHE_SIZE">GET_CHILDREN_RESPONSE_CACHE_SIZE</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#GET_DATA_RESPONSE_CACHE_SIZE">GET_DATA_RESPONSE_CACHE_SIZE</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#GLOBAL_OUTSTANDING_LIMIT">GLOBAL_OUTSTANDING_LIMIT</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected <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/ZooKeeperServer.html#initialConfig">initialConfig</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#INT_BUFFER_STARTING_SIZE_BYTES">INT_BUFFER_STARTING_SIZE_BYTES</a></span></code> +<div class="block">Starting size of read and write ByteArroyOuputBuffers.</div> +</td> +</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/ZooKeeperServer.html#intBufferStartingSizeBytes">intBufferStartingSizeBytes</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/zookeeper/server/DataTreeBean.html" title="class in org.apache.zookeeper.server">DataTreeBean</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#jmxDataTreeBean">jmxDataTreeBean</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/zookeeper/server/ZooKeeperServerBean.html" title="class in org.apache.zookeeper.server">ZooKeeperServerBean</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#jmxServerBean">jmxServerBean</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/zookeeper/server/util/JvmPauseMonitor.html" title="class in org.apache.zookeeper.server.util">JvmPauseMonitor</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#jvmPauseMonitor">jvmPauseMonitor</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#listenBacklog">listenBacklog</a></span></code> +<div class="block">Socket listen backlog.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected static org.slf4j.Logger</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#LOG">LOG</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#maxSessionTimeout">maxSessionTimeout</a></span></code> +<div class="block">value of -1 indicates unset, use default</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#minSessionTimeout">minSessionTimeout</a></span></code> +<div class="block">value of -1 indicates unset, use default</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#ok">ok</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#reconfigEnabled">reconfigEnabled</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#SASL_SUPER_USER">SASL_SUPER_USER</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#secureServerCnxnFactory">secureServerCnxnFactory</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#serverCnxnFactory">serverCnxnFactory</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/zookeeper/server/SessionTracker.html" title="interface in org.apache.zookeeper.server">SessionTracker</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#sessionTracker">sessionTracker</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#SKIP_ACL">SKIP_ACL</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#SNAP_COUNT">SNAP_COUNT</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.State.html" title="enum in org.apache.zookeeper.server">ZooKeeperServer.State</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#state">state</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected static int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#throttledOpWaitTime">throttledOpWaitTime</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#tickTime">tickTime</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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/ZooKeeperServer.html#ZOOKEEPER_DIGEST_ENABLED">ZOOKEEPER_DIGEST_ENABLED</a></span></code> </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/ZooKeeperServer.html#ZooKeeperServer--">ZooKeeperServer</a></span>()</code> +<div class="block">Creates a ZooKeeperServer instance.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#ZooKeeperServer-java.io.File-java.io.File-int-">ZooKeeperServer</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> snapDir, + <a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> logDir, + int tickTime)</code> +<div class="block">This constructor is for backward compatibility with the existing unit + test code.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-">ZooKeeperServer</a></span>(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory)</code> +<div class="block">Default constructor, relies on the config for its argument values</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-int-int-int-org.apache.zookeeper.server.ZKDatabase-java.lang.String-">ZooKeeperServer</a></span>(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory, + int tickTime, + int minSessionTimeout, + int maxSessionTimeout, + int clientPortListenBacklog, + <a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a> zkDb, + <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> initialConfig)</code> +<div class="block">Keeping this constructor for backward compatibility</div> +</td> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-int-int-int-org.apache.zookeeper.server.ZKDatabase-java.lang.String-boolean-">ZooKeeperServer</a></span>(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory, + int tickTime, + int minSessionTimeout, + int maxSessionTimeout, + int clientPortListenBacklog, + <a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a> zkDb, + <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> initialConfig, + boolean reconfigEnabled)</code> +<div class="block">* Creates a ZooKeeperServer instance.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-java.lang.String-">ZooKeeperServer</a></span>(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory, + int tickTime, + <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> initialConfig)</code> +<div class="block">creates a zookeeperserver instance.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#ZooKeeperServer-org.apache.zookeeper.server.util.JvmPauseMonitor-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-int-int-int-org.apache.zookeeper.server.ZKDatabase-java.lang.String-">ZooKeeperServer</a></span>(<a href="../../../../org/apache/zookeeper/server/util/JvmPauseMonitor.html" title="class in org.apache.zookeeper.server.util">JvmPauseMonitor</a> jvmPauseMonitor, + <a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory, + int tickTime, + int minSessionTimeout, + int maxSessionTimeout, + int clientPortListenBacklog, + <a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a> zkDb, + <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> initialConfig)</code> +<div class="block">Adds JvmPauseMonitor and calls + <a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-int-int-int-org.apache.zookeeper.server.ZKDatabase-java.lang.String-"><code>ZooKeeperServer(FileTxnSnapLog, int, int, int, int, ZKDatabase, String)</code></a></div> +</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>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#authWriteRequest-org.apache.zookeeper.server.Request-">authWriteRequest</a></span>(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> request)</code> +<div class="block">Check Write Requests for Potential Access Restrictions + <p/> + Before a request is being proposed to the quorum, lets check it + against local ACLs.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code>protected boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#canShutdown--">canShutdown</a></span>()</code> +<div class="block">This can be used while shutting down the server to see whether the server + is already shutdown or not.</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/ZooKeeperServer.html#checkACL-org.apache.zookeeper.server.ServerCnxn-java.util.List-int-java.util.List-java.lang.String-java.util.List-">checkACL</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + <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 perm, + <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/Id.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Id</a>> ids, + <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>> setAcls)</code> +<div class="block">Grant or deny authorization to an operation on a node as a function of:</div> +</td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code>protected boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#checkPasswd-long-byte:A-">checkPasswd</a></span>(long sessionId, + byte[] passwd)</code> </td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#checkQuota-java.lang.String-byte:A-byte:A-int-">checkQuota</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[] lastData, + byte[] data, + int type)</code> +<div class="block">check a path whether exceeded the quota.</div> +</td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#checkRequestSizeWhenReceivingMessage-int-">checkRequestSizeWhenReceivingMessage</a></span>(int length)</code> </td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#closeSession-long-">closeSession</a></span>(long sessionId)</code> </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/ZooKeeperServer.html#closeSession-org.apache.zookeeper.server.ServerCnxn-org.apache.zookeeper.proto.RequestHeader-">closeSession</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/proto/RequestHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.proto">RequestHeader</a> requestHeader)</code> </td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/BlueThrottle.html" title="class in org.apache.zookeeper.server">BlueThrottle</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#connThrottle--">connThrottle</a></span>()</code> </td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code>protected <a href="../../../../org/apache/zookeeper/server/RequestThrottler.html" title="class in org.apache.zookeeper.server">RequestThrottler</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#createRequestThrottler--">createRequestThrottler</a></span>()</code> </td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#createSessionTracker--">createSessionTracker</a></span>()</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/ZooKeeperServer.html#decInProcess--">decInProcess</a></span>()</code> </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/ZooKeeperServer.html#dumpConf-java.io.PrintWriter-">dumpConf</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> </td> +</tr> +<tr id="i13" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.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> </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/ZooKeeperServer.html#dumpMonitorValues-java.util.function.BiConsumer-">dumpMonitorValues</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/BiConsumer.html?is-external=true" title="class or interface in java.util.function">BiConsumer</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>,<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>> response)</code> +<div class="block">Hook into admin server, useful to expose additional data + that do not represent metrics.</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/ZooKeeperServer.html#enqueueRequest-org.apache.zookeeper.server.Request-">enqueueRequest</a></span>(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> si)</code> </td> +</tr> +<tr id="i16" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#expire-long-">expire</a></span>(long sessionId)</code> </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/ZooKeeperServer.html#expire-org.apache.zookeeper.server.SessionTracker.Session-">expire</a></span>(<a href="../../../../org/apache/zookeeper/server/SessionTracker.Session.html" title="interface in org.apache.zookeeper.server">SessionTracker.Session</a> session)</code> </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/ZooKeeperServer.html#finishSessionInit-org.apache.zookeeper.server.ServerCnxn-boolean-">finishSessionInit</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + boolean valid)</code> </td> +</tr> +<tr id="i19" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getClientPort--">getClientPort</a></span>()</code> </td> +</tr> +<tr id="i20" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getClientPortListenBacklog--">getClientPortListenBacklog</a></span>()</code> </td> +</tr> +<tr id="i21" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ZooKeeperServerConf.html" title="class in org.apache.zookeeper.server">ZooKeeperServerConf</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getConf--">getConf</a></span>()</code> </td> +</tr> +<tr id="i22" class="altColor"> +<td class="colFirst"><code>double</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getConnectionDropChance--">getConnectionDropChance</a></span>()</code> </td> +</tr> +<tr id="i23" class="rowColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getDataDirSize--">getDataDirSize</a></span>()</code> </td> +</tr> +<tr id="i24" 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/ZooKeeperServer.html#getEphemerals--">getEphemerals</a></span>()</code> </td> +</tr> +<tr id="i25" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ResponseCache.html" title="class in org.apache.zookeeper.server">ResponseCache</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getGetChildrenResponseCache--">getGetChildrenResponseCache</a></span>()</code> </td> +</tr> +<tr id="i26" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getGlobalOutstandingLimit--">getGlobalOutstandingLimit</a></span>()</code> </td> +</tr> +<tr id="i27" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getInflight--">getInflight</a></span>()</code> </td> +</tr> +<tr id="i28" 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/ZooKeeperServer.html#getInitialConfig--">getInitialConfig</a></span>()</code> </td> +</tr> +<tr id="i29" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getInProcess--">getInProcess</a></span>()</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/ZooKeeperServer.html#getLargeRequestBytes--">getLargeRequestBytes</a></span>()</code> </td> +</tr> +<tr id="i31" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getLargeRequestMaxBytes--">getLargeRequestMaxBytes</a></span>()</code> </td> +</tr> +<tr id="i32" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getLargeRequestThreshold--">getLargeRequestThreshold</a></span>()</code> </td> +</tr> +<tr id="i33" class="rowColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getLastProcessedZxid--">getLastProcessedZxid</a></span>()</code> +<div class="block">return the last processed id from the + datatree</div> +</td> +</tr> +<tr id="i34" class="altColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getLogDirSize--">getLogDirSize</a></span>()</code> </td> +</tr> +<tr id="i35" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getMaxClientCnxnsPerHost--">getMaxClientCnxnsPerHost</a></span>()</code> +<div class="block">Maximum number of connections allowed from particular host (ip)</div> +</td> +</tr> +<tr id="i36" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getMaxSessionTimeout--">getMaxSessionTimeout</a></span>()</code> </td> +</tr> +<tr id="i37" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getMinSessionTimeout--">getMinSessionTimeout</a></span>()</code> </td> +</tr> +<tr id="i38" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getNumAliveConnections--">getNumAliveConnections</a></span>()</code> +<div class="block">return the total number of client connections that are alive + to this server</div> +</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/ZooKeeperServer.html#getOutstandingHandshakeNum--">getOutstandingHandshakeNum</a></span>()</code> </td> +</tr> +<tr id="i40" class="altColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getOutstandingRequests--">getOutstandingRequests</a></span>()</code> +<div class="block">return the outstanding requests + in the queue, which haven't been + processed yet</div> +</td> +</tr> +<tr id="i41" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ResponseCache.html" title="class in org.apache.zookeeper.server">ResponseCache</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getReadResponseCache--">getReadResponseCache</a></span>()</code> </td> +</tr> +<tr id="i42" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/util/RequestPathMetricsCollector.html" title="class in org.apache.zookeeper.server.util">RequestPathMetricsCollector</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getRequestPathMetricsCollector--">getRequestPathMetricsCollector</a></span>()</code> </td> +</tr> +<tr id="i43" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getSecureClientPort--">getSecureClientPort</a></span>()</code> </td> +</tr> +<tr id="i44" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getSecureServerCnxnFactory--">getSecureServerCnxnFactory</a></span>()</code> </td> +</tr> +<tr id="i45" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getServerCnxnFactory--">getServerCnxnFactory</a></span>()</code> </td> +</tr> +<tr id="i46" class="altColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getServerId--">getServerId</a></span>()</code> </td> +</tr> +<tr id="i47" class="rowColor"> +<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/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/ZooKeeperServer.html#getSessionExpiryMap--">getSessionExpiryMap</a></span>()</code> </td> +</tr> +<tr id="i48" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/SessionTracker.html" title="interface in org.apache.zookeeper.server">SessionTracker</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getSessionTracker--">getSessionTracker</a></span>()</code> </td> +</tr> +<tr id="i49" class="rowColor"> +<td class="colFirst"><code>static int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getSnapCount--">getSnapCount</a></span>()</code> </td> +</tr> +<tr id="i50" class="altColor"> +<td class="colFirst"><code>static long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getSnapSizeInBytes--">getSnapSizeInBytes</a></span>()</code> </td> +</tr> +<tr id="i51" class="rowColor"> +<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/ZooKeeperServer.html#getState--">getState</a></span>()</code> </td> +</tr> +<tr id="i52" class="altColor"> +<td class="colFirst"><code>static int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getThrottledOpWaitTime--">getThrottledOpWaitTime</a></span>()</code> </td> +</tr> +<tr id="i53" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getTickTime--">getTickTime</a></span>()</code> </td> +</tr> +<tr id="i54" class="altColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getTxnLogElapsedSyncTime--">getTxnLogElapsedSyncTime</a></span>()</code> +<div class="block">Returns the elapsed sync of time of transaction log in milliseconds.</div> +</td> +</tr> +<tr id="i55" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getTxnLogFactory--">getTxnLogFactory</a></span>()</code> </td> +</tr> +<tr id="i56" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getZKDatabase--">getZKDatabase</a></span>()</code> +<div class="block">get the zookeeper database for this server</div> +</td> +</tr> +<tr id="i57" class="rowColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ZooKeeperServerShutdownHandler.html" title="class in org.apache.zookeeper.server">ZooKeeperServerShutdownHandler</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getZkShutdownHandler--">getZkShutdownHandler</a></span>()</code> </td> +</tr> +<tr id="i58" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ZooKeeperServerListener.html" title="interface in org.apache.zookeeper.server">ZooKeeperServerListener</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getZooKeeperServerListener--">getZooKeeperServerListener</a></span>()</code> </td> +</tr> +<tr id="i59" class="rowColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#getZxid--">getZxid</a></span>()</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/ZooKeeperServer.html#incInProcess--">incInProcess</a></span>()</code> </td> +</tr> +<tr id="i61" class="rowColor"> +<td class="colFirst"><code>static boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#isCloseSessionTxnEnabled--">isCloseSessionTxnEnabled</a></span>()</code> </td> +</tr> +<tr id="i62" class="altColor"> +<td class="colFirst"><code>static boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#isDigestEnabled--">isDigestEnabled</a></span>()</code> </td> +</tr> +<tr id="i63" class="rowColor"> +<td class="colFirst"><code>static boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#isEnableEagerACLCheck--">isEnableEagerACLCheck</a></span>()</code> </td> +</tr> +<tr id="i64" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#isReconfigEnabled--">isReconfigEnabled</a></span>()</code> </td> +</tr> +<tr id="i65" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#isResponseCachingEnabled--">isResponseCachingEnabled</a></span>()</code> </td> +</tr> +<tr id="i66" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#isRunning--">isRunning</a></span>()</code> </td> +</tr> +<tr id="i67" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#killSession-long-long-">killSession</a></span>(long sessionId, + long zxid)</code> </td> +</tr> +<tr id="i68" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#loadData--">loadData</a></span>()</code> +<div class="block">Restore sessions and data</div> +</td> +</tr> +<tr id="i69" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#processConnectRequest-org.apache.zookeeper.server.ServerCnxn-java.nio.ByteBuffer-">processConnectRequest</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> incomingBuffer)</code> </td> +</tr> +<tr id="i70" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#processPacket-org.apache.zookeeper.server.ServerCnxn-java.nio.ByteBuffer-">processPacket</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> incomingBuffer)</code> </td> +</tr> +<tr id="i71" 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/ZooKeeperServer.html#processTxn-org.apache.zookeeper.server.Request-">processTxn</a></span>(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> request)</code> </td> +</tr> +<tr id="i72" 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/ZooKeeperServer.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> hdr, + <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="i73" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#registerJMX--">registerJMX</a></span>()</code> </td> +</tr> +<tr id="i74" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#registerMetrics--">registerMetrics</a></span>()</code> </td> +</tr> +<tr id="i75" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#reopenSession-org.apache.zookeeper.server.ServerCnxn-long-byte:A-int-">reopenSession</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + long sessionId, + byte[] passwd, + int sessionTimeout)</code> </td> +</tr> +<tr id="i76" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#requestFinished-org.apache.zookeeper.server.Request-">requestFinished</a></span>(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> request)</code> </td> +</tr> +<tr id="i77" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#revalidateSession-org.apache.zookeeper.server.ServerCnxn-long-int-">revalidateSession</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + long sessionId, + int sessionTimeout)</code> </td> +</tr> +<tr id="i78" class="altColor"> +<td class="colFirst"><code><a href="../../../../org/apache/zookeeper/server/ServerStats.html" title="class in org.apache.zookeeper.server">ServerStats</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#serverStats--">serverStats</a></span>()</code> </td> +</tr> +<tr id="i79" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setClientPortListenBacklog-int-">setClientPortListenBacklog</a></span>(int backlog)</code> </td> +</tr> +<tr id="i80" class="altColor"> +<td class="colFirst"><code>static void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setCloseSessionTxnEnabled-boolean-">setCloseSessionTxnEnabled</a></span>(boolean enabled)</code> </td> +</tr> +<tr id="i81" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setCreateSessionTrackerServerId-int-">setCreateSessionTrackerServerId</a></span>(int newId)</code> +<div class="block">Change the server ID used by <a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#createSessionTracker--"><code>createSessionTracker()</code></a>.</div> +</td> +</tr> +<tr id="i82" class="altColor"> +<td class="colFirst"><code>static void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setDigestEnabled-boolean-">setDigestEnabled</a></span>(boolean digestEnabled)</code> </td> +</tr> +<tr id="i83" class="rowColor"> +<td class="colFirst"><code>static void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setEnableEagerACLCheck-boolean-">setEnableEagerACLCheck</a></span>(boolean enabled)</code> </td> +</tr> +<tr id="i84" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setLargeRequestMaxBytes-int-">setLargeRequestMaxBytes</a></span>(int bytes)</code> </td> +</tr> +<tr id="i85" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setLargeRequestThreshold-int-">setLargeRequestThreshold</a></span>(int threshold)</code> </td> +</tr> +<tr id="i86" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setLocalSessionFlag-org.apache.zookeeper.server.Request-">setLocalSessionFlag</a></span>(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> si)</code> +<div class="block">If the underlying Zookeeper server support local session, this method + will set a isLocalSession to true if a request is associated with + a local session.</div> +</td> +</tr> +<tr id="i87" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setMaxSessionTimeout-int-">setMaxSessionTimeout</a></span>(int max)</code> </td> +</tr> +<tr id="i88" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setMinSessionTimeout-int-">setMinSessionTimeout</a></span>(int min)</code> </td> +</tr> +<tr id="i89" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setOwner-long-java.lang.Object-">setOwner</a></span>(long id, + <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> owner)</code> +<div class="block">set the owner of this session as owner</div> +</td> +</tr> +<tr id="i90" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setResponseCachingEnabled-boolean-">setResponseCachingEnabled</a></span>(boolean isEnabled)</code> </td> +</tr> +<tr id="i91" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setSecureServerCnxnFactory-org.apache.zookeeper.server.ServerCnxnFactory-">setSecureServerCnxnFactory</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a> factory)</code> </td> +</tr> +<tr id="i92" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setServerCnxnFactory-org.apache.zookeeper.server.ServerCnxnFactory-">setServerCnxnFactory</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a> factory)</code> </td> +</tr> +<tr id="i93" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setState-org.apache.zookeeper.server.ZooKeeperServer.State-">setState</a></span>(<a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.State.html" title="enum in org.apache.zookeeper.server">ZooKeeperServer.State</a> state)</code> +<div class="block">Sets the state of ZooKeeper server.</div> +</td> +</tr> +<tr id="i94" class="altColor"> +<td class="colFirst"><code>static void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setThrottledOpWaitTime-int-">setThrottledOpWaitTime</a></span>(int time)</code> </td> +</tr> +<tr id="i95" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setTickTime-int-">setTickTime</a></span>(int tickTime)</code> </td> +</tr> +<tr id="i96" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setTxnLogFactory-org.apache.zookeeper.server.persistence.FileTxnSnapLog-">setTxnLogFactory</a></span>(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLog)</code> </td> +</tr> +<tr id="i97" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setupRequestProcessors--">setupRequestProcessors</a></span>()</code> </td> +</tr> +<tr id="i98" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setZKDatabase-org.apache.zookeeper.server.ZKDatabase-">setZKDatabase</a></span>(<a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a> zkDb)</code> +<div class="block">set the zkdatabase for this zookeeper server</div> +</td> +</tr> +<tr id="i99" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#setZxid-long-">setZxid</a></span>(long zxid)</code> </td> +</tr> +<tr id="i100" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#shouldForceWriteInitialSnapshotAfterLeaderElection--">shouldForceWriteInitialSnapshotAfterLeaderElection</a></span>()</code> </td> +</tr> +<tr id="i101" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#shouldThrottle-long-">shouldThrottle</a></span>(long outStandingCount)</code> </td> +</tr> +<tr id="i102" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#shutdown--">shutdown</a></span>()</code> </td> +</tr> +<tr id="i103" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#shutdown-boolean-">shutdown</a></span>(boolean fullyShutDown)</code> +<div class="block">Shut down the server instance</div> +</td> +</tr> +<tr id="i104" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#startdata--">startdata</a></span>()</code> </td> +</tr> +<tr id="i105" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#startJvmPauseMonitor--">startJvmPauseMonitor</a></span>()</code> </td> +</tr> +<tr id="i106" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#startRequestThrottler--">startRequestThrottler</a></span>()</code> </td> +</tr> +<tr id="i107" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#startServing--">startServing</a></span>()</code> </td> +</tr> +<tr id="i108" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#startSessionTracker--">startSessionTracker</a></span>()</code> </td> +</tr> +<tr id="i109" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#startup--">startup</a></span>()</code> </td> +</tr> +<tr id="i110" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#startupWithoutServing--">startupWithoutServing</a></span>()</code> </td> +</tr> +<tr id="i111" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#submitRequest-org.apache.zookeeper.server.Request-">submitRequest</a></span>(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> si)</code> </td> +</tr> +<tr id="i112" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#submitRequestNow-org.apache.zookeeper.server.Request-">submitRequestNow</a></span>(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> si)</code> </td> +</tr> +<tr id="i113" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#takeSnapshot--">takeSnapshot</a></span>()</code> </td> +</tr> +<tr id="i114" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#takeSnapshot-boolean-">takeSnapshot</a></span>(boolean syncSnap)</code> </td> +</tr> +<tr id="i115" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#truncateLog-long-">truncateLog</a></span>(long zxid)</code> +<div class="block">truncate the log to get in sync with others + if in a quorum</div> +</td> +</tr> +<tr id="i116" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#unregisterJMX--">unregisterJMX</a></span>()</code> </td> +</tr> +<tr id="i117" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#unregisterMetrics--">unregisterMetrics</a></span>()</code> </td> +</tr> +<tr id="i118" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#validateSession-org.apache.zookeeper.server.ServerCnxn-long-">validateSession</a></span>(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + long sessionId)</code> +<div class="block">Validate if a particular session can be reestablished.</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="LOG"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>LOG</h4> +<pre>protected static final org.slf4j.Logger LOG</pre> +</li> +</ul> +<a name="GLOBAL_OUTSTANDING_LIMIT"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>GLOBAL_OUTSTANDING_LIMIT</h4> +<pre>public static final <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> GLOBAL_OUTSTANDING_LIMIT</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.GLOBAL_OUTSTANDING_LIMIT">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="ENABLE_EAGER_ACL_CHECK"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ENABLE_EAGER_ACL_CHECK</h4> +<pre>public static final <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> ENABLE_EAGER_ACL_CHECK</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.ENABLE_EAGER_ACL_CHECK">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="SKIP_ACL"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>SKIP_ACL</h4> +<pre>public static final <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> SKIP_ACL</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.SKIP_ACL">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="ENFORCE_QUOTA"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ENFORCE_QUOTA</h4> +<pre>public static final <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> ENFORCE_QUOTA</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.ENFORCE_QUOTA">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="enforceQuota"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>enforceQuota</h4> +<pre>public static final boolean enforceQuota</pre> +</li> +</ul> +<a name="SASL_SUPER_USER"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>SASL_SUPER_USER</h4> +<pre>public static final <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> SASL_SUPER_USER</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.SASL_SUPER_USER">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="ALLOW_SASL_FAILED_CLIENTS"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ALLOW_SASL_FAILED_CLIENTS</h4> +<pre>public static final <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> ALLOW_SASL_FAILED_CLIENTS</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.ALLOW_SASL_FAILED_CLIENTS">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="ZOOKEEPER_DIGEST_ENABLED"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ZOOKEEPER_DIGEST_ENABLED</h4> +<pre>public static final <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> ZOOKEEPER_DIGEST_ENABLED</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.ZOOKEEPER_DIGEST_ENABLED">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="CLOSE_SESSION_TXN_ENABLED"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>CLOSE_SESSION_TXN_ENABLED</h4> +<pre>public static final <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> CLOSE_SESSION_TXN_ENABLED</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.CLOSE_SESSION_TXN_ENABLED">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="jmxServerBean"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>jmxServerBean</h4> +<pre>protected <a href="../../../../org/apache/zookeeper/server/ZooKeeperServerBean.html" title="class in org.apache.zookeeper.server">ZooKeeperServerBean</a> jmxServerBean</pre> +</li> +</ul> +<a name="jmxDataTreeBean"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>jmxDataTreeBean</h4> +<pre>protected <a href="../../../../org/apache/zookeeper/server/DataTreeBean.html" title="class in org.apache.zookeeper.server">DataTreeBean</a> jmxDataTreeBean</pre> +</li> +</ul> +<a name="DEFAULT_TICK_TIME"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>DEFAULT_TICK_TIME</h4> +<pre>public static final int DEFAULT_TICK_TIME</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.DEFAULT_TICK_TIME">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="tickTime"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>tickTime</h4> +<pre>protected int tickTime</pre> +</li> +</ul> +<a name="DEFAULT_THROTTLED_OP_WAIT_TIME"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>DEFAULT_THROTTLED_OP_WAIT_TIME</h4> +<pre>public static final int DEFAULT_THROTTLED_OP_WAIT_TIME</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.DEFAULT_THROTTLED_OP_WAIT_TIME">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="throttledOpWaitTime"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>throttledOpWaitTime</h4> +<pre>protected static volatile int throttledOpWaitTime</pre> +</li> +</ul> +<a name="minSessionTimeout"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>minSessionTimeout</h4> +<pre>protected int minSessionTimeout</pre> +<div class="block">value of -1 indicates unset, use default</div> +</li> +</ul> +<a name="maxSessionTimeout"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>maxSessionTimeout</h4> +<pre>protected int maxSessionTimeout</pre> +<div class="block">value of -1 indicates unset, use default</div> +</li> +</ul> +<a name="listenBacklog"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>listenBacklog</h4> +<pre>protected int listenBacklog</pre> +<div class="block">Socket listen backlog. Value of -1 indicates unset</div> +</li> +</ul> +<a name="sessionTracker"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>sessionTracker</h4> +<pre>protected <a href="../../../../org/apache/zookeeper/server/SessionTracker.html" title="interface in org.apache.zookeeper.server">SessionTracker</a> sessionTracker</pre> +</li> +</ul> +<a name="ok"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ok</h4> +<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a> ok</pre> +</li> +</ul> +<a name="firstProcessor"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>firstProcessor</h4> +<pre>protected <a href="../../../../org/apache/zookeeper/server/RequestProcessor.html" title="interface in org.apache.zookeeper.server">RequestProcessor</a> firstProcessor</pre> +</li> +</ul> +<a name="jvmPauseMonitor"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>jvmPauseMonitor</h4> +<pre>protected <a href="../../../../org/apache/zookeeper/server/util/JvmPauseMonitor.html" title="class in org.apache.zookeeper.server.util">JvmPauseMonitor</a> jvmPauseMonitor</pre> +</li> +</ul> +<a name="state"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>state</h4> +<pre>protected volatile <a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.State.html" title="enum in org.apache.zookeeper.server">ZooKeeperServer.State</a> state</pre> +</li> +</ul> +<a name="initialConfig"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>initialConfig</h4> +<pre>protected <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> initialConfig</pre> +</li> +</ul> +<a name="reconfigEnabled"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>reconfigEnabled</h4> +<pre>protected boolean reconfigEnabled</pre> +</li> +</ul> +<a name="serverCnxnFactory"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>serverCnxnFactory</h4> +<pre>protected <a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a> serverCnxnFactory</pre> +</li> +</ul> +<a name="secureServerCnxnFactory"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>secureServerCnxnFactory</h4> +<pre>protected <a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a> secureServerCnxnFactory</pre> +</li> +</ul> +<a name="INT_BUFFER_STARTING_SIZE_BYTES"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>INT_BUFFER_STARTING_SIZE_BYTES</h4> +<pre>public static final <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> INT_BUFFER_STARTING_SIZE_BYTES</pre> +<div class="block">Starting size of read and write ByteArroyOuputBuffers. Default is 32 bytes. + Flag not used for small transfers like connectResponses.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.INT_BUFFER_STARTING_SIZE_BYTES">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="DEFAULT_STARTING_BUFFER_SIZE"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>DEFAULT_STARTING_BUFFER_SIZE</h4> +<pre>public static final int DEFAULT_STARTING_BUFFER_SIZE</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.DEFAULT_STARTING_BUFFER_SIZE">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="intBufferStartingSizeBytes"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>intBufferStartingSizeBytes</h4> +<pre>public static final int intBufferStartingSizeBytes</pre> +</li> +</ul> +<a name="GET_DATA_RESPONSE_CACHE_SIZE"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>GET_DATA_RESPONSE_CACHE_SIZE</h4> +<pre>public static final <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> GET_DATA_RESPONSE_CACHE_SIZE</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.GET_DATA_RESPONSE_CACHE_SIZE">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="GET_CHILDREN_RESPONSE_CACHE_SIZE"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>GET_CHILDREN_RESPONSE_CACHE_SIZE</h4> +<pre>public static final <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> GET_CHILDREN_RESPONSE_CACHE_SIZE</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.GET_CHILDREN_RESPONSE_CACHE_SIZE">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="SNAP_COUNT"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>SNAP_COUNT</h4> +<pre>public static final <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> SNAP_COUNT</pre> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.zookeeper.server.ZooKeeperServer.SNAP_COUNT">Constant Field Values</a></dd> +</dl> +</li> +</ul> +</li> +</ul> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="ZooKeeperServer--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ZooKeeperServer</h4> +<pre>public ZooKeeperServer()</pre> +<div class="block">Creates a ZooKeeperServer instance. Nothing is setup, use the setX + methods to prepare the instance (eg datadir, datalogdir, ticktime, + builder, etc...)</div> +</li> +</ul> +<a name="ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-int-int-int-org.apache.zookeeper.server.ZKDatabase-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ZooKeeperServer</h4> +<pre>public ZooKeeperServer(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory, + int tickTime, + int minSessionTimeout, + int maxSessionTimeout, + int clientPortListenBacklog, + <a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a> zkDb, + <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> initialConfig)</pre> +<div class="block">Keeping this constructor for backward compatibility</div> +</li> +</ul> +<a name="ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-int-int-int-org.apache.zookeeper.server.ZKDatabase-java.lang.String-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ZooKeeperServer</h4> +<pre>public ZooKeeperServer(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory, + int tickTime, + int minSessionTimeout, + int maxSessionTimeout, + int clientPortListenBacklog, + <a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a> zkDb, + <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> initialConfig, + boolean reconfigEnabled)</pre> +<div class="block">* Creates a ZooKeeperServer instance. It sets everything up, but doesn't + actually start listening for clients until run() is invoked.</div> +</li> +</ul> +<a name="ZooKeeperServer-org.apache.zookeeper.server.util.JvmPauseMonitor-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-int-int-int-org.apache.zookeeper.server.ZKDatabase-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ZooKeeperServer</h4> +<pre>public ZooKeeperServer(<a href="../../../../org/apache/zookeeper/server/util/JvmPauseMonitor.html" title="class in org.apache.zookeeper.server.util">JvmPauseMonitor</a> jvmPauseMonitor, + <a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory, + int tickTime, + int minSessionTimeout, + int maxSessionTimeout, + int clientPortListenBacklog, + <a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a> zkDb, + <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> initialConfig)</pre> +<div class="block">Adds JvmPauseMonitor and calls + <a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-int-int-int-org.apache.zookeeper.server.ZKDatabase-java.lang.String-"><code>ZooKeeperServer(FileTxnSnapLog, int, int, int, int, ZKDatabase, String)</code></a></div> +</li> +</ul> +<a name="ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-int-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ZooKeeperServer</h4> +<pre>public ZooKeeperServer(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory, + int tickTime, + <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> initialConfig)</pre> +<div class="block">creates a zookeeperserver instance.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>txnLogFactory</code> - the file transaction snapshot logging class</dd> +<dd><code>tickTime</code> - the ticktime for the server</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="ZooKeeperServer-java.io.File-java.io.File-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>ZooKeeperServer</h4> +<pre>public ZooKeeperServer(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> snapDir, + <a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> logDir, + int tickTime) + 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">This constructor is for backward compatibility with the existing unit + test code. + It defaults to FileLogProvider persistence provider.</div> +<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="ZooKeeperServer-org.apache.zookeeper.server.persistence.FileTxnSnapLog-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>ZooKeeperServer</h4> +<pre>public ZooKeeperServer(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLogFactory) + 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">Default constructor, relies on the config for its argument values</div> +<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> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="isEnableEagerACLCheck--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isEnableEagerACLCheck</h4> +<pre>public static boolean isEnableEagerACLCheck()</pre> +</li> +</ul> +<a name="setEnableEagerACLCheck-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setEnableEagerACLCheck</h4> +<pre>public static void setEnableEagerACLCheck(boolean enabled)</pre> +</li> +</ul> +<a name="isCloseSessionTxnEnabled--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isCloseSessionTxnEnabled</h4> +<pre>public static boolean isCloseSessionTxnEnabled()</pre> +</li> +</ul> +<a name="setCloseSessionTxnEnabled-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setCloseSessionTxnEnabled</h4> +<pre>public static void setCloseSessionTxnEnabled(boolean enabled)</pre> +</li> +</ul> +<a name="getInitialConfig--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInitialConfig</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> getInitialConfig()</pre> +</li> +</ul> +<a name="serverStats--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>serverStats</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ServerStats.html" title="class in org.apache.zookeeper.server">ServerStats</a> serverStats()</pre> +</li> +</ul> +<a name="getRequestPathMetricsCollector--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getRequestPathMetricsCollector</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/util/RequestPathMetricsCollector.html" title="class in org.apache.zookeeper.server.util">RequestPathMetricsCollector</a> getRequestPathMetricsCollector()</pre> +</li> +</ul> +<a name="connThrottle--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>connThrottle</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/BlueThrottle.html" title="class in org.apache.zookeeper.server">BlueThrottle</a> connThrottle()</pre> +</li> +</ul> +<a name="dumpConf-java.io.PrintWriter-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>dumpConf</h4> +<pre>public void dumpConf(<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> +</li> +</ul> +<a name="getConf--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getConf</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ZooKeeperServerConf.html" title="class in org.apache.zookeeper.server">ZooKeeperServerConf</a> getConf()</pre> +</li> +</ul> +<a name="getZKDatabase--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getZKDatabase</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a> getZKDatabase()</pre> +<div class="block">get the zookeeper database for this server</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the zookeeper database for this server</dd> +</dl> +</li> +</ul> +<a name="setZKDatabase-org.apache.zookeeper.server.ZKDatabase-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setZKDatabase</h4> +<pre>public void setZKDatabase(<a href="../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a> zkDb)</pre> +<div class="block">set the zkdatabase for this zookeeper server</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>zkDb</code> - </dd> +</dl> +</li> +</ul> +<a name="loadData--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>loadData</h4> +<pre>public void loadData() + 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>, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre> +<div class="block">Restore sessions and data</div> +<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> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd> +</dl> +</li> +</ul> +<a name="takeSnapshot--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>takeSnapshot</h4> +<pre>public void takeSnapshot()</pre> +</li> +</ul> +<a name="takeSnapshot-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>takeSnapshot</h4> +<pre>public void takeSnapshot(boolean syncSnap)</pre> +</li> +</ul> +<a name="shouldForceWriteInitialSnapshotAfterLeaderElection--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>shouldForceWriteInitialSnapshotAfterLeaderElection</h4> +<pre>public boolean shouldForceWriteInitialSnapshotAfterLeaderElection()</pre> +</li> +</ul> +<a name="getDataDirSize--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getDataDirSize</h4> +<pre>public long getDataDirSize()</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html#getDataDirSize--">getDataDirSize</a></code> in interface <code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html" title="interface in org.apache.zookeeper.server">ServerStats.Provider</a></code></dd> +</dl> +</li> +</ul> +<a name="getLogDirSize--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getLogDirSize</h4> +<pre>public long getLogDirSize()</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html#getLogDirSize--">getLogDirSize</a></code> in interface <code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html" title="interface in org.apache.zookeeper.server">ServerStats.Provider</a></code></dd> +</dl> +</li> +</ul> +<a name="getZxid--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getZxid</h4> +<pre>public long getZxid()</pre> +</li> +</ul> +<a name="getSessionTracker--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSessionTracker</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/SessionTracker.html" title="interface in org.apache.zookeeper.server">SessionTracker</a> getSessionTracker()</pre> +</li> +</ul> +<a name="setZxid-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setZxid</h4> +<pre>public void setZxid(long zxid)</pre> +</li> +</ul> +<a name="closeSession-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>closeSession</h4> +<pre>public void closeSession(long sessionId)</pre> +</li> +</ul> +<a name="killSession-long-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>killSession</h4> +<pre>protected void killSession(long sessionId, + long zxid)</pre> +</li> +</ul> +<a name="expire-org.apache.zookeeper.server.SessionTracker.Session-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>expire</h4> +<pre>public void expire(<a href="../../../../org/apache/zookeeper/server/SessionTracker.Session.html" title="interface in org.apache.zookeeper.server">SessionTracker.Session</a> session)</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/server/SessionTracker.SessionExpirer.html#expire-org.apache.zookeeper.server.SessionTracker.Session-">expire</a></code> in interface <code><a href="../../../../org/apache/zookeeper/server/SessionTracker.SessionExpirer.html" title="interface in org.apache.zookeeper.server">SessionTracker.SessionExpirer</a></code></dd> +</dl> +</li> +</ul> +<a name="expire-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>expire</h4> +<pre>public void expire(long sessionId)</pre> +</li> +</ul> +<a name="registerJMX--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>registerJMX</h4> +<pre>protected void registerJMX()</pre> +</li> +</ul> +<a name="startdata--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>startdata</h4> +<pre>public void startdata() + 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>, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</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> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd> +</dl> +</li> +</ul> +<a name="startup--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>startup</h4> +<pre>public void startup()</pre> +</li> +</ul> +<a name="startupWithoutServing--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>startupWithoutServing</h4> +<pre>public void startupWithoutServing()</pre> +</li> +</ul> +<a name="startServing--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>startServing</h4> +<pre>public void startServing()</pre> +</li> +</ul> +<a name="startJvmPauseMonitor--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>startJvmPauseMonitor</h4> +<pre>protected void startJvmPauseMonitor()</pre> +</li> +</ul> +<a name="startRequestThrottler--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>startRequestThrottler</h4> +<pre>protected void startRequestThrottler()</pre> +</li> +</ul> +<a name="createRequestThrottler--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createRequestThrottler</h4> +<pre>protected <a href="../../../../org/apache/zookeeper/server/RequestThrottler.html" title="class in org.apache.zookeeper.server">RequestThrottler</a> createRequestThrottler()</pre> +</li> +</ul> +<a name="setupRequestProcessors--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setupRequestProcessors</h4> +<pre>protected void setupRequestProcessors()</pre> +</li> +</ul> +<a name="getZooKeeperServerListener--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getZooKeeperServerListener</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ZooKeeperServerListener.html" title="interface in org.apache.zookeeper.server">ZooKeeperServerListener</a> getZooKeeperServerListener()</pre> +</li> +</ul> +<a name="setCreateSessionTrackerServerId-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setCreateSessionTrackerServerId</h4> +<pre>public void setCreateSessionTrackerServerId(int newId)</pre> +<div class="block">Change the server ID used by <a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#createSessionTracker--"><code>createSessionTracker()</code></a>. Must be called prior to + <a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.html#startup--"><code>startup()</code></a> being called</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>newId</code> - ID to use</dd> +</dl> +</li> +</ul> +<a name="createSessionTracker--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createSessionTracker</h4> +<pre>protected void createSessionTracker()</pre> +</li> +</ul> +<a name="startSessionTracker--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>startSessionTracker</h4> +<pre>protected void startSessionTracker()</pre> +</li> +</ul> +<a name="setState-org.apache.zookeeper.server.ZooKeeperServer.State-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setState</h4> +<pre>protected void setState(<a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.State.html" title="enum in org.apache.zookeeper.server">ZooKeeperServer.State</a> state)</pre> +<div class="block">Sets the state of ZooKeeper server. After changing the state, it notifies + the server state change to a registered shutdown handler, if any. + <p> + The following are the server state transitions: + <ul><li>During startup the server will be in the INITIAL state.</li> + <li>After successfully starting, the server sets the state to RUNNING. + </li> + <li>The server transitions to the ERROR state if it hits an internal + error. <code>ZooKeeperServerListenerImpl</code> notifies any critical resource + error events, e.g., SyncRequestProcessor not being able to write a txn to + disk.</li> + <li>During shutdown the server sets the state to SHUTDOWN, which + corresponds to the server not running.</li></ul></div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>state</code> - new server state.</dd> +</dl> +</li> +</ul> +<a name="canShutdown--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>canShutdown</h4> +<pre>protected boolean canShutdown()</pre> +<div class="block">This can be used while shutting down the server to see whether the server + is already shutdown or not.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>true if the server is running or server hits an error, false + otherwise.</dd> +</dl> +</li> +</ul> +<a name="isRunning--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isRunning</h4> +<pre>public boolean isRunning()</pre> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>true if the server is running, false otherwise.</dd> +</dl> +</li> +</ul> +<a name="shutdown--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>shutdown</h4> +<pre>public void shutdown()</pre> +</li> +</ul> +<a name="shutdown-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>shutdown</h4> +<pre>public void shutdown(boolean fullyShutDown)</pre> +<div class="block">Shut down the server instance</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>fullyShutDown</code> - true if another server using the same database will not replace this one in the same process</dd> +</dl> +</li> +</ul> +<a name="unregisterJMX--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>unregisterJMX</h4> +<pre>protected void unregisterJMX()</pre> +</li> +</ul> +<a name="incInProcess--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>incInProcess</h4> +<pre>public void incInProcess()</pre> +</li> +</ul> +<a name="decInProcess--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>decInProcess</h4> +<pre>public void decInProcess()</pre> +</li> +</ul> +<a name="getInProcess--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInProcess</h4> +<pre>public int getInProcess()</pre> +</li> +</ul> +<a name="getInflight--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInflight</h4> +<pre>public int getInflight()</pre> +</li> +</ul> +<a name="checkPasswd-long-byte:A-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>checkPasswd</h4> +<pre>protected boolean checkPasswd(long sessionId, + byte[] passwd)</pre> +</li> +</ul> +<a name="setOwner-long-java.lang.Object-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setOwner</h4> +<pre>public void setOwner(long id, + <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> owner) + throws <a href="../../../../org/apache/zookeeper/KeeperException.SessionExpiredException.html" title="class in org.apache.zookeeper">KeeperException.SessionExpiredException</a></pre> +<div class="block">set the owner of this session as owner</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>id</code> - the session id</dd> +<dd><code>owner</code> - the owner of the session</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.SessionExpiredException.html" title="class in org.apache.zookeeper">KeeperException.SessionExpiredException</a></code></dd> +</dl> +</li> +</ul> +<a name="revalidateSession-org.apache.zookeeper.server.ServerCnxn-long-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>revalidateSession</h4> +<pre>protected void revalidateSession(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + long sessionId, + int sessionTimeout) + 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="reopenSession-org.apache.zookeeper.server.ServerCnxn-long-byte:A-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>reopenSession</h4> +<pre>public void reopenSession(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + long sessionId, + byte[] passwd, + int sessionTimeout) + 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="finishSessionInit-org.apache.zookeeper.server.ServerCnxn-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>finishSessionInit</h4> +<pre>public void finishSessionInit(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + boolean valid)</pre> +</li> +</ul> +<a name="closeSession-org.apache.zookeeper.server.ServerCnxn-org.apache.zookeeper.proto.RequestHeader-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>closeSession</h4> +<pre>public void closeSession(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/proto/RequestHeader.html?is-external=true" title="class or interface in org.apache.zookeeper.proto">RequestHeader</a> requestHeader)</pre> +</li> +</ul> +<a name="getServerId--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getServerId</h4> +<pre>public long getServerId()</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/server/SessionTracker.SessionExpirer.html#getServerId--">getServerId</a></code> in interface <code><a href="../../../../org/apache/zookeeper/server/SessionTracker.SessionExpirer.html" title="interface in org.apache.zookeeper.server">SessionTracker.SessionExpirer</a></code></dd> +</dl> +</li> +</ul> +<a name="setLocalSessionFlag-org.apache.zookeeper.server.Request-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setLocalSessionFlag</h4> +<pre>protected void setLocalSessionFlag(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> si)</pre> +<div class="block">If the underlying Zookeeper server support local session, this method + will set a isLocalSession to true if a request is associated with + a local session.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>si</code> - </dd> +</dl> +</li> +</ul> +<a name="submitRequest-org.apache.zookeeper.server.Request-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>submitRequest</h4> +<pre>public void submitRequest(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> si)</pre> +</li> +</ul> +<a name="enqueueRequest-org.apache.zookeeper.server.Request-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>enqueueRequest</h4> +<pre>public void enqueueRequest(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> si)</pre> +</li> +</ul> +<a name="submitRequestNow-org.apache.zookeeper.server.Request-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>submitRequestNow</h4> +<pre>public void submitRequestNow(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> si)</pre> +</li> +</ul> +<a name="getSnapCount--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSnapCount</h4> +<pre>public static int getSnapCount()</pre> +</li> +</ul> +<a name="getGlobalOutstandingLimit--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getGlobalOutstandingLimit</h4> +<pre>public int getGlobalOutstandingLimit()</pre> +</li> +</ul> +<a name="getSnapSizeInBytes--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSnapSizeInBytes</h4> +<pre>public static long getSnapSizeInBytes()</pre> +</li> +</ul> +<a name="setServerCnxnFactory-org.apache.zookeeper.server.ServerCnxnFactory-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setServerCnxnFactory</h4> +<pre>public void setServerCnxnFactory(<a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a> factory)</pre> +</li> +</ul> +<a name="getServerCnxnFactory--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getServerCnxnFactory</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a> getServerCnxnFactory()</pre> +</li> +</ul> +<a name="getSecureServerCnxnFactory--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSecureServerCnxnFactory</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a> getSecureServerCnxnFactory()</pre> +</li> +</ul> +<a name="setSecureServerCnxnFactory-org.apache.zookeeper.server.ServerCnxnFactory-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setSecureServerCnxnFactory</h4> +<pre>public void setSecureServerCnxnFactory(<a href="../../../../org/apache/zookeeper/server/ServerCnxnFactory.html" title="class in org.apache.zookeeper.server">ServerCnxnFactory</a> factory)</pre> +</li> +</ul> +<a name="getLastProcessedZxid--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getLastProcessedZxid</h4> +<pre>public long getLastProcessedZxid()</pre> +<div class="block">return the last processed id from the + datatree</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html#getLastProcessedZxid--">getLastProcessedZxid</a></code> in interface <code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html" title="interface in org.apache.zookeeper.server">ServerStats.Provider</a></code></dd> +</dl> +</li> +</ul> +<a name="getOutstandingRequests--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getOutstandingRequests</h4> +<pre>public long getOutstandingRequests()</pre> +<div class="block">return the outstanding requests + in the queue, which haven't been + processed yet</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html#getOutstandingRequests--">getOutstandingRequests</a></code> in interface <code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html" title="interface in org.apache.zookeeper.server">ServerStats.Provider</a></code></dd> +</dl> +</li> +</ul> +<a name="getNumAliveConnections--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getNumAliveConnections</h4> +<pre>public int getNumAliveConnections()</pre> +<div class="block">return the total number of client connections that are alive + to this server</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html#getNumAliveConnections--">getNumAliveConnections</a></code> in interface <code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html" title="interface in org.apache.zookeeper.server">ServerStats.Provider</a></code></dd> +</dl> +</li> +</ul> +<a name="truncateLog-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>truncateLog</h4> +<pre>public void truncateLog(long zxid) + 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">truncate the log to get in sync with others + if in a quorum</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>zxid</code> - the zxid that it needs to get in sync + with others</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="getTickTime--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getTickTime</h4> +<pre>public int getTickTime()</pre> +</li> +</ul> +<a name="setTickTime-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setTickTime</h4> +<pre>public void setTickTime(int tickTime)</pre> +</li> +</ul> +<a name="getThrottledOpWaitTime--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getThrottledOpWaitTime</h4> +<pre>public static int getThrottledOpWaitTime()</pre> +</li> +</ul> +<a name="setThrottledOpWaitTime-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setThrottledOpWaitTime</h4> +<pre>public static void setThrottledOpWaitTime(int time)</pre> +</li> +</ul> +<a name="getMinSessionTimeout--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getMinSessionTimeout</h4> +<pre>public int getMinSessionTimeout()</pre> +</li> +</ul> +<a name="setMinSessionTimeout-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setMinSessionTimeout</h4> +<pre>public void setMinSessionTimeout(int min)</pre> +</li> +</ul> +<a name="getMaxSessionTimeout--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getMaxSessionTimeout</h4> +<pre>public int getMaxSessionTimeout()</pre> +</li> +</ul> +<a name="setMaxSessionTimeout-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setMaxSessionTimeout</h4> +<pre>public void setMaxSessionTimeout(int max)</pre> +</li> +</ul> +<a name="getClientPortListenBacklog--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getClientPortListenBacklog</h4> +<pre>public int getClientPortListenBacklog()</pre> +</li> +</ul> +<a name="setClientPortListenBacklog-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setClientPortListenBacklog</h4> +<pre>public void setClientPortListenBacklog(int backlog)</pre> +</li> +</ul> +<a name="getClientPort--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getClientPort</h4> +<pre>public int getClientPort()</pre> +</li> +</ul> +<a name="getSecureClientPort--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSecureClientPort</h4> +<pre>public int getSecureClientPort()</pre> +</li> +</ul> +<a name="getMaxClientCnxnsPerHost--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getMaxClientCnxnsPerHost</h4> +<pre>public int getMaxClientCnxnsPerHost()</pre> +<div class="block">Maximum number of connections allowed from particular host (ip)</div> +</li> +</ul> +<a name="setTxnLogFactory-org.apache.zookeeper.server.persistence.FileTxnSnapLog-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setTxnLogFactory</h4> +<pre>public void setTxnLogFactory(<a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> txnLog)</pre> +</li> +</ul> +<a name="getTxnLogFactory--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getTxnLogFactory</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/persistence/FileTxnSnapLog.html" title="class in org.apache.zookeeper.server.persistence">FileTxnSnapLog</a> getTxnLogFactory()</pre> +</li> +</ul> +<a name="getTxnLogElapsedSyncTime--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getTxnLogElapsedSyncTime</h4> +<pre>public long getTxnLogElapsedSyncTime()</pre> +<div class="block">Returns the elapsed sync of time of transaction log in milliseconds.</div> +</li> +</ul> +<a name="getState--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getState</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> getState()</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html#getState--">getState</a></code> in interface <code><a href="../../../../org/apache/zookeeper/server/ServerStats.Provider.html" title="interface in org.apache.zookeeper.server">ServerStats.Provider</a></code></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> +</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> +</li> +</ul> +<a name="getConnectionDropChance--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getConnectionDropChance</h4> +<pre>public double getConnectionDropChance()</pre> +</li> +</ul> +<a name="processConnectRequest-org.apache.zookeeper.server.ServerCnxn-java.nio.ByteBuffer-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>processConnectRequest</h4> +<pre>public void processConnectRequest(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> incomingBuffer) + 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>, + <a href="../../../../org/apache/zookeeper/server/ClientCnxnLimitException.html" title="class in org.apache.zookeeper.server">ClientCnxnLimitException</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> +<dd><code><a href="../../../../org/apache/zookeeper/server/ClientCnxnLimitException.html" title="class in org.apache.zookeeper.server">ClientCnxnLimitException</a></code></dd> +</dl> +</li> +</ul> +<a name="validateSession-org.apache.zookeeper.server.ServerCnxn-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>validateSession</h4> +<pre>protected void validateSession(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + long sessionId) + 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">Validate if a particular session can be reestablished.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>cnxn</code> - </dd> +<dd><code>sessionId</code> - </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="shouldThrottle-long-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>shouldThrottle</h4> +<pre>public boolean shouldThrottle(long outStandingCount)</pre> +</li> +</ul> +<a name="getLargeRequestMaxBytes--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getLargeRequestMaxBytes</h4> +<pre>public int getLargeRequestMaxBytes()</pre> +</li> +</ul> +<a name="setLargeRequestMaxBytes-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setLargeRequestMaxBytes</h4> +<pre>public void setLargeRequestMaxBytes(int bytes)</pre> +</li> +</ul> +<a name="getLargeRequestThreshold--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getLargeRequestThreshold</h4> +<pre>public int getLargeRequestThreshold()</pre> +</li> +</ul> +<a name="setLargeRequestThreshold-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setLargeRequestThreshold</h4> +<pre>public void setLargeRequestThreshold(int threshold)</pre> +</li> +</ul> +<a name="getLargeRequestBytes--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getLargeRequestBytes</h4> +<pre>public int getLargeRequestBytes()</pre> +</li> +</ul> +<a name="checkRequestSizeWhenReceivingMessage-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>checkRequestSizeWhenReceivingMessage</h4> +<pre>public boolean checkRequestSizeWhenReceivingMessage(int length) + 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="requestFinished-org.apache.zookeeper.server.Request-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>requestFinished</h4> +<pre>public void requestFinished(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> request)</pre> +</li> +</ul> +<a name="processPacket-org.apache.zookeeper.server.ServerCnxn-java.nio.ByteBuffer-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>processPacket</h4> +<pre>public void processPacket(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> incomingBuffer) + 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="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> hdr, + <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.server.Request-"> +<!-- --> +</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="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> request)</pre> +</li> +</ul> +<a name="getSessionExpiryMap--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSessionExpiryMap</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/Long.html?is-external=true" title="class or interface in java.lang">Long</a>>> getSessionExpiryMap()</pre> +</li> +</ul> +<a name="isResponseCachingEnabled--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isResponseCachingEnabled</h4> +<pre>public boolean isResponseCachingEnabled()</pre> +</li> +</ul> +<a name="setResponseCachingEnabled-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setResponseCachingEnabled</h4> +<pre>public void setResponseCachingEnabled(boolean isEnabled)</pre> +</li> +</ul> +<a name="getReadResponseCache--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getReadResponseCache</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ResponseCache.html" title="class in org.apache.zookeeper.server">ResponseCache</a> getReadResponseCache()</pre> +</li> +</ul> +<a name="getGetChildrenResponseCache--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getGetChildrenResponseCache</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ResponseCache.html" title="class in org.apache.zookeeper.server">ResponseCache</a> getGetChildrenResponseCache()</pre> +</li> +</ul> +<a name="registerMetrics--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>registerMetrics</h4> +<pre>protected void registerMetrics()</pre> +</li> +</ul> +<a name="unregisterMetrics--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>unregisterMetrics</h4> +<pre>protected void unregisterMetrics()</pre> +</li> +</ul> +<a name="dumpMonitorValues-java.util.function.BiConsumer-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>dumpMonitorValues</h4> +<pre>public void dumpMonitorValues(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/BiConsumer.html?is-external=true" title="class or interface in java.util.function">BiConsumer</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>,<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>> response)</pre> +<div class="block">Hook into admin server, useful to expose additional data + that do not represent metrics.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>response</code> - a sink which collects the data.</dd> +</dl> +</li> +</ul> +<a name="checkACL-org.apache.zookeeper.server.ServerCnxn-java.util.List-int-java.util.List-java.lang.String-java.util.List-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>checkACL</h4> +<pre>public void checkACL(<a href="../../../../org/apache/zookeeper/server/ServerCnxn.html" title="class in org.apache.zookeeper.server">ServerCnxn</a> cnxn, + <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 perm, + <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/Id.html?is-external=true" title="class or interface in org.apache.zookeeper.data">Id</a>> ids, + <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>> setAcls) + throws <a href="../../../../org/apache/zookeeper/KeeperException.NoAuthException.html" title="class in org.apache.zookeeper">KeeperException.NoAuthException</a></pre> +<div class="block">Grant or deny authorization to an operation on a node as a function of:</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>cnxn</code> - : the server connection</dd> +<dd><code>acl</code> - : set of ACLs for the node</dd> +<dd><code>perm</code> - : the permission that the client is requesting</dd> +<dd><code>ids</code> - : the credentials supplied by the client</dd> +<dd><code>path</code> - : the ZNode path</dd> +<dd><code>setAcls</code> - : for set ACL operations, the list of ACLs being set. Otherwise null.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.NoAuthException.html" title="class in org.apache.zookeeper">KeeperException.NoAuthException</a></code></dd> +</dl> +</li> +</ul> +<a name="checkQuota-java.lang.String-byte:A-byte:A-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>checkQuota</h4> +<pre>public void checkQuota(<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[] lastData, + byte[] data, + int type) + throws <a href="../../../../org/apache/zookeeper/KeeperException.QuotaExceededException.html" title="class in org.apache.zookeeper">KeeperException.QuotaExceededException</a></pre> +<div class="block">check a path whether exceeded the quota.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>path</code> - the path of the node, used for the quota prefix check</dd> +<dd><code>lastData</code> - the current node data, <code>null</code> for none</dd> +<dd><code>data</code> - the data to be set, or <code>null</code> for none</dd> +<dd><code>type</code> - currently, create and setData need to check quota</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/zookeeper/KeeperException.QuotaExceededException.html" title="class in org.apache.zookeeper">KeeperException.QuotaExceededException</a></code></dd> +</dl> +</li> +</ul> +<a name="isDigestEnabled--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isDigestEnabled</h4> +<pre>public static boolean isDigestEnabled()</pre> +</li> +</ul> +<a name="setDigestEnabled-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setDigestEnabled</h4> +<pre>public static void setDigestEnabled(boolean digestEnabled)</pre> +</li> +</ul> +<a name="authWriteRequest-org.apache.zookeeper.server.Request-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>authWriteRequest</h4> +<pre>public boolean authWriteRequest(<a href="../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a> request)</pre> +<div class="block">Check Write Requests for Potential Access Restrictions + <p/> + Before a request is being proposed to the quorum, lets check it + against local ACLs. Non-write requests (read, session, etc.) + are passed along. Invalid requests are sent a response. + <p/> + While we are at it, if the request will set an ACL: make sure it's + a valid one.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>request</code> - </dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>true if request is permitted, false if not.</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="getOutstandingHandshakeNum--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getOutstandingHandshakeNum</h4> +<pre>public int getOutstandingHandshakeNum()</pre> +</li> +</ul> +<a name="isReconfigEnabled--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isReconfigEnabled</h4> +<pre>public boolean isReconfigEnabled()</pre> +</li> +</ul> +<a name="getZkShutdownHandler--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>getZkShutdownHandler</h4> +<pre>public <a href="../../../../org/apache/zookeeper/server/ZooKeeperServerShutdownHandler.html" title="class in org.apache.zookeeper.server">ZooKeeperServerShutdownHandler</a> getZkShutdownHandler()</pre> +</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/ZooKeeperServer.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/ZooKeeperSaslServer.html" title="class in org.apache.zookeeper.server"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../org/apache/zookeeper/server/ZooKeeperServer.MissingSessionException.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/ZooKeeperServer.html" target="_top">Frames</a></li> +<li><a href="ZooKeeperServer.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> |