hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [21/28] hbase-site git commit: Published site at .
Date Sun, 17 Dec 2017 15:18:00 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48bd3915/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html
----------------------------------------------------------------------
diff --git a/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html b/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html
index 3d184a4..d7e78d9 100644
--- a/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html
+++ b/devapidocs/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html
@@ -540,7 +540,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>conf</h4>
-<pre>private final&nbsp;org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.90">conf</a></pre>
+<pre>private final&nbsp;org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.88">conf</a></pre>
 </li>
 </ul>
 <a name="NAME_PATTERN">
@@ -549,7 +549,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockListLast">
 <li class="blockList">
 <h4>NAME_PATTERN</h4>
-<pre>private static final&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.93">NAME_PATTERN</a></pre>
+<pre>private static final&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html?is-external=true" title="class or interface in java.util.regex">Pattern</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.91">NAME_PATTERN</a></pre>
 </li>
 </ul>
 </li>
@@ -566,7 +566,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>ZKWatcher</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.102">ZKWatcher</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.100">ZKWatcher</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                  <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;identifier,
                  <a href="../../../../../org/apache/hadoop/hbase/Abortable.html" title="interface in org.apache.hadoop.hbase">Abortable</a>&nbsp;abortable)
           throws <a href="../../../../../org/apache/hadoop/hbase/ZooKeeperConnectionException.html" title="class in org.apache.hadoop.hbase">ZooKeeperConnectionException</a>,
@@ -575,9 +575,9 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
 <dd><code>identifier</code> - string that is passed to RecoverableZookeeper to be used as
- identifier for this instance. Use null for default.</dd>
+                   identifier for this instance. Use null for default.</dd>
 <dt><span class="throwsLabel">Throws:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
+<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if the connection to ZooKeeper fails</dd>
 <dd><code><a href="../../../../../org/apache/hadoop/hbase/ZooKeeperConnectionException.html" title="class in org.apache.hadoop.hbase">ZooKeeperConnectionException</a></code></dd>
 </dl>
 </li>
@@ -588,7 +588,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockListLast">
 <li class="blockList">
 <h4>ZKWatcher</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.118">ZKWatcher</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.116">ZKWatcher</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                  <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;identifier,
                  <a href="../../../../../org/apache/hadoop/hbase/Abortable.html" title="interface in org.apache.hadoop.hbase">Abortable</a>&nbsp;abortable,
                  boolean&nbsp;canCreateBaseZNode)
@@ -597,14 +597,14 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <div class="block">Instantiate a ZooKeeper connection and watcher.</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>conf</code> - </dd>
+<dd><code>conf</code> - the configuration to use</dd>
 <dd><code>identifier</code> - string that is passed to RecoverableZookeeper to be used as identifier for
           this instance. Use null for default.</dd>
 <dd><code>abortable</code> - Can be null if there is on error there is no host to abort: e.g. client
           context.</dd>
-<dd><code>canCreateBaseZNode</code> - </dd>
+<dd><code>canCreateBaseZNode</code> - true if a base ZNode can be created</dd>
 <dt><span class="throwsLabel">Throws:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
+<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if the connection to ZooKeeper fails</dd>
 <dd><code><a href="../../../../../org/apache/hadoop/hbase/ZooKeeperConnectionException.html" title="class in org.apache.hadoop.hbase">ZooKeeperConnectionException</a></code></dd>
 </dl>
 </li>
@@ -623,7 +623,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>createBaseZNodes</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.147">createBaseZNodes</a>()
+<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.145">createBaseZNodes</a>()
                        throws <a href="../../../../../org/apache/hadoop/hbase/ZooKeeperConnectionException.html" title="class in org.apache.hadoop.hbase">ZooKeeperConnectionException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -637,7 +637,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>isClientReadable</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.166">isClientReadable</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;node)</pre>
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.164">isClientReadable</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;node)</pre>
 <div class="block">Returns whether the znode is supposed to be readable by the client
  and DOES NOT contain sensitive information (world readable).</div>
 </li>
@@ -648,7 +648,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>checkAndSetZNodeAcls</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.187">checkAndSetZNodeAcls</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.185">checkAndSetZNodeAcls</a>()</pre>
 <div class="block">On master start, we check the znode ACLs under the root directory and set the ACLs properly
  if needed. If the cluster goes from an unsecure setup to a secure setup, this step is needed
  so that the existing znodes created with open permissions are now changed with restrictive
@@ -661,14 +661,14 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>setZnodeAclsRecursive</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.216">setZnodeAclsRecursive</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;znode)
+<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.214">setZnodeAclsRecursive</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;znode)
                             throws org.apache.zookeeper.KeeperException,
                                    <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
 <div class="block">Set the znode perms recursively. This will do post-order recursion, so that baseZnode ACLs
  will be set last in case the master fails in between.</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>znode</code> - </dd>
+<dd><code>znode</code> - the ZNode to set the permissions for</dd>
 <dt><span class="throwsLabel">Throws:</span></dt>
 <dd><code>org.apache.zookeeper.KeeperException</code></dd>
 <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
@@ -681,7 +681,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>isBaseZnodeAclSetup</h4>
-<pre>private&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.233">isBaseZnodeAclSetup</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;org.apache.zookeeper.data.ACL&gt;&nbsp;acls)
+<pre>private&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.231">isBaseZnodeAclSetup</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;org.apache.zookeeper.data.ACL&gt;&nbsp;acls)
                              throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block">Checks whether the ACLs returned from the base znode (/hbase) is set for secure setup.</div>
 <dl>
@@ -690,7 +690,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <dt><span class="returnLabel">Returns:</span></dt>
 <dd>whether ACLs are set for the base znode</dd>
 <dt><span class="throwsLabel">Throws:</span></dt>
-<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
+<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if getting the current user fails</dd>
 </dl>
 </li>
 </ul>
@@ -700,7 +700,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>checkACLForSuperUsers</h4>
-<pre>private&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.309">checkACLForSuperUsers</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;superUsers,
+<pre>private&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.307">checkACLForSuperUsers</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;superUsers,
                                       <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;org.apache.zookeeper.data.ACL&gt;&nbsp;acls)</pre>
 </li>
 </ul>
@@ -710,7 +710,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>isSuperUserId</h4>
-<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.339">isSuperUserId</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;superUsers,
+<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.337">isSuperUserId</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;superUsers,
                                     org.apache.zookeeper.data.Id&nbsp;id)</pre>
 </li>
 </ul>
@@ -720,7 +720,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>toString</h4>
-<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.350">toString</a>()</pre>
+<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.348">toString</a>()</pre>
 <dl>
 <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
 <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
@@ -733,14 +733,14 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>prefix</h4>
-<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.360">prefix</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</pre>
+<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.358">prefix</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</pre>
 <div class="block">Adds this instance's identifier as a prefix to the passed <code>str</code></div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
 <dd><code>str</code> - String to amend.</dd>
 <dt><span class="returnLabel">Returns:</span></dt>
 <dd>A new string with this instance's identifier as prefix: e.g.
