blob: 3bf70f45c0049dadf909808d04564b5b2ae52e49 [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) -->
<title>ZKUtil (Apache HBase 4.0.0-alpha-1-SNAPSHOT API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: package: org.apache.hadoop.hbase.zookeeper, class: ZKUtil">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="class-use/ZKUtil.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#class">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div>
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li><a href="#nested-class-summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field-summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor-summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li><a href="#field-detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor-detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.apache.hadoop.hbase.zookeeper</a></div>
<h1 title="Class ZKUtil" class="title">Class ZKUtil</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance">org.apache.hadoop.hbase.zookeeper.ZKUtil</div>
</div>
<section class="class-description" id="class-description">
<hr>
<div class="type-signature"><span class="annotations">@Private
</span><span class="modifiers">public final class </span><span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-64">ZKUtil</a></span>
<span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span></div>
<div class="block">Internal HBase utility class for ZooKeeper.
<p>
Contains only static methods and constants.
<p>
Methods all throw <code>KeeperException</code> if there is an unexpected zookeeper exception, so
callers of these methods must handle appropriately. If ZK is required for the operation, the
server will need to be aborted.</div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<li>
<section class="nested-class-summary" id="nested-class-summary">
<h2>Nested Class Summary</h2>
<div class="caption"><span>Nested Classes</span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Class</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>static class&nbsp;</code></div>
<div class="col-second even-row-color"><code><a href="ZKUtil.NodeAndData.html" class="type-name-link" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.NodeAndData</a></code></div>
<div class="col-last even-row-color">
<div class="block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Unused</div>
</div>
</div>
<div class="col-first odd-row-color"><code>static class&nbsp;</code></div>
<div class="col-second odd-row-color"><code><a href="ZKUtil.ZKUtilOp.html" class="type-name-link" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a></code></div>
<div class="col-last odd-row-color">
<div class="block">Represents an action taken by ZKUtil, e.g.</div>
</div>
</div>
</section>
</li>
<!-- =========== FIELD SUMMARY =========== -->
<li>
<section class="field-summary" id="field-summary">
<h2>Field Summary</h2>
<div class="caption"><span>Fields</span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Field</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>private static final org.slf4j.Logger</code></div>
<div class="col-second even-row-color"><code><a href="#LOG" class="member-name-link">LOG</a></code></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><code>private static boolean</code></div>
<div class="col-second odd-row-color"><code><a href="#useMultiWarn" class="member-name-link">useMultiWarn</a></code></div>
<div class="col-last odd-row-color">&nbsp;</div>
</div>
</section>
</li>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li>
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>
<div class="caption"><span>Constructors</span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier</div>
<div class="table-header col-second">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>private </code></div>
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">ZKUtil</a>()</code></div>
<div class="col-last even-row-color">&nbsp;</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button><button id="method-summary-table-tab6" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab6', 3)" class="table-tab">Deprecated Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#asyncCreate(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D,org.apache.zookeeper.AsyncCallback.StringCallback,java.lang.Object)" class="member-name-link">asyncCreate</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
org.apache.zookeeper.AsyncCallback.StringCallback&nbsp;cb,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;ctx)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Async creates the specified node with the specified data.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#checkExists(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">checkExists</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Check if the specified node exists.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static org.apache.zookeeper.KeeperException</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#convert(org.apache.hadoop.hbase.exceptions.DeserializationException)" class="member-name-link">convert</a><wbr>(<a href="../exceptions/DeserializationException.html" title="class in org.apache.hadoop.hbase.exceptions">DeserializationException</a>&nbsp;e)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert a <a href="../exceptions/DeserializationException.html" title="class in org.apache.hadoop.hbase.exceptions"><code>DeserializationException</code></a> to a more palatable <code>KeeperException</code>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createAndFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">createAndFailSilent</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Creates the specified node, iff the node does not exist.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createAndFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D)" class="member-name-link">createAndFailSilent</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Creates the specified node containing specified data, iff the node does not exist.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createAndFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp.CreateAndFailSilent)" class="member-name-link">createAndFailSilent</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="ZKUtil.ZKUtilOp.CreateAndFailSilent.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp.CreateAndFailSilent</a>&nbsp;cafs)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D)" class="member-name-link">createAndWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Creates the specified node with the specified data and watches it.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createEphemeralNodeAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D)" class="member-name-link">createEphemeralNodeAndWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Set the specified znode to be an ephemeral node carrying the specified data.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createNodeIfNotExistsAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D)" class="member-name-link">createNodeIfNotExistsAndWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Creates the specified znode to be a persistent node carrying the specified data.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createNodeIfNotExistsNoWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D,org.apache.zookeeper.CreateMode)" class="member-name-link">createNodeIfNotExistsNoWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
org.apache.zookeeper.CreateMode&nbsp;createMode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Creates the specified znode with the specified data but does not watch it.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createSetData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D)" class="member-name-link">createSetData</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Set data into node creating node if it doesn't yet exist.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createWithParents(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">createWithParents</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Creates the specified node and all parent nodes required for it to exist.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createWithParents(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D)" class="member-name-link">createWithParents</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Creates the specified node and all parent nodes required for it to exist.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#deleteChildrenRecursively(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">deleteChildrenRecursively</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Delete all the children of the specified node but not the node itself.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#deleteChildrenRecursivelyMultiOrSequential(org.apache.hadoop.hbase.zookeeper.ZKWatcher,boolean,java.lang.String...)" class="member-name-link">deleteChildrenRecursivelyMultiOrSequential</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
boolean&nbsp;runSequentialOnMultiFailure,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>...&nbsp;pathRoots)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Delete all the children of the specified node but not the node itself.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#deleteNode(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">deleteNode</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Delete the specified node.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#deleteNode(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,int)" class="member-name-link">deleteNode</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node,
int&nbsp;version)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Delete the specified node with the specified version.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#deleteNodeFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">deleteNodeFailSilent</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Deletes the specified node.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#deleteNodeFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp.DeleteNodeFailSilent)" class="member-name-link">deleteNodeFailSilent</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="ZKUtil.ZKUtilOp.DeleteNodeFailSilent.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp.DeleteNodeFailSilent</a>&nbsp;dnfs)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#deleteNodeRecursively(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">deleteNodeRecursively</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Delete the specified node and all of it's children.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#deleteNodeRecursivelyMultiOrSequential(org.apache.hadoop.hbase.zookeeper.ZKWatcher,boolean,java.lang.String...)" class="member-name-link">deleteNodeRecursivelyMultiOrSequential</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
boolean&nbsp;runSequentialOnMultiFailure,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>...&nbsp;pathRoots)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Delete the specified node and its children.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>(package private) static int</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#estimateSize(org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp)" class="member-name-link">estimateSize</a><wbr>(<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&nbsp;op)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.NodeAndData.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.NodeAndData</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getChildDataAndWatchForNewChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">getChildDataAndWatchForNewChildren</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;baseNode)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
<div class="block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Unused</div>
</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.NodeAndData.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.NodeAndData</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getChildDataAndWatchForNewChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,boolean)" class="member-name-link">getChildDataAndWatchForNewChildren</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;baseNode,
boolean&nbsp;throwOnInterrupt)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
<div class="block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Unused</div>
</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static byte[]</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">getData</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Get znode data.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static byte[]</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getDataAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">getDataAndWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Get the data at the specified znode and set a watch.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static byte[]</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getDataAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,boolean)" class="member-name-link">getDataAndWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
boolean&nbsp;throwOnInterrupt)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Get the data at the specified znode and set a watch.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static byte[]</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getDataAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,org.apache.zookeeper.data.Stat)" class="member-name-link">getDataAndWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
org.apache.zookeeper.data.Stat&nbsp;stat)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Get the data at the specified znode and set a watch.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte[]</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getDataInternal(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,org.apache.zookeeper.data.Stat,boolean,boolean)" class="member-name-link">getDataInternal</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
org.apache.zookeeper.data.Stat&nbsp;stat,
boolean&nbsp;watcherSet,
boolean&nbsp;throwOnInterrupt)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static byte[]</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getDataNoWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,org.apache.zookeeper.data.Stat)" class="member-name-link">getDataNoWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
org.apache.zookeeper.data.Stat&nbsp;stat)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Get the data at the specified znode without setting a watch.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getNodeName(java.lang.String)" class="member-name-link">getNodeName</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;path)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Get the name of the current node from the specified fully-qualified path.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getNumberOfChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">getNumberOfChildren</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Get the number of children of the specified node.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getParent(java.lang.String)" class="member-name-link">getParent</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Returns the full path of the immediate parent of the specified node.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getServerNameOrEmptyString(byte%5B%5D)" class="member-name-link">getServerNameOrEmptyString</a><wbr>(byte[]&nbsp;data)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#listChildrenAndWatchForNewChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">listChildrenAndWatchForNewChildren</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Lists the children znodes of the specified znode.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#listChildrenAndWatchThem(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">listChildrenAndWatchThem</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">List all the children of the specified znode, setting a watch for children changes and also
setting a watch on every individual child in order to get the NodeCreated and NodeDeleted
events.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#listChildrenBFSAndWatchThem(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">listChildrenBFSAndWatchThem</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">BFS Traversal of all the children under path, with the entries in the list, in the same order
as that of the traversal.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#listChildrenBFSNoWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">listChildrenBFSNoWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">BFS Traversal of all the children under path, with the entries in the list, in the same order
as that of the traversal.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#listChildrenNoWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">listChildrenNoWatch</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Lists the children of the specified znode without setting any watches.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#logRetrievedMsg(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D,boolean)" class="member-name-link">logRetrievedMsg</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
boolean&nbsp;watcherSet)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#logZKTree(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">logZKTree</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;root)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Recursively print the current state of ZK (non-transactional)</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#logZKTree(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,java.lang.String)" class="member-name-link">logZKTree</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;root,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;prefix)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Helper method to print the current state of the ZK tree.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#multiOrSequential(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.util.List,boolean)" class="member-name-link">multiOrSequential</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&nbsp;ops,
boolean&nbsp;runSequentialOnMultiFailure)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Use ZooKeeper's multi-update functionality.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#nodeHasChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">nodeHasChildren</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Checks if the specified znode has any children.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static long</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#parseWALPositionFrom(byte%5B%5D)" class="member-name-link">parseWALPositionFrom</a><wbr>(byte[]&nbsp;bytes)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>(package private) static <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&gt;</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#partitionOps(java.util.List,int)" class="member-name-link">partitionOps</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&nbsp;ops,
int&nbsp;maxPartitionSize)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Partition the list of <code>ops</code> by size (using <a href="#estimateSize(org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp)"><code>estimateSize(ZKUtilOp)</code></a>).</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static byte[]</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#positionToByteArray(long)" class="member-name-link">positionToByteArray</a><wbr>(long&nbsp;position)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#processSequentially(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.util.List)" class="member-name-link">processSequentially</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&nbsp;ops)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D)" class="member-name-link">setData</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Sets the data of the existing znode to be the specified data.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D,int)" class="member-name-link">setData</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
int&nbsp;expectedVersion)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Sets the data of the existing znode to be the specified data.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp.SetData)" class="member-name-link">setData</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="ZKUtil.ZKUtilOp.SetData.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp.SetData</a>&nbsp;setData)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setWatchIfNodeExists(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">setWatchIfNodeExists</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Watch the specified znode, but only if exists.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#submitBatchedMultiOrSequential(org.apache.hadoop.hbase.zookeeper.ZKWatcher,boolean,java.util.List)" class="member-name-link">submitBatchedMultiOrSequential</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
boolean&nbsp;runSequentialOnMultiFailure,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&nbsp;ops)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Chunks the provided <code>ops</code> when their approximate size exceeds the the configured limit.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static org.apache.zookeeper.Op</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#toZooKeeperOp(org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp)" class="member-name-link">toZooKeeperOp</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&nbsp;op)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Convert from ZKUtilOp to ZKOp</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#updateExistingNodeData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte%5B%5D,int)" class="member-name-link">updateExistingNodeData</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
int&nbsp;expectedVersion)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
<div class="block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Unused</div>
</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#waitForBaseZNode(org.apache.hadoop.conf.Configuration)" class="member-name-link">waitForBaseZNode</a><wbr>(org.apache.hadoop.conf.Configuration&nbsp;conf)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Waits for HBase installation's base (parent) znode to become available.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#watchAndCheckExists(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)" class="member-name-link">watchAndCheckExists</a><wbr>(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Watch the specified znode for delete/create/change events.</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
<code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ============ FIELD DETAIL =========== -->
<li>
<section class="field-details" id="field-detail">
<h2>Field Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="LOG">
<h3>LOG</h3>
<div class="member-signature"><span class="modifiers">private static final</span>&nbsp;<span class="return-type">org.slf4j.Logger</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-66">LOG</a></span></div>
</section>
</li>
<li>
<section class="detail" id="useMultiWarn">
<h3>useMultiWarn</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1281">useMultiWarn</a></span></div>
</section>
</li>
</ul>
</section>
</li>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li>
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="&lt;init&gt;()">
<h3>ZKUtil</h3>
<div class="member-signature"><span class="modifiers">private</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-68">ZKUtil</a></span>()</div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="getParent(java.lang.String)">
<h3>getParent</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-79">getParent</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</span></div>
<div class="block">Returns the full path of the immediate parent of the specified node.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>node</code> - path to get parent of</dd>
<dt>Returns:</dt>
<dd>parent of path, null if passed the root node or an invalid node</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getNodeName(java.lang.String)">
<h3>getNodeName</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-89">getNodeName</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;path)</span></div>
<div class="block">Get the name of the current node from the specified fully-qualified path.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>path</code> - fully-qualified path</dd>
<dt>Returns:</dt>
<dd>name of the current node</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="watchAndCheckExists(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>watchAndCheckExists</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-106">watchAndCheckExists</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Watch the specified znode for delete/create/change events. The watcher is set whether or not
the node exists. If the node already exists, the method returns true. If the node does not
exist, the method returns false.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node to watch</dd>
<dt>Returns:</dt>
<dd>true if znode exists, false if does not exist or error</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setWatchIfNodeExists(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>setWatchIfNodeExists</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-136">setWatchIfNodeExists</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Watch the specified znode, but only if exists. Useful when watching for deletions. Uses
.getData() (and handles NoNodeException) instead of .exists() to accomplish this, as .getData()
will only set a watch if the znode exists.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node to watch</dd>
<dt>Returns:</dt>
<dd>true if the watch is set, false if node does not exists</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="checkExists(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>checkExists</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-156">checkExists</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Check if the specified node exists. Sets no watches.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node to watch</dd>
<dt>Returns:</dt>
<dd>version of the node if it exists, -1 if does not exist</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="listChildrenAndWatchForNewChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>listChildrenAndWatchForNewChildren</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-187">listChildrenAndWatchForNewChildren</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Lists the children znodes of the specified znode. Also sets a watch on the specified znode
which will capture a NodeDeleted event on the specified znode as well as NodeChildrenChanged if
any children of the specified znode are created or deleted. Returns null if the specified node
does not exist. Otherwise returns a list of children of the specified node. If the node exists
but it has no children, an empty list will be returned.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node to list and watch children of</dd>
<dt>Returns:</dt>
<dd>list of children of the specified node, an empty list if the node exists but has no
children, and null if the node does not exist</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="listChildrenAndWatchThem(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>listChildrenAndWatchThem</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-214">listChildrenAndWatchThem</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">List all the children of the specified znode, setting a watch for children changes and also
setting a watch on every individual child in order to get the NodeCreated and NodeDeleted
events.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zookeeper reference</dd>
<dd><code>znode</code> - node to get children of and watch</dd>
<dt>Returns:</dt>
<dd>list of znode names, null if the node doesn't exist</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if a ZooKeeper operation fails</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="listChildrenNoWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>listChildrenNoWatch</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-236">listChildrenNoWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Lists the children of the specified znode without setting any watches. Sets no watches at all,
this method is best effort. Returns an empty list if the node has no children. Returns null if
the parent node itself does not exist.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zookeeper reference</dd>
<dd><code>znode</code> - node to get children</dd>
<dt>Returns:</dt>
<dd>list of data of children of specified znode, empty if no children, null if parent does
not exist</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="nodeHasChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>nodeHasChildren</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-293">nodeHasChildren</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Checks if the specified znode has any children. Sets no watches. Returns true if the node
exists and has children. Returns false if the node does not exist or if the node does not have
any children. Used during master initialization to determine if the master is a failed-over-to
master or the first master during initial cluster startup. If the directory for regionserver
ephemeral nodes is empty then this is a cluster startup, if not then it is not cluster startup.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node to check for children of</dd>
<dt>Returns:</dt>
<dd>true if node has children, false if not or node does not exist</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getNumberOfChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>getNumberOfChildren</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-319">getNumberOfChildren</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Get the number of children of the specified node. If the node does not exist or has no
children, returns 0. Sets no watches at all.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node to count children of</dd>
<dt>Returns:</dt>
<dd>number of children of specified node, 0 if none or parent does not exist</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>getData</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">byte[]</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-340">getData</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/InterruptedException.html" title="class or interface in java.lang" class="external-link">InterruptedException</a></span></div>
<div class="block">Get znode data. Does not set a watcher.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>ZNode data, null if the node does not exist or if there is an error.</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/InterruptedException.html" title="class or interface in java.lang" class="external-link">InterruptedException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDataAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>getDataAndWatch</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">byte[]</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-366">getDataAndWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Get the data at the specified znode and set a watch. Returns the data and sets a watch if the
node exists. Returns null and no watch is set if the node does not exist or there is an
exception.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dt>Returns:</dt>
<dd>data of the specified znode, or null</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDataAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,boolean)">
<h3>getDataAndWatch</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">byte[]</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-380">getDataAndWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
boolean&nbsp;throwOnInterrupt)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Get the data at the specified znode and set a watch. Returns the data and sets a watch if the
node exists. Returns null and no watch is set if the node does not exist or there is an
exception.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>throwOnInterrupt</code> - if false then just interrupt the thread, do not throw exception</dd>
<dt>Returns:</dt>
<dd>data of the specified znode, or null</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDataAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,org.apache.zookeeper.data.Stat)">
<h3>getDataAndWatch</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">byte[]</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-395">getDataAndWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
org.apache.zookeeper.data.Stat&nbsp;stat)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Get the data at the specified znode and set a watch. Returns the data and sets a watch if the
node exists. Returns null and no watch is set if the node does not exist or there is an
exception.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>stat</code> - object to populate the version of the znode</dd>
<dt>Returns:</dt>
<dd>data of the specified znode, or null</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDataInternal(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,org.apache.zookeeper.data.Stat,boolean,boolean)">
<h3>getDataInternal</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">byte[]</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-400">getDataInternal</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
org.apache.zookeeper.data.Stat&nbsp;stat,
boolean&nbsp;watcherSet,
boolean&nbsp;throwOnInterrupt)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDataNoWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,org.apache.zookeeper.data.Stat)">
<h3>getDataNoWatch</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">byte[]</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-437">getDataNoWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
org.apache.zookeeper.data.Stat&nbsp;stat)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Get the data at the specified znode without setting a watch. Returns the data if the node
exists. Returns null if the node does not exist. Sets the stats of the node in the passed Stat
object. Pass a null stat if not interested.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>stat</code> - node status to get if node exists</dd>
<dt>Returns:</dt>
<dd>data of the specified znode, or null if node does not exist</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getChildDataAndWatchForNewChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>getChildDataAndWatchForNewChildren</h3>
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
</span><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.NodeAndData.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.NodeAndData</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-471">getChildDataAndWatchForNewChildren</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;baseNode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Unused</div>
</div>
<div class="block">Returns the date of child znodes of the specified znode. Also sets a watch on the specified
znode which will capture a NodeDeleted event on the specified znode as well as
NodeChildrenChanged if any children of the specified znode are created or deleted. Returns null
if the specified node does not exist. Otherwise returns a list of children of the specified
node. If the node exists but it has no children, an empty list will be returned.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>baseNode</code> - path of node to list and watch children of</dd>
<dt>Returns:</dt>
<dd>list of data of children of the specified node, an empty list if the node exists but
has no children, and null if the node does not exist</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getChildDataAndWatchForNewChildren(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,boolean)">
<h3>getChildDataAndWatchForNewChildren</h3>
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
</span><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.NodeAndData.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.NodeAndData</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-491">getChildDataAndWatchForNewChildren</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;baseNode,
boolean&nbsp;throwOnInterrupt)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Unused</div>
</div>
<div class="block">Returns the date of child znodes of the specified znode. Also sets a watch on the specified
znode which will capture a NodeDeleted event on the specified znode as well as
NodeChildrenChanged if any children of the specified znode are created or deleted. Returns null
if the specified node does not exist. Otherwise returns a list of children of the specified
node. If the node exists but it has no children, an empty list will be returned.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>baseNode</code> - path of node to list and watch children of</dd>
<dd><code>throwOnInterrupt</code> - if true then just interrupt the thread, do not throw exception</dd>
<dt>Returns:</dt>
<dd>list of data of children of the specified node, an empty list if the node exists but
has no children, and null if the node does not exist</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="updateExistingNodeData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[],int)">
<h3>updateExistingNodeData</h3>
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
</span><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-523">updateExistingNodeData</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
int&nbsp;expectedVersion)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Unused</div>
</div>
<div class="block">Update the data of an existing node with the expected version to have the specified data.
Throws an exception if there is a version mismatch or some other problem. Sets no watches under
any conditions.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - the path to the ZNode</dd>
<dd><code>data</code> - the data to store in ZooKeeper</dd>
<dd><code>expectedVersion</code> - the expected version</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
<dd><code>org.apache.zookeeper.KeeperException.BadVersionException</code> - if version mismatch</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[],int)">
<h3>setData</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-555">setData</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
int&nbsp;expectedVersion)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException,
org.apache.zookeeper.KeeperException.NoNodeException</span></div>
<div class="block">Sets the data of the existing znode to be the specified data. Ensures that the current data has
the specified expected version.
<p>
If the node does not exist, a <code>KeeperException.NoNodeException</code> will be thrown.
<p>
If their is a version mismatch, method returns null.
<p>
No watches are set but setting data will trigger other watchers of this node.
<p>
If there is another problem, a KeeperException will be thrown.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>data</code> - data to set for node</dd>
<dd><code>expectedVersion</code> - version expected when setting data</dd>
<dt>Returns:</dt>
<dd>true if data set, false if version mismatch</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
<dd><code>org.apache.zookeeper.KeeperException.NoNodeException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createSetData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[])">
<h3>createSetData</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-572">createSetData</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Set data into node creating node if it doesn't yet exist. Does not set watch.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>data</code> - data to set for node</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if a ZooKeeper operation fails</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[])">
<h3>setData</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-595">setData</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException,
org.apache.zookeeper.KeeperException.NoNodeException</span></div>
<div class="block">Sets the data of the existing znode to be the specified data. The node must exist but no checks
are done on the existing data or version.
<p>
If the node does not exist, a <code>KeeperException.NoNodeException</code> will be thrown.
<p>
No watches are set but setting data will trigger other watchers of this node.
<p>
If there is another problem, a KeeperException will be thrown.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>data</code> - data to set for node</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
<dd><code>org.apache.zookeeper.KeeperException.NoNodeException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setData(org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp.SetData)">
<h3>setData</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-600">setData</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="ZKUtil.ZKUtilOp.SetData.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp.SetData</a>&nbsp;setData)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException,
org.apache.zookeeper.KeeperException.NoNodeException</span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
<dd><code>org.apache.zookeeper.KeeperException.NoNodeException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createEphemeralNodeAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[])">
<h3>createEphemeralNodeAndWatch</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-621">createEphemeralNodeAndWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Set the specified znode to be an ephemeral node carrying the specified data. If the node is
created successfully, a watcher is also set on the node. If the node is not created
successfully because it already exists, this method will also set a watcher on the node. If
there is another problem, a KeeperException will be thrown.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>data</code> - data of node</dd>
<dt>Returns:</dt>
<dd>true if node created, false if not, watch set in both cases</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createNodeIfNotExistsAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[])">
<h3>createNodeIfNotExistsAndWatch</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-651">createNodeIfNotExistsAndWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Creates the specified znode to be a persistent node carrying the specified data. Returns true
if the node was successfully created, false if the node already existed. If the node is created
successfully, a watcher is also set on the node. If the node is not created successfully
because it already exists, this method will also set a watcher on the node but return false. If
there is another problem, a KeeperException will be thrown.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>data</code> - data of node</dd>
<dt>Returns:</dt>
<dd>true if node created, false if not, watch set in both cases</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createNodeIfNotExistsNoWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[],org.apache.zookeeper.CreateMode)">
<h3>createNodeIfNotExistsNoWatch</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-682">createNodeIfNotExistsNoWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
org.apache.zookeeper.CreateMode&nbsp;createMode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Creates the specified znode with the specified data but does not watch it. Returns the znode of
the newly created node If there is another problem, a KeeperException will be thrown.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>data</code> - data of node</dd>
<dd><code>createMode</code> - specifying whether the node to be created is ephemeral and/or sequential</dd>
<dt>Returns:</dt>
<dd>true name of the newly created znode or null</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createAndWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[])">
<h3>createAndWatch</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-709">createAndWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException,
org.apache.zookeeper.KeeperException.NodeExistsException</span></div>
<div class="block">Creates the specified node with the specified data and watches it.
<p>
Throws an exception if the node already exists.
<p>
The node created is persistent and open access.
<p>
Returns the version number of the created node if successful.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node to create</dd>
<dd><code>data</code> - data of node to create</dd>
<dt>Returns:</dt>
<dd>version of node created</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
<dd><code>org.apache.zookeeper.KeeperException.NodeExistsException</code> - if node already exists</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="asyncCreate(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[],org.apache.zookeeper.AsyncCallback.StringCallback,java.lang.Object)">
<h3>asyncCreate</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-740">asyncCreate</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
org.apache.zookeeper.AsyncCallback.StringCallback&nbsp;cb,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;ctx)</span></div>
<div class="block">Async creates the specified node with the specified data.
<p>
Throws an exception if the node already exists.
<p>
The node created is persistent and open access.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node to create</dd>
<dd><code>data</code> - data of node to create</dd>
<dd><code>cb</code> - the callback to use for the creation</dd>
<dd><code>ctx</code> - the context to use for the creation</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createAndFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>createAndFailSilent</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-753">createAndFailSilent</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Creates the specified node, iff the node does not exist. Does not set a watch and fails
silently if the node already exists. The node created is persistent and open access.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createAndFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[])">
<h3>createAndFailSilent</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-766">createAndFailSilent</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Creates the specified node containing specified data, iff the node does not exist. Does not set
a watch and fails silently if the node already exists. The node created is persistent and open
access.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dd><code>data</code> - a byte array data to store in the znode</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createAndFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp.CreateAndFailSilent)">
<h3>createAndFailSilent</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-771">createAndFailSilent</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="ZKUtil.ZKUtilOp.CreateAndFailSilent.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp.CreateAndFailSilent</a>&nbsp;cafs)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createWithParents(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>createWithParents</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-804">createWithParents</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Creates the specified node and all parent nodes required for it to exist. No watches are set
and no errors are thrown if the node already exists. The nodes created are persistent and open
access.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="createWithParents(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[])">
<h3>createWithParents</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-817">createWithParents</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Creates the specified node and all parent nodes required for it to exist. The creation of
parent znodes is not atomic with the leafe znode creation but the data is written atomically
when the leaf node is created. No watches are set and no errors are thrown if the node already
exists. The nodes created are persistent and open access.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - zk reference</dd>
<dd><code>znode</code> - path of node</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if unexpected zookeeper exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteNode(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>deleteNode</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-842">deleteNode</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Delete the specified node. Sets no watches. Throws all exceptions.</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteNode(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,int)">
<h3>deleteNode</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-849">deleteNode</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node,
int&nbsp;version)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Delete the specified node with the specified version. Sets no watches. Throws all exceptions.</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteNodeFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>deleteNodeFailSilent</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-867">deleteNodeFailSilent</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Deletes the specified node. Fails silent if the node does not exist.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - reference to the <a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper"><code>ZKWatcher</code></a> which also contains configuration and operation</dd>
<dd><code>node</code> - the node to delete</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if a ZooKeeper operation fails</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteNodeFailSilent(org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp.DeleteNodeFailSilent)">
<h3>deleteNodeFailSilent</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-871">deleteNodeFailSilent</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="ZKUtil.ZKUtilOp.DeleteNodeFailSilent.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp.DeleteNodeFailSilent</a>&nbsp;dnfs)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteNodeRecursively(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>deleteNodeRecursively</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-889">deleteNodeRecursively</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Delete the specified node and all of it's children.
<p>
If the node does not exist, just returns.
<p>
Sets no watches. Throws all exceptions besides dealing with deletion of children.</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteChildrenRecursively(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>deleteChildrenRecursively</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-898">deleteChildrenRecursively</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;node)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Delete all the children of the specified node but not the node itself. Sets no watches. Throws
all exceptions besides dealing with deletion of children.</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if a ZooKeeper operation fails</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteChildrenRecursivelyMultiOrSequential(org.apache.hadoop.hbase.zookeeper.ZKWatcher,boolean,java.lang.String...)">
<h3>deleteChildrenRecursivelyMultiOrSequential</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-920">deleteChildrenRecursivelyMultiOrSequential</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
boolean&nbsp;runSequentialOnMultiFailure,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>...&nbsp;pathRoots)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Delete all the children of the specified node but not the node itself. This will first traverse
the znode tree for listing the children and then delete these znodes using multi-update api or
sequential based on the specified configurations.
<p>
Sets no watches. Throws all exceptions besides dealing with deletion of children.
<p>
If the following is true:
<ul>
<li>runSequentialOnMultiFailure is true
</ul>
on calling multi, we get a ZooKeeper exception that can be handled by a sequential call(*), we
retry the operations one-by-one (sequentially). - zk reference - if true when we get a
ZooKeeper exception that could retry the operations one-by-one (sequentially) - path of the
parent node(s)</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException.NotEmptyException</code> - if node has children while deleting if unexpected
ZooKeeper exception if an invalid path is specified</dd>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="deleteNodeRecursivelyMultiOrSequential(org.apache.hadoop.hbase.zookeeper.ZKWatcher,boolean,java.lang.String...)">
<h3>deleteNodeRecursivelyMultiOrSequential</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-955">deleteNodeRecursivelyMultiOrSequential</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
boolean&nbsp;runSequentialOnMultiFailure,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>...&nbsp;pathRoots)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Delete the specified node and its children. This traverse the znode tree for listing the
children and then delete these znodes including the parent using multi-update api or sequential
based on the specified configurations.
<p>
Sets no watches. Throws all exceptions besides dealing with deletion of children.
<p>
If the following is true:
<ul>
<li>runSequentialOnMultiFailure is true
</ul>
on calling multi, we get a ZooKeeper exception that can be handled by a sequential call(*), we
retry the operations one-by-one (sequentially). - zk reference - if true when we get a
ZooKeeper exception that could retry the operations one-by-one (sequentially) - path of the
parent node(s)</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException.NotEmptyException</code> - if node has children while deleting if unexpected
ZooKeeper exception if an invalid path is specified</dd>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="submitBatchedMultiOrSequential(org.apache.hadoop.hbase.zookeeper.ZKWatcher,boolean,java.util.List)">
<h3>submitBatchedMultiOrSequential</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-993">submitBatchedMultiOrSequential</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
boolean&nbsp;runSequentialOnMultiFailure,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&nbsp;ops)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Chunks the provided <code>ops</code> when their approximate size exceeds the the configured limit.
Take caution that this can ONLY be used for operations where atomicity is not important, e.g.
deletions. It must not be used when atomicity of the operations is critical.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>zkw</code> - reference to the <a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper"><code>ZKWatcher</code></a> which contains
configuration and constants</dd>
<dd><code>runSequentialOnMultiFailure</code> - if true when we get a ZooKeeper exception that could retry
the operations one-by-one (sequentially)</dd>
<dd><code>ops</code> - list of ZKUtilOp <a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper"><code>ZKUtil.ZKUtilOp</code></a> to partition while
submitting batched multi or sequential</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - unexpected ZooKeeper Exception / Zookeeper unreachable</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="partitionOps(java.util.List,int)">
<h3>partitionOps</h3>
<div class="member-signature"><span class="modifiers">static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1011">partitionOps</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&nbsp;ops,
int&nbsp;maxPartitionSize)</span></div>
<div class="block">Partition the list of <code>ops</code> by size (using <a href="#estimateSize(org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp)"><code>estimateSize(ZKUtilOp)</code></a>).</div>
</section>
</li>
<li>
<section class="detail" id="estimateSize(org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp)">
<h3>estimateSize</h3>
<div class="member-signature"><span class="modifiers">static</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1038">estimateSize</a></span><wbr><span class="parameters">(<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&nbsp;op)</span></div>
</section>
</li>
<li>
<section class="detail" id="listChildrenBFSNoWatch(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>listChildrenBFSNoWatch</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1048">listChildrenBFSNoWatch</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">BFS Traversal of all the children under path, with the entries in the list, in the same order
as that of the traversal. Lists all the children without setting any watches. - zk reference -
path of node</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>list of children znodes under the path if unexpected ZooKeeper exception</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="listChildrenBFSAndWatchThem(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>listChildrenBFSAndWatchThem</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&gt;</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1077">listChildrenBFSAndWatchThem</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">BFS Traversal of all the children under path, with the entries in the list, in the same order
as that of the traversal. Lists all the children and set watches on to them. - zk reference -
path of node</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>list of children znodes under the path if unexpected ZooKeeper exception</dd>
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="toZooKeeperOp(org.apache.hadoop.hbase.zookeeper.ZKWatcher,org.apache.hadoop.hbase.zookeeper.ZKUtil.ZKUtilOp)">
<h3>toZooKeeperOp</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">org.apache.zookeeper.Op</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1256">toZooKeeperOp</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&nbsp;op)</span>
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang" class="external-link">UnsupportedOperationException</a></span></div>
<div class="block">Convert from ZKUtilOp to ZKOp</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang" class="external-link">UnsupportedOperationException</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="multiOrSequential(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.util.List,boolean)">
<h3>multiOrSequential</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1296">multiOrSequential</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&nbsp;ops,
boolean&nbsp;runSequentialOnMultiFailure)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Use ZooKeeper's multi-update functionality. If all of the following are true: -
runSequentialOnMultiFailure is true - on calling multi, we get a ZooKeeper exception that can
be handled by a sequential call(*) Then: - we retry the operations one-by-one (sequentially)
Note *: an example is receiving a NodeExistsException from a "create" call. Without multi, a
user could call "createAndFailSilent" to ensure that a node exists if they don't care who
actually created the node (i.e. the NodeExistsException from ZooKeeper is caught). This will
cause all operations in the multi to fail, however, because the NodeExistsException that
zk.create throws will fail the multi transaction. In this case, if the previous conditions
hold, the commands are run sequentially, which should result in the correct final state, but
means that the operations will not run atomically.</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if a ZooKeeper operation fails</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="processSequentially(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.util.List)">
<h3>processSequentially</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1338">processSequentially</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a>&lt;<a href="ZKUtil.ZKUtilOp.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKUtil.ZKUtilOp</a>&gt;&nbsp;ops)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException,
org.apache.zookeeper.KeeperException.NoNodeException</span></div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code></dd>
<dd><code>org.apache.zookeeper.KeeperException.NoNodeException</code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="logRetrievedMsg(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,byte[],boolean)">
<h3>logRetrievedMsg</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1358">logRetrievedMsg</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;znode,
byte[]&nbsp;data,
boolean&nbsp;watcherSet)</span></div>
</section>
</li>
<li>
<section class="detail" id="getServerNameOrEmptyString(byte[])">
<h3>getServerNameOrEmptyString</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1374">getServerNameOrEmptyString</a></span><wbr><span class="parameters">(byte[]&nbsp;data)</span></div>
</section>
</li>
<li>
<section class="detail" id="waitForBaseZNode(org.apache.hadoop.conf.Configuration)">
<h3>waitForBaseZNode</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1386">waitForBaseZNode</a></span><wbr><span class="parameters">(org.apache.hadoop.conf.Configuration&nbsp;conf)</span>
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></span></div>
<div class="block">Waits for HBase installation's base (parent) znode to become available.</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code> - on ZK errors</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="convert(org.apache.hadoop.hbase.exceptions.DeserializationException)">
<h3>convert</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">org.apache.zookeeper.KeeperException</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1430">convert</a></span><wbr><span class="parameters">(<a href="../exceptions/DeserializationException.html" title="class in org.apache.hadoop.hbase.exceptions">DeserializationException</a>&nbsp;e)</span></div>
<div class="block">Convert a <a href="../exceptions/DeserializationException.html" title="class in org.apache.hadoop.hbase.exceptions"><code>DeserializationException</code></a> to a more palatable <code>KeeperException</code>. Used
when can't let a <a href="../exceptions/DeserializationException.html" title="class in org.apache.hadoop.hbase.exceptions"><code>DeserializationException</code></a> out w/o changing public API.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>e</code> - Exception to convert</dd>
<dt>Returns:</dt>
<dd>Converted exception</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="logZKTree(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)">
<h3>logZKTree</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1440">logZKTree</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;root)</span></div>
<div class="block">Recursively print the current state of ZK (non-transactional)</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>root</code> - name of the root directory in zk to print</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="logZKTree(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String,java.lang.String)">
<h3>logZKTree</h3>
<div class="member-signature"><span class="modifiers">private static</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1460">logZKTree</a></span><wbr><span class="parameters">(<a href="ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;root,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;prefix)</span>
throws <span class="exceptions">org.apache.zookeeper.KeeperException</span></div>
<div class="block">Helper method to print the current state of the ZK tree.</div>
<dl class="notes">
<dt>Throws:</dt>
<dd><code>org.apache.zookeeper.KeeperException</code> - if an unexpected exception occurs</dd>
<dt>See Also:</dt>
<dd>
<ul class="see-list-long">
<li><a href="#logZKTree(org.apache.hadoop.hbase.zookeeper.ZKWatcher,java.lang.String)"><code>logZKTree(ZKWatcher, String)</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="positionToByteArray(long)">
<h3>positionToByteArray</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">byte[]</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1479">positionToByteArray</a></span><wbr><span class="parameters">(long&nbsp;position)</span></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>position</code> - the position to serialize</dd>
<dt>Returns:</dt>
<dd>Serialized protobuf of <code>position</code> with pb magic prefix prepended suitable
for use as content of an wal position in a replication queue.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="parseWALPositionFrom(byte[])">
<h3>parseWALPositionFrom</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">long</span>&nbsp;<span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKUtil.html#line-1490">parseWALPositionFrom</a></span><wbr><span class="parameters">(byte[]&nbsp;bytes)</span>
throws <span class="exceptions"><a href="../exceptions/DeserializationException.html" title="class in org.apache.hadoop.hbase.exceptions">DeserializationException</a></span></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>bytes</code> - - Content of a WAL position znode.</dd>
<dt>Returns:</dt>
<dd>long - The current WAL position.</dd>
<dt>Throws:</dt>
<dd><code><a href="../exceptions/DeserializationException.html" title="class in org.apache.hadoop.hbase.exceptions">DeserializationException</a></code> - if the WAL position cannot be parsed</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<hr>
<p class="legal-copy"><small>Copyright &#169; 2007&#x2013;2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>