- if passed 'hello world', the returned string could be</dd>
+         if passed 'hello world', the returned string could be</dd>
 </dl>
 </li>
 </ul>
@@ -750,14 +750,14 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>getMetaReplicaNodes</h4>
-<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.369">getMetaReplicaNodes</a>()
+<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.367">getMetaReplicaNodes</a>()
                                  throws org.apache.zookeeper.KeeperException</pre>
 <div class="block">Get the znodes corresponding to the meta replicas from ZK</div>
 <dl>
 <dt><span class="returnLabel">Returns:</span></dt>
 <dd>list of znodes</dd>
 <dt><span class="throwsLabel">Throws:</span></dt>
-<dd><code>org.apache.zookeeper.KeeperException</code></dd>
+<dd><code>org.apache.zookeeper.KeeperException</code> - if a ZooKeeper operation fails</dd>
 </dl>
 </li>
 </ul>
@@ -771,7 +771,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <div class="block">Register the specified listener to receive ZooKeeper events.</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>listener</code> - </dd>
+<dd><code>listener</code> - the listener to register</dd>
 </dl>
 </li>
 </ul>
@@ -786,7 +786,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
  the first in the list of current listeners.</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>listener</code> - </dd>
+<dd><code>listener</code> - the listener to register</dd>
 </dl>
 </li>
 </ul>
@@ -923,7 +923,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
  <p></div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>event</code> - </dd>
+<dd><code>event</code> - the connection-related event</dd>
 </dl>
 </li>
 </ul>
@@ -967,9 +967,9 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
  <p></div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>ke</code> - </dd>
+<dd><code>ke</code> - the exception to rethrow</dd>
 <dt><span class="throwsLabel">Throws:</span></dt>
-<dd><code>org.apache.zookeeper.KeeperException</code></dd>
+<dd><code>org.apache.zookeeper.KeeperException</code> - if a ZooKeeper operation fails</dd>
 </dl>
 </li>
 </ul>
@@ -979,7 +979,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>interruptedException</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.588">interruptedException</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a>&nbsp;ie)
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.587">interruptedException</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a>&nbsp;ie)
                           throws org.apache.zookeeper.KeeperException</pre>
 <div class="block">Handles InterruptedExceptions in client calls.</div>
 <dl>
@@ -996,7 +996,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>interruptedExceptionNoThrow</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.599">interruptedExceptionNoThrow</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a>&nbsp;ie,
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.598">interruptedExceptionNoThrow</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a>&nbsp;ie,
                                         boolean&nbsp;throwLater)</pre>
 <div class="block">Log the InterruptedException and interrupt current thread</div>
 <dl>
@@ -1012,7 +1012,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>close</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.612">close</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.611">close</a>()</pre>
 <div class="block">Close the connection to ZooKeeper.</div>
 <dl>
 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
@@ -1028,7 +1028,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>getConfiguration</h4>
-<pre>public&nbsp;org.apache.hadoop.conf.Configuration&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.620">getConfiguration</a>()</pre>
+<pre>public&nbsp;org.apache.hadoop.conf.Configuration&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.619">getConfiguration</a>()</pre>
 </li>
 </ul>
 <a name="abort-java.lang.String-java.lang.Throwable-">
@@ -1037,7 +1037,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockList">
 <li class="blockList">
 <h4>abort</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.625">abort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;why,
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.624">abort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;why,
                   <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;e)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/Abortable.html#abort-java.lang.String-java.lang.Throwable-">Abortable</a></code></span></div>
 <div class="block">Abort the server or client.</div>
@@ -1056,7 +1056,7 @@ implements org.apache.zookeeper.Watcher, <a href="../../../../../org/apache/hado
 <ul class="blockListLast">
 <li class="blockList">
 <h4>isAborted</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.631">isAborted</a>()</pre>
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/zookeeper/ZKWatcher.html#line.633">isAborted</a>()</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/Abortable.html#isAborted--">Abortable</a></code></span></div>
 <div class="block">Check if the server or client was aborted.</div>
 <dl>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48bd3915/devapidocs/org/apache/hadoop/hbase/zookeeper/class-use/ZKWatcher.html
----------------------------------------------------------------------
diff --git a/devapidocs/org/apache/hadoop/hbase/zookeeper/class-use/ZKWatcher.html b/devapidocs/org/apache/hadoop/hbase/zookeeper/class-use/ZKWatcher.html
index 644a981..6a8bff6 100644
--- a/devapidocs/org/apache/hadoop/hbase/zookeeper/class-use/ZKWatcher.html
+++ b/devapidocs/org/apache/hadoop/hbase/zookeeper/class-use/ZKWatcher.html
@@ -1388,12 +1388,16 @@
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;</code></td>
-<td class="colLast"><span class="typeNameLabel">MetaTableLocator.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/zookeeper/MetaTableLocator.html#getMetaRegions-org.apache.hadoop.hbase.zookeeper.ZKWatcher-">getMetaRegions</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/zookeeper/ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw)</code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">MetaTableLocator.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/zookeeper/MetaTableLocator.html#getMetaRegions-org.apache.hadoop.hbase.zookeeper.ZKWatcher-">getMetaRegions</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/zookeeper/ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw)</code>
+<div class="block">Gets the meta regions for the given path with the default replica ID.</div>
+</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;</code></td>
 <td class="colLast"><span class="typeNameLabel">MetaTableLocator.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/zookeeper/MetaTableLocator.html#getMetaRegions-org.apache.hadoop.hbase.zookeeper.ZKWatcher-int-">getMetaRegions</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/zookeeper/ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
-              int&nbsp;replicaId)</code>&nbsp;</td>
+              int&nbsp;replicaId)</code>
+<div class="block">Gets the meta regions for the given path and replica ID.</div>
+</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/util/Pair.html" title="class in org.apache.hadoop.hbase.util">Pair</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>,<a href="../../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&gt;</code></td>
@@ -1402,7 +1406,9 @@
 <tr class="rowColor">
 <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/util/Pair.html" title="class in org.apache.hadoop.hbase.util">Pair</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>,<a href="../../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&gt;&gt;</code></td>
 <td class="colLast"><span class="typeNameLabel">MetaTableLocator.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/zookeeper/MetaTableLocator.html#getMetaRegionsAndLocations-org.apache.hadoop.hbase.zookeeper.ZKWatcher-int-">getMetaRegionsAndLocations</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/zookeeper/ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
-                          int&nbsp;replicaId)</code>&nbsp;</td>
+                          int&nbsp;replicaId)</code>
+<div class="block">Gets the meta regions and their locations for the given path and replica ID.</div>
+</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../../org/apache/hadoop/hbase/master/RegionState.html" title="class in org.apache.hadoop.hbase.master">RegionState</a></code></td>
@@ -1423,8 +1429,8 @@
                        <a href="../../../../../../org/apache/hadoop/hbase/zookeeper/ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
                        long&nbsp;timeout,
                        int&nbsp;replicaId)</code>
-<div class="block">Gets a connection to the server hosting meta, as reported by ZooKeeper,
- waiting up to the specified timeout for availability.</div>
+<div class="block">Gets a connection to the server hosting meta, as reported by ZooKeeper, waiting up to the
+ specified timeout for availability.</div>
 </td>
 </tr>
 <tr class="rowColor">
@@ -1466,7 +1472,9 @@
 <tr class="rowColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><span class="typeNameLabel">ZKSplitLog.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/zookeeper/ZKSplitLog.html#isRescanNode-org.apache.hadoop.hbase.zookeeper.ZKWatcher-java.lang.String-">isRescanNode</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/zookeeper/ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
-            <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</code>&nbsp;</td>
+            <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</code>
+<div class="block">Checks if the given path represents a rescan node.</div>
+</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
@@ -1603,8 +1611,7 @@
                <a href="../../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName,
                int&nbsp;replicaId,
                <a href="../../../../../../org/apache/hadoop/hbase/master/RegionState.State.html" title="enum in org.apache.hadoop.hbase.master">RegionState.State</a>&nbsp;state)</code>
-<div class="block">Sets the location of <code>hbase:meta</code> in ZooKeeper to the
- specified server address.</div>
+<div class="block">Sets the location of <code>hbase:meta</code> in ZooKeeper to the specified server address.</div>
 </td>
 </tr>
 <tr class="rowColor">
@@ -1669,8 +1676,8 @@
 <td class="colLast"><span class="typeNameLabel">MetaTableLocator.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/zookeeper/MetaTableLocator.html#waitMetaRegionLocation-org.apache.hadoop.hbase.zookeeper.ZKWatcher-int-long-">waitMetaRegionLocation</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/zookeeper/ZKWatcher.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKWatcher</a>&nbsp;zkw,
                       int&nbsp;replicaId,
                       long&nbsp;timeout)</code>
-<div class="block">Gets the meta region location, if available, and waits for up to the
- specified timeout if not immediately available.</div>
+<div class="block">Gets the meta region location, if available, and waits for up to the specified timeout if not
+ immediately available.</div>
 </td>
 </tr>
 <tr class="rowColor">

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48bd3915/devapidocs/org/apache/hadoop/hbase/zookeeper/package-summary.html
----------------------------------------------------------------------
diff --git a/devapidocs/org/apache/hadoop/hbase/zookeeper/package-summary.html b/devapidocs/org/apache/hadoop/hbase/zookeeper/package-summary.html
index ccec0f6..6845a5d 100644
--- a/devapidocs/org/apache/hadoop/hbase/zookeeper/package-summary.html
+++ b/devapidocs/org/apache/hadoop/hbase/zookeeper/package-summary.html
@@ -286,7 +286,8 @@
 <tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/zookeeper/ZKSplitLog.html" title="class in org.apache.hadoop.hbase.zookeeper">ZKSplitLog</a></td>
 <td class="colLast">
-<div class="block">Common methods and attributes used by SplitLogManager and SplitLogWorker running distributed splitting of WAL logs.</div>
+<div class="block">Common methods and attributes used by SplitLogManager and SplitLogWorker running distributed
+ splitting of WAL logs.</div>
 </td>
 </tr>
 <tr class="rowColor">

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48bd3915/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
index 6643967..7b335ff 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
@@ -16,11 +16,11 @@
 <span class="sourceLineNo">008</span>@InterfaceAudience.Private<a name="line.8"></a>
 <span class="sourceLineNo">009</span>public class Version {<a name="line.9"></a>
 <span class="sourceLineNo">010</span>  public static final String version = "3.0.0-SNAPSHOT";<a name="line.10"></a>
-<span class="sourceLineNo">011</span>  public static final String revision = "979767824d37df0e05002fa76402ff2b9e534d50";<a name="line.11"></a>
+<span class="sourceLineNo">011</span>  public static final String revision = "26b69dc45bf3c953905d5ed279e3f691ea802157";<a name="line.11"></a>
 <span class="sourceLineNo">012</span>  public static final String user = "jenkins";<a name="line.12"></a>
-<span class="sourceLineNo">013</span>  public static final String date = "Sat Dec 16 14:41:51 UTC 2017";<a name="line.13"></a>
+<span class="sourceLineNo">013</span>  public static final String date = "Sun Dec 17 14:41:52 UTC 2017";<a name="line.13"></a>
 <span class="sourceLineNo">014</span>  public static final String url = "git://asf920.gq1.ygridcore.net/home/jenkins/jenkins-slave/workspace/hbase_generate_website/hbase";<a name="line.14"></a>
-<span class="sourceLineNo">015</span>  public static final String srcChecksum = "134238446ca4bc95900183b2706bfdbc";<a name="line.15"></a>
+<span class="sourceLineNo">015</span>  public static final String srcChecksum = "17b2bd885a9f8f4e728cc4b3cea18074";<a name="line.15"></a>
 <span class="sourceLineNo">016</span>}<a name="line.16"></a>
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48bd3915/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.CleanerContext.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.CleanerContext.html b/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.CleanerContext.html
index 940be86..3ac33cc 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.CleanerContext.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.CleanerContext.html
@@ -171,65 +171,67 @@
 <span class="sourceLineNo">163</span>        LOG.warn("Failed to clean oldwals with exception: " + e);<a name="line.163"></a>
 <span class="sourceLineNo">164</span>        succeed = false;<a name="line.164"></a>
 <span class="sourceLineNo">165</span>      } finally {<a name="line.165"></a>
-<span class="sourceLineNo">166</span>        context.setResult(succeed);<a name="line.166"></a>
-<span class="sourceLineNo">167</span>        if (interrupted) {<a name="line.167"></a>
-<span class="sourceLineNo">168</span>          // Restore interrupt status<a name="line.168"></a>
-<span class="sourceLineNo">169</span>          Thread.currentThread().interrupt();<a name="line.169"></a>
-<span class="sourceLineNo">170</span>          break;<a name="line.170"></a>
-<span class="sourceLineNo">171</span>        }<a name="line.171"></a>
-<span class="sourceLineNo">172</span>      }<a name="line.172"></a>
-<span class="sourceLineNo">173</span>    }<a name="line.173"></a>
-<span class="sourceLineNo">174</span>    if (LOG.isDebugEnabled()) {<a name="line.174"></a>
-<span class="sourceLineNo">175</span>      LOG.debug("Exiting cleaner.");<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    }<a name="line.176"></a>
-<span class="sourceLineNo">177</span>  }<a name="line.177"></a>
-<span class="sourceLineNo">178</span><a name="line.178"></a>
-<span class="sourceLineNo">179</span>  private static final class CleanerContext {<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    // At most waits 60 seconds<a name="line.180"></a>
-<span class="sourceLineNo">181</span>    static final long MAX_WAIT = 60 * 1000;<a name="line.181"></a>
-<span class="sourceLineNo">182</span><a name="line.182"></a>
-<span class="sourceLineNo">183</span>    final FileStatus target;<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    volatile boolean result;<a name="line.184"></a>
-<span class="sourceLineNo">185</span>    volatile boolean setFromCleaner = false;<a name="line.185"></a>
-<span class="sourceLineNo">186</span><a name="line.186"></a>
-<span class="sourceLineNo">187</span>    static CleanerContext createCleanerContext(FileStatus status) {<a name="line.187"></a>
-<span class="sourceLineNo">188</span>      return status != null ? new CleanerContext(status) : null;<a name="line.188"></a>
-<span class="sourceLineNo">189</span>    }<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span>    private CleanerContext(FileStatus status) {<a name="line.191"></a>
-<span class="sourceLineNo">192</span>      this.target = status;<a name="line.192"></a>
-<span class="sourceLineNo">193</span>      this.result = false;<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    }<a name="line.194"></a>
-<span class="sourceLineNo">195</span><a name="line.195"></a>
-<span class="sourceLineNo">196</span>    synchronized void setResult(boolean res) {<a name="line.196"></a>
-<span class="sourceLineNo">197</span>      this.result = res;<a name="line.197"></a>
-<span class="sourceLineNo">198</span>      this.setFromCleaner = true;<a name="line.198"></a>
-<span class="sourceLineNo">199</span>      notify();<a name="line.199"></a>
-<span class="sourceLineNo">200</span>    }<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span>    synchronized boolean getResult(long waitIfNotFinished) {<a name="line.202"></a>
-<span class="sourceLineNo">203</span>      long totalTime = 0;<a name="line.203"></a>
-<span class="sourceLineNo">204</span>      try {<a name="line.204"></a>
-<span class="sourceLineNo">205</span>        while (!setFromCleaner) {<a name="line.205"></a>
-<span class="sourceLineNo">206</span>          wait(waitIfNotFinished);<a name="line.206"></a>
-<span class="sourceLineNo">207</span>          totalTime += waitIfNotFinished;<a name="line.207"></a>
-<span class="sourceLineNo">208</span>          if (totalTime &gt;= MAX_WAIT) {<a name="line.208"></a>
-<span class="sourceLineNo">209</span>            LOG.warn("Spend too much time to delete oldwals " + target);<a name="line.209"></a>
-<span class="sourceLineNo">210</span>            return result;<a name="line.210"></a>
-<span class="sourceLineNo">211</span>          }<a name="line.211"></a>
-<span class="sourceLineNo">212</span>        }<a name="line.212"></a>
-<span class="sourceLineNo">213</span>      } catch (InterruptedException e) {<a name="line.213"></a>
-<span class="sourceLineNo">214</span>        LOG.warn("Interrupted while waiting deletion of " + target);<a name="line.214"></a>
-<span class="sourceLineNo">215</span>        return result;<a name="line.215"></a>
-<span class="sourceLineNo">216</span>      }<a name="line.216"></a>
-<span class="sourceLineNo">217</span>      return result;<a name="line.217"></a>
-<span class="sourceLineNo">218</span>    }<a name="line.218"></a>
-<span class="sourceLineNo">219</span><a name="line.219"></a>
-<span class="sourceLineNo">220</span>    FileStatus getTargetToClean() {<a name="line.220"></a>
-<span class="sourceLineNo">221</span>      return target;<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    }<a name="line.222"></a>
-<span class="sourceLineNo">223</span>  }<a name="line.223"></a>
-<span class="sourceLineNo">224</span>}<a name="line.224"></a>
+<span class="sourceLineNo">166</span>        if (context != null) {<a name="line.166"></a>
+<span class="sourceLineNo">167</span>          context.setResult(succeed);<a name="line.167"></a>
+<span class="sourceLineNo">168</span>        }<a name="line.168"></a>
+<span class="sourceLineNo">169</span>        if (interrupted) {<a name="line.169"></a>
+<span class="sourceLineNo">170</span>          // Restore interrupt status<a name="line.170"></a>
+<span class="sourceLineNo">171</span>          Thread.currentThread().interrupt();<a name="line.171"></a>
+<span class="sourceLineNo">172</span>          break;<a name="line.172"></a>
+<span class="sourceLineNo">173</span>        }<a name="line.173"></a>
+<span class="sourceLineNo">174</span>      }<a name="line.174"></a>
+<span class="sourceLineNo">175</span>    }<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    if (LOG.isDebugEnabled()) {<a name="line.176"></a>
+<span class="sourceLineNo">177</span>      LOG.debug("Exiting cleaner.");<a name="line.177"></a>
+<span class="sourceLineNo">178</span>    }<a name="line.178"></a>
+<span class="sourceLineNo">179</span>  }<a name="line.179"></a>
+<span class="sourceLineNo">180</span><a name="line.180"></a>
+<span class="sourceLineNo">181</span>  private static final class CleanerContext {<a name="line.181"></a>
+<span class="sourceLineNo">182</span>    // At most waits 60 seconds<a name="line.182"></a>
+<span class="sourceLineNo">183</span>    static final long MAX_WAIT = 60 * 1000;<a name="line.183"></a>
+<span class="sourceLineNo">184</span><a name="line.184"></a>
+<span class="sourceLineNo">185</span>    final FileStatus target;<a name="line.185"></a>
+<span class="sourceLineNo">186</span>    volatile boolean result;<a name="line.186"></a>
+<span class="sourceLineNo">187</span>    volatile boolean setFromCleaner = false;<a name="line.187"></a>
+<span class="sourceLineNo">188</span><a name="line.188"></a>
+<span class="sourceLineNo">189</span>    static CleanerContext createCleanerContext(FileStatus status) {<a name="line.189"></a>
+<span class="sourceLineNo">190</span>      return status != null ? new CleanerContext(status) : null;<a name="line.190"></a>
+<span class="sourceLineNo">191</span>    }<a name="line.191"></a>
+<span class="sourceLineNo">192</span><a name="line.192"></a>
+<span class="sourceLineNo">193</span>    private CleanerContext(FileStatus status) {<a name="line.193"></a>
+<span class="sourceLineNo">194</span>      this.target = status;<a name="line.194"></a>
+<span class="sourceLineNo">195</span>      this.result = false;<a name="line.195"></a>
+<span class="sourceLineNo">196</span>    }<a name="line.196"></a>
+<span class="sourceLineNo">197</span><a name="line.197"></a>
+<span class="sourceLineNo">198</span>    synchronized void setResult(boolean res) {<a name="line.198"></a>
+<span class="sourceLineNo">199</span>      this.result = res;<a name="line.199"></a>
+<span class="sourceLineNo">200</span>      this.setFromCleaner = true;<a name="line.200"></a>
+<span class="sourceLineNo">201</span>      notify();<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    }<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span>    synchronized boolean getResult(long waitIfNotFinished) {<a name="line.204"></a>
+<span class="sourceLineNo">205</span>      long totalTime = 0;<a name="line.205"></a>
+<span class="sourceLineNo">206</span>      try {<a name="line.206"></a>
+<span class="sourceLineNo">207</span>        while (!setFromCleaner) {<a name="line.207"></a>
+<span class="sourceLineNo">208</span>          wait(waitIfNotFinished);<a name="line.208"></a>
+<span class="sourceLineNo">209</span>          totalTime += waitIfNotFinished;<a name="line.209"></a>
+<span class="sourceLineNo">210</span>          if (totalTime &gt;= MAX_WAIT) {<a name="line.210"></a>
+<span class="sourceLineNo">211</span>            LOG.warn("Spend too much time to delete oldwals " + target);<a name="line.211"></a>
+<span class="sourceLineNo">212</span>            return result;<a name="line.212"></a>
+<span class="sourceLineNo">213</span>          }<a name="line.213"></a>
+<span class="sourceLineNo">214</span>        }<a name="line.214"></a>
+<span class="sourceLineNo">215</span>      } catch (InterruptedException e) {<a name="line.215"></a>
+<span class="sourceLineNo">216</span>        LOG.warn("Interrupted while waiting deletion of " + target);<a name="line.216"></a>
+<span class="sourceLineNo">217</span>        return result;<a name="line.217"></a>
+<span class="sourceLineNo">218</span>      }<a name="line.218"></a>
+<span class="sourceLineNo">219</span>      return result;<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    }<a name="line.220"></a>
+<span class="sourceLineNo">221</span><a name="line.221"></a>
+<span class="sourceLineNo">222</span>    FileStatus getTargetToClean() {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>      return target;<a name="line.223"></a>
+<span class="sourceLineNo">224</span>    }<a name="line.224"></a>
+<span class="sourceLineNo">225</span>  }<a name="line.225"></a>
+<span class="sourceLineNo">226</span>}<a name="line.226"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48bd3915/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.html b/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.html
index 940be86..3ac33cc 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/master/cleaner/LogCleaner.html
@@ -171,65 +171,67 @@
 <span class="sourceLineNo">163</span>        LOG.warn("Failed to clean oldwals with exception: " + e);<a name="line.163"></a>
 <span class="sourceLineNo">164</span>        succeed = false;<a name="line.164"></a>
 <span class="sourceLineNo">165</span>      } finally {<a name="line.165"></a>
-<span class="sourceLineNo">166</span>        context.setResult(succeed);<a name="line.166"></a>
-<span class="sourceLineNo">167</span>        if (interrupted) {<a name="line.167"></a>
-<span class="sourceLineNo">168</span>          // Restore interrupt status<a name="line.168"></a>
-<span class="sourceLineNo">169</span>          Thread.currentThread().interrupt();<a name="line.169"></a>
-<span class="sourceLineNo">170</span>          break;<a name="line.170"></a>
-<span class="sourceLineNo">171</span>        }<a name="line.171"></a>
-<span class="sourceLineNo">172</span>      }<a name="line.172"></a>
-<span class="sourceLineNo">173</span>    }<a name="line.173"></a>
-<span class="sourceLineNo">174</span>    if (LOG.isDebugEnabled()) {<a name="line.174"></a>
-<span class="sourceLineNo">175</span>      LOG.debug("Exiting cleaner.");<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    }<a name="line.176"></a>
-<span class="sourceLineNo">177</span>  }<a name="line.177"></a>
-<span class="sourceLineNo">178</span><a name="line.178"></a>
-<span class="sourceLineNo">179</span>  private static final class CleanerContext {<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    // At most waits 60 seconds<a name="line.180"></a>
-<span class="sourceLineNo">181</span>    static final long MAX_WAIT = 60 * 1000;<a name="line.181"></a>
-<span class="sourceLineNo">182</span><a name="line.182"></a>
-<span class="sourceLineNo">183</span>    final FileStatus target;<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    volatile boolean result;<a name="line.184"></a>
-<span class="sourceLineNo">185</span>    volatile boolean setFromCleaner = false;<a name="line.185"></a>
-<span class="sourceLineNo">186</span><a name="line.186"></a>
-<span class="sourceLineNo">187</span>    static CleanerContext createCleanerContext(FileStatus status) {<a name="line.187"></a>
-<span class="sourceLineNo">188</span>      return status != null ? new CleanerContext(status) : null;<a name="line.188"></a>
-<span class="sourceLineNo">189</span>    }<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span>    private CleanerContext(FileStatus status) {<a name="line.191"></a>
-<span class="sourceLineNo">192</span>      this.target = status;<a name="line.192"></a>
-<span class="sourceLineNo">193</span>      this.result = false;<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    }<a name="line.194"></a>
-<span class="sourceLineNo">195</span><a name="line.195"></a>
-<span class="sourceLineNo">196</span>    synchronized void setResult(boolean res) {<a name="line.196"></a>
-<span class="sourceLineNo">197</span>      this.result = res;<a name="line.197"></a>
-<span class="sourceLineNo">198</span>      this.setFromCleaner = true;<a name="line.198"></a>
-<span class="sourceLineNo">199</span>      notify();<a name="line.199"></a>
-<span class="sourceLineNo">200</span>    }<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span>    synchronized boolean getResult(long waitIfNotFinished) {<a name="line.202"></a>
-<span class="sourceLineNo">203</span>      long totalTime = 0;<a name="line.203"></a>
-<span class="sourceLineNo">204</span>      try {<a name="line.204"></a>
-<span class="sourceLineNo">205</span>        while (!setFromCleaner) {<a name="line.205"></a>
-<span class="sourceLineNo">206</span>          wait(waitIfNotFinished);<a name="line.206"></a>
-<span class="sourceLineNo">207</span>          totalTime += waitIfNotFinished;<a name="line.207"></a>
-<span class="sourceLineNo">208</span>          if (totalTime &gt;= MAX_WAIT) {<a name="line.208"></a>
-<span class="sourceLineNo">209</span>            LOG.warn("Spend too much time to delete oldwals " + target);<a name="line.209"></a>
-<span class="sourceLineNo">210</span>            return result;<a name="line.210"></a>
-<span class="sourceLineNo">211</span>          }<a name="line.211"></a>
-<span class="sourceLineNo">212</span>        }<a name="line.212"></a>
-<span class="sourceLineNo">213</span>      } catch (InterruptedException e) {<a name="line.213"></a>
-<span class="sourceLineNo">214</span>        LOG.warn("Interrupted while waiting deletion of " + target);<a name="line.214"></a>
-<span class="sourceLineNo">215</span>        return result;<a name="line.215"></a>
-<span class="sourceLineNo">216</span>      }<a name="line.216"></a>
-<span class="sourceLineNo">217</span>      return result;<a name="line.217"></a>
-<span class="sourceLineNo">218</span>    }<a name="line.218"></a>
-<span class="sourceLineNo">219</span><a name="line.219"></a>
-<span class="sourceLineNo">220</span>    FileStatus getTargetToClean() {<a name="line.220"></a>
-<span class="sourceLineNo">221</span>      return target;<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    }<a name="line.222"></a>
-<span class="sourceLineNo">223</span>  }<a name="line.223"></a>
-<span class="sourceLineNo">224</span>}<a name="line.224"></a>
+<span class="sourceLineNo">166</span>        if (context != null) {<a name="line.166"></a>
+<span class="sourceLineNo">167</span>          context.setResult(succeed);<a name="line.167"></a>
+<span class="sourceLineNo">168</span>        }<a name="line.168"></a>
+<span class="sourceLineNo">169</span>        if (interrupted) {<a name="line.169"></a>
+<span class="sourceLineNo">170</span>          // Restore interrupt status<a name="line.170"></a>
+<span class="sourceLineNo">171</span>          Thread.currentThread().interrupt();<a name="line.171"></a>
+<span class="sourceLineNo">172</span>          break;<a name="line.172"></a>
+<span class="sourceLineNo">173</span>        }<a name="line.173"></a>
+<span class="sourceLineNo">174</span>      }<a name="line.174"></a>
+<span class="sourceLineNo">175</span>    }<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    if (LOG.isDebugEnabled()) {<a name="line.176"></a>
+<span class="sourceLineNo">177</span>      LOG.debug("Exiting cleaner.");<a name="line.177"></a>
+<span class="sourceLineNo">178</span>    }<a name="line.178"></a>
+<span class="sourceLineNo">179</span>  }<a name="line.179"></a>
+<span class="sourceLineNo">180</span><a name="line.180"></a>
+<span class="sourceLineNo">181</span>  private static final class CleanerContext {<a name="line.181"></a>
+<span class="sourceLineNo">182</span>    // At most waits 60 seconds<a name="line.182"></a>
+<span class="sourceLineNo">183</span>    static final long MAX_WAIT = 60 * 1000;<a name="line.183"></a>
+<span class="sourceLineNo">184</span><a name="line.184"></a>
+<span class="sourceLineNo">185</span>    final FileStatus target;<a name="line.185"></a>
+<span class="sourceLineNo">186</span>    volatile boolean result;<a name="line.186"></a>
+<span class="sourceLineNo">187</span>    volatile boolean setFromCleaner = false;<a name="line.187"></a>
+<span class="sourceLineNo">188</span><a name="line.188"></a>
+<span class="sourceLineNo">189</span>    static CleanerContext createCleanerContext(FileStatus status) {<a name="line.189"></a>
+<span class="sourceLineNo">190</span>      return status != null ? new CleanerContext(status) : null;<a name="line.190"></a>
+<span class="sourceLineNo">191</span>    }<a name="line.191"></a>
+<span class="sourceLineNo">192</span><a name="line.192"></a>
+<span class="sourceLineNo">193</span>    private CleanerContext(FileStatus status) {<a name="line.193"></a>
+<span class="sourceLineNo">194</span>      this.target = status;<a name="line.194"></a>
+<span class="sourceLineNo">195</span>      this.result = false;<a name="line.195"></a>
+<span class="sourceLineNo">196</span>    }<a name="line.196"></a>
+<span class="sourceLineNo">197</span><a name="line.197"></a>
+<span class="sourceLineNo">198</span>    synchronized void setResult(boolean res) {<a name="line.198"></a>
+<span class="sourceLineNo">199</span>      this.result = res;<a name="line.199"></a>
+<span class="sourceLineNo">200</span>      this.setFromCleaner = true;<a name="line.200"></a>
+<span class="sourceLineNo">201</span>      notify();<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    }<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span>    synchronized boolean getResult(long waitIfNotFinished) {<a name="line.204"></a>
+<span class="sourceLineNo">205</span>      long totalTime = 0;<a name="line.205"></a>
+<span class="sourceLineNo">206</span>      try {<a name="line.206"></a>
+<span class="sourceLineNo">207</span>        while (!setFromCleaner) {<a name="line.207"></a>
+<span class="sourceLineNo">208</span>          wait(waitIfNotFinished);<a name="line.208"></a>
+<span class="sourceLineNo">209</span>          totalTime += waitIfNotFinished;<a name="line.209"></a>
+<span class="sourceLineNo">210</span>          if (totalTime &gt;= MAX_WAIT) {<a name="line.210"></a>
+<span class="sourceLineNo">211</span>            LOG.warn("Spend too much time to delete oldwals " + target);<a name="line.211"></a>
+<span class="sourceLineNo">212</span>            return result;<a name="line.212"></a>
+<span class="sourceLineNo">213</span>          }<a name="line.213"></a>
+<span class="sourceLineNo">214</span>        }<a name="line.214"></a>
+<span class="sourceLineNo">215</span>      } catch (InterruptedException e) {<a name="line.215"></a>
+<span class="sourceLineNo">216</span>        LOG.warn("Interrupted while waiting deletion of " + target);<a name="line.216"></a>
+<span class="sourceLineNo">217</span>        return result;<a name="line.217"></a>
+<span class="sourceLineNo">218</span>      }<a name="line.218"></a>
+<span class="sourceLineNo">219</span>      return result;<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    }<a name="line.220"></a>
+<span class="sourceLineNo">221</span><a name="line.221"></a>
+<span class="sourceLineNo">222</span>    FileStatus getTargetToClean() {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>      return target;<a name="line.223"></a>
+<span class="sourceLineNo">224</span>    }<a name="line.224"></a>
+<span class="sourceLineNo">225</span>  }<a name="line.225"></a>
+<span class="sourceLineNo">226</span>}<a name="line.226"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48bd3915/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/ClusterStatusTracker.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/ClusterStatusTracker.html b/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/ClusterStatusTracker.html
index 6ae0e1b..b8f5640 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/ClusterStatusTracker.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/ClusterStatusTracker.html
@@ -28,83 +28,85 @@
 <span class="sourceLineNo">020</span><a name="line.20"></a>
 <span class="sourceLineNo">021</span>import org.apache.commons.logging.Log;<a name="line.21"></a>
 <span class="sourceLineNo">022</span>import org.apache.commons.logging.LogFactory;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.Abortable;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import org.apache.zookeeper.KeeperException;<a name="line.27"></a>
-<span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span>/**<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * Tracker on cluster settings up in zookeeper.<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * This is not related to {@link org.apache.hadoop.hbase.ClusterStatus}. That class<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * is a data structure that holds snapshot of current view on cluster. This class<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * is about tracking cluster attributes up in zookeeper.<a name="line.33"></a>
-<span class="sourceLineNo">034</span> *<a name="line.34"></a>
-<span class="sourceLineNo">035</span> */<a name="line.35"></a>
-<span class="sourceLineNo">036</span>@InterfaceAudience.Private<a name="line.36"></a>
-<span class="sourceLineNo">037</span>public class ClusterStatusTracker extends ZKNodeTracker {<a name="line.37"></a>
-<span class="sourceLineNo">038</span>  private static final Log LOG = LogFactory.getLog(ClusterStatusTracker.class);<a name="line.38"></a>
-<span class="sourceLineNo">039</span><a name="line.39"></a>
-<span class="sourceLineNo">040</span>  /**<a name="line.40"></a>
-<span class="sourceLineNo">041</span>   * Creates a cluster status tracker.<a name="line.41"></a>
-<span class="sourceLineNo">042</span>   *<a name="line.42"></a>
-<span class="sourceLineNo">043</span>   * &lt;p&gt;After construction, use {@link #start} to kick off tracking.<a name="line.43"></a>
-<span class="sourceLineNo">044</span>   *<a name="line.44"></a>
-<span class="sourceLineNo">045</span>   * @param watcher<a name="line.45"></a>
-<span class="sourceLineNo">046</span>   * @param abortable<a name="line.46"></a>
-<span class="sourceLineNo">047</span>   */<a name="line.47"></a>
-<span class="sourceLineNo">048</span>  public ClusterStatusTracker(ZKWatcher watcher, Abortable abortable) {<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    super(watcher, watcher.znodePaths.clusterStateZNode, abortable);<a name="line.49"></a>
-<span class="sourceLineNo">050</span>  }<a name="line.50"></a>
-<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>  /**<a name="line.52"></a>
-<span class="sourceLineNo">053</span>   * Checks if cluster is up.<a name="line.53"></a>
-<span class="sourceLineNo">054</span>   * @return true if the cluster up ('shutdown' is its name up in zk) znode<a name="line.54"></a>
-<span class="sourceLineNo">055</span>   * exists with data, false if not<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   */<a name="line.56"></a>
-<span class="sourceLineNo">057</span>  public boolean isClusterUp() {<a name="line.57"></a>
-<span class="sourceLineNo">058</span>    return super.getData(false) != null;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>  }<a name="line.59"></a>
-<span class="sourceLineNo">060</span><a name="line.60"></a>
-<span class="sourceLineNo">061</span>  /**<a name="line.61"></a>
-<span class="sourceLineNo">062</span>   * Sets the cluster as up.<a name="line.62"></a>
-<span class="sourceLineNo">063</span>   * @throws KeeperException unexpected zk exception<a name="line.63"></a>
-<span class="sourceLineNo">064</span>   */<a name="line.64"></a>
-<span class="sourceLineNo">065</span>  public void setClusterUp()<a name="line.65"></a>
-<span class="sourceLineNo">066</span>  throws KeeperException {<a name="line.66"></a>
-<span class="sourceLineNo">067</span>    byte [] upData = toByteArray();<a name="line.67"></a>
-<span class="sourceLineNo">068</span>    try {<a name="line.68"></a>
-<span class="sourceLineNo">069</span>      ZKUtil.createAndWatch(watcher, watcher.znodePaths.clusterStateZNode, upData);<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    } catch(KeeperException.NodeExistsException nee) {<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      ZKUtil.setData(watcher, watcher.znodePaths.clusterStateZNode, upData);<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    }<a name="line.72"></a>
-<span class="sourceLineNo">073</span>  }<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span>  /**<a name="line.75"></a>
-<span class="sourceLineNo">076</span>   * Sets the cluster as down by deleting the znode.<a name="line.76"></a>
-<span class="sourceLineNo">077</span>   * @throws KeeperException unexpected zk exception<a name="line.77"></a>
-<span class="sourceLineNo">078</span>   */<a name="line.78"></a>
-<span class="sourceLineNo">079</span>  public void setClusterDown()<a name="line.79"></a>
-<span class="sourceLineNo">080</span>  throws KeeperException {<a name="line.80"></a>
-<span class="sourceLineNo">081</span>    try {<a name="line.81"></a>
-<span class="sourceLineNo">082</span>      ZKUtil.deleteNode(watcher, watcher.znodePaths.clusterStateZNode);<a name="line.82"></a>
-<span class="sourceLineNo">083</span>    } catch(KeeperException.NoNodeException nne) {<a name="line.83"></a>
-<span class="sourceLineNo">084</span>      LOG.warn("Attempted to set cluster as down but already down, cluster " +<a name="line.84"></a>
-<span class="sourceLineNo">085</span>          "state node (" + watcher.znodePaths.clusterStateZNode + ") not found");<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    }<a name="line.86"></a>
-<span class="sourceLineNo">087</span>  }<a name="line.87"></a>
-<span class="sourceLineNo">088</span><a name="line.88"></a>
-<span class="sourceLineNo">089</span>  /**<a name="line.89"></a>
-<span class="sourceLineNo">090</span>   * @return Content of the clusterup znode as a serialized pb with the pb<a name="line.90"></a>
-<span class="sourceLineNo">091</span>   * magic as prefix.<a name="line.91"></a>
-<span class="sourceLineNo">092</span>   */<a name="line.92"></a>
-<span class="sourceLineNo">093</span>  static byte [] toByteArray() {<a name="line.93"></a>
-<span class="sourceLineNo">094</span>    ZooKeeperProtos.ClusterUp.Builder builder =<a name="line.94"></a>
-<span class="sourceLineNo">095</span>      ZooKeeperProtos.ClusterUp.newBuilder();<a name="line.95"></a>
-<span class="sourceLineNo">096</span>    builder.setStartDate(new java.util.Date().toString());<a name="line.96"></a>
-<span class="sourceLineNo">097</span>    return ProtobufUtil.prependPBMagic(builder.build().toByteArray());<a name="line.97"></a>
-<span class="sourceLineNo">098</span>  }<a name="line.98"></a>
-<span class="sourceLineNo">099</span>}<a name="line.99"></a>
+<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.Abortable;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.zookeeper.KeeperException;<a name="line.25"></a>
+<span class="sourceLineNo">026</span><a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos;<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>/**<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * Tracker on cluster settings up in zookeeper.<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * This is not related to {@link org.apache.hadoop.hbase.ClusterStatus}. That class<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * is a data structure that holds snapshot of current view on cluster. This class<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * is about tracking cluster attributes up in zookeeper.<a name="line.34"></a>
+<span class="sourceLineNo">035</span> *<a name="line.35"></a>
+<span class="sourceLineNo">036</span> */<a name="line.36"></a>
+<span class="sourceLineNo">037</span>@InterfaceAudience.Private<a name="line.37"></a>
+<span class="sourceLineNo">038</span>public class ClusterStatusTracker extends ZKNodeTracker {<a name="line.38"></a>
+<span class="sourceLineNo">039</span>  private static final Log LOG = LogFactory.getLog(ClusterStatusTracker.class);<a name="line.39"></a>
+<span class="sourceLineNo">040</span><a name="line.40"></a>
+<span class="sourceLineNo">041</span>  /**<a name="line.41"></a>
+<span class="sourceLineNo">042</span>   * Creates a cluster status tracker.<a name="line.42"></a>
+<span class="sourceLineNo">043</span>   *<a name="line.43"></a>
+<span class="sourceLineNo">044</span>   * &lt;p&gt;After construction, use {@link #start} to kick off tracking.<a name="line.44"></a>
+<span class="sourceLineNo">045</span>   *<a name="line.45"></a>
+<span class="sourceLineNo">046</span>   * @param watcher reference to the {@link ZKWatcher} which also contains configuration and<a name="line.46"></a>
+<span class="sourceLineNo">047</span>   *                constants<a name="line.47"></a>
+<span class="sourceLineNo">048</span>   * @param abortable used to abort if a fatal error occurs<a name="line.48"></a>
+<span class="sourceLineNo">049</span>   */<a name="line.49"></a>
+<span class="sourceLineNo">050</span>  public ClusterStatusTracker(ZKWatcher watcher, Abortable abortable) {<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    super(watcher, watcher.znodePaths.clusterStateZNode, abortable);<a name="line.51"></a>
+<span class="sourceLineNo">052</span>  }<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>  /**<a name="line.54"></a>
+<span class="sourceLineNo">055</span>   * Checks if cluster is up.<a name="line.55"></a>
+<span class="sourceLineNo">056</span>   * @return true if the cluster up ('shutdown' is its name up in zk) znode<a name="line.56"></a>
+<span class="sourceLineNo">057</span>   *         exists with data, false if not<a name="line.57"></a>
+<span class="sourceLineNo">058</span>   */<a name="line.58"></a>
+<span class="sourceLineNo">059</span>  public boolean isClusterUp() {<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    return super.getData(false) != null;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>  }<a name="line.61"></a>
+<span class="sourceLineNo">062</span><a name="line.62"></a>
+<span class="sourceLineNo">063</span>  /**<a name="line.63"></a>
+<span class="sourceLineNo">064</span>   * Sets the cluster as up.<a name="line.64"></a>
+<span class="sourceLineNo">065</span>   * @throws KeeperException unexpected zk exception<a name="line.65"></a>
+<span class="sourceLineNo">066</span>   */<a name="line.66"></a>
+<span class="sourceLineNo">067</span>  public void setClusterUp()<a name="line.67"></a>
+<span class="sourceLineNo">068</span>  throws KeeperException {<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    byte [] upData = toByteArray();<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    try {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      ZKUtil.createAndWatch(watcher, watcher.znodePaths.clusterStateZNode, upData);<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    } catch(KeeperException.NodeExistsException nee) {<a name="line.72"></a>
+<span class="sourceLineNo">073</span>      ZKUtil.setData(watcher, watcher.znodePaths.clusterStateZNode, upData);<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    }<a name="line.74"></a>
+<span class="sourceLineNo">075</span>  }<a name="line.75"></a>
+<span class="sourceLineNo">076</span><a name="line.76"></a>
+<span class="sourceLineNo">077</span>  /**<a name="line.77"></a>
+<span class="sourceLineNo">078</span>   * Sets the cluster as down by deleting the znode.<a name="line.78"></a>
+<span class="sourceLineNo">079</span>   * @throws KeeperException unexpected zk exception<a name="line.79"></a>
+<span class="sourceLineNo">080</span>   */<a name="line.80"></a>
+<span class="sourceLineNo">081</span>  public void setClusterDown()<a name="line.81"></a>
+<span class="sourceLineNo">082</span>  throws KeeperException {<a name="line.82"></a>
+<span class="sourceLineNo">083</span>    try {<a name="line.83"></a>
+<span class="sourceLineNo">084</span>      ZKUtil.deleteNode(watcher, watcher.znodePaths.clusterStateZNode);<a name="line.84"></a>
+<span class="sourceLineNo">085</span>    } catch(KeeperException.NoNodeException nne) {<a name="line.85"></a>
+<span class="sourceLineNo">086</span>      LOG.warn("Attempted to set cluster as down but already down, cluster " +<a name="line.86"></a>
+<span class="sourceLineNo">087</span>          "state node (" + watcher.znodePaths.clusterStateZNode + ") not found");<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    }<a name="line.88"></a>
+<span class="sourceLineNo">089</span>  }<a name="line.89"></a>
+<span class="sourceLineNo">090</span><a name="line.90"></a>
+<span class="sourceLineNo">091</span>  /**<a name="line.91"></a>
+<span class="sourceLineNo">092</span>   * @return Content of the clusterup znode as a serialized pb with the pb<a name="line.92"></a>
+<span class="sourceLineNo">093</span>   *         magic as prefix.<a name="line.93"></a>
+<span class="sourceLineNo">094</span>   */<a name="line.94"></a>
+<span class="sourceLineNo">095</span>  static byte [] toByteArray() {<a name="line.95"></a>
+<span class="sourceLineNo">096</span>    ZooKeeperProtos.ClusterUp.Builder builder =<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      ZooKeeperProtos.ClusterUp.newBuilder();<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    builder.setStartDate(new java.util.Date().toString());<a name="line.98"></a>
+<span class="sourceLineNo">099</span>    return ProtobufUtil.prependPBMagic(builder.build().toByteArray());<a name="line.99"></a>
+<span class="sourceLineNo">100</span>  }<a name="line.100"></a>
+<span class="sourceLineNo">101</span>}<a name="line.101"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/48bd3915/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/EmptyWatcher.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/EmptyWatcher.html b/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/EmptyWatcher.html
index e343056..c3160af 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/EmptyWatcher.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/zookeeper/EmptyWatcher.html
@@ -33,7 +33,7 @@
 <span class="sourceLineNo">025</span> * An empty ZooKeeper watcher<a name="line.25"></a>
 <span class="sourceLineNo">026</span> */<a name="line.26"></a>
 <span class="sourceLineNo">027</span>@InterfaceAudience.Private<a name="line.27"></a>
-<span class="sourceLineNo">028</span>public class EmptyWatcher implements Watcher {<a name="line.28"></a>
+<span class="sourceLineNo">028</span>public final class EmptyWatcher implements Watcher {<a name="line.28"></a>
 <span class="sourceLineNo">029</span>  // Used in this package but also by tests so needs to be public<a name="line.29"></a>
 <span class="sourceLineNo">030</span>  public static final EmptyWatcher instance = new EmptyWatcher();<a name="line.30"></a>
 <span class="sourceLineNo">031</span>  private EmptyWatcher() {}<a name="line.31"></a>


Mime
View raw message