hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [47/51] [partial] hbase-site git commit: Published site at .
Date Wed, 25 Oct 2017 15:17:06 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/21726f5a/apidocs/org/apache/hadoop/hbase/filter/class-use/FilterList.Operator.html
----------------------------------------------------------------------
diff --git a/apidocs/org/apache/hadoop/hbase/filter/class-use/FilterList.Operator.html b/apidocs/org/apache/hadoop/hbase/filter/class-use/FilterList.Operator.html
index e0963bb..ef6a09a 100644
--- a/apidocs/org/apache/hadoop/hbase/filter/class-use/FilterList.Operator.html
+++ b/apidocs/org/apache/hadoop/hbase/filter/class-use/FilterList.Operator.html
@@ -139,13 +139,13 @@ the order they are declared.</div>
 </tr>
 <tr class="rowColor">
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/filter/FilterList.html#FilterList-org.apache.hadoop.hbase.filter.FilterList.Operator-org.apache.hadoop.hbase.filter.Filter...-">FilterList</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html" title="enum in org.apache.hadoop.hbase.filter">FilterList.Operator</a>&nbsp;operator,
-          <a href="../../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter">Filter</a>...&nbsp;rowFilters)</code>
+          <a href="../../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter">Filter</a>...&nbsp;filters)</code>
 <div class="block">Constructor that takes a var arg number of <a href="../../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter"><code>Filter</code></a>s and an operator.</div>
 </td>
 </tr>
 <tr class="altColor">
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/filter/FilterList.html#FilterList-org.apache.hadoop.hbase.filter.FilterList.Operator-java.util.List-">FilterList</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html" title="enum in org.apache.hadoop.hbase.filter">FilterList.Operator</a>&nbsp;operator,
-          <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/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter">Filter</a>&gt;&nbsp;rowFilters)</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/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter">Filter</a>&gt;&nbsp;filters)</code>
 <div class="block">Constructor that takes a set of <a href="../../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter"><code>Filter</code></a>s and an operator.</div>
 </td>
 </tr>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/21726f5a/apidocs/org/apache/hadoop/hbase/filter/package-summary.html
----------------------------------------------------------------------
diff --git a/apidocs/org/apache/hadoop/hbase/filter/package-summary.html b/apidocs/org/apache/hadoop/hbase/filter/package-summary.html
index 28108d9..0c488d4 100644
--- a/apidocs/org/apache/hadoop/hbase/filter/package-summary.html
+++ b/apidocs/org/apache/hadoop/hbase/filter/package-summary.html
@@ -172,9 +172,9 @@
 <tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.html" title="class in org.apache.hadoop.hbase.filter">FilterList</a></td>
 <td class="colLast">
-<div class="block">Implementation of <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter"><code>Filter</code></a> that represents an ordered List of Filters
- which will be evaluated with a specified boolean operator <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html#MUST_PASS_ALL"><code>FilterList.Operator.MUST_PASS_ALL</code></a>
- (<code>AND</code>) or <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html#MUST_PASS_ONE"><code>FilterList.Operator.MUST_PASS_ONE</code></a> (<code>OR</code>).</div>
+<div class="block">Implementation of <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter"><code>Filter</code></a> that represents an ordered List of Filters which will be
+ evaluated with a specified boolean operator <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html#MUST_PASS_ALL"><code>FilterList.Operator.MUST_PASS_ALL</code></a> (<code>AND</code>) or
+ <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html#MUST_PASS_ONE"><code>FilterList.Operator.MUST_PASS_ONE</code></a> (<code>OR</code>).</div>
 </td>
 </tr>
 <tr class="rowColor">

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/21726f5a/apidocs/org/apache/hadoop/hbase/filter/package-use.html
----------------------------------------------------------------------
diff --git a/apidocs/org/apache/hadoop/hbase/filter/package-use.html b/apidocs/org/apache/hadoop/hbase/filter/package-use.html
index 2ab689f..9a3339c 100644
--- a/apidocs/org/apache/hadoop/hbase/filter/package-use.html
+++ b/apidocs/org/apache/hadoop/hbase/filter/package-use.html
@@ -259,9 +259,9 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div>
 </tr>
 <tr class="rowColor">
 <td class="colOne"><a href="../../../../../org/apache/hadoop/hbase/filter/class-use/FilterList.html#org.apache.hadoop.hbase.filter">FilterList</a>
-<div class="block">Implementation of <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter"><code>Filter</code></a> that represents an ordered List of Filters
- which will be evaluated with a specified boolean operator <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html#MUST_PASS_ALL"><code>FilterList.Operator.MUST_PASS_ALL</code></a>
- (<code>AND</code>) or <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html#MUST_PASS_ONE"><code>FilterList.Operator.MUST_PASS_ONE</code></a> (<code>OR</code>).</div>
+<div class="block">Implementation of <a href="../../../../../org/apache/hadoop/hbase/filter/Filter.html" title="class in org.apache.hadoop.hbase.filter"><code>Filter</code></a> that represents an ordered List of Filters which will be
+ evaluated with a specified boolean operator <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html#MUST_PASS_ALL"><code>FilterList.Operator.MUST_PASS_ALL</code></a> (<code>AND</code>) or
+ <a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html#MUST_PASS_ONE"><code>FilterList.Operator.MUST_PASS_ONE</code></a> (<code>OR</code>).</div>
 </td>
 </tr>
 <tr class="altColor">

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/21726f5a/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html b/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html
index 955a080..9209f39 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html
@@ -1217,128 +1217,124 @@
 <span class="sourceLineNo">1209</span><a name="line.1209"></a>
 <span class="sourceLineNo">1210</span>  public static final int REPLICATION_SOURCE_MAXTHREADS_DEFAULT = 10;<a name="line.1210"></a>
 <span class="sourceLineNo">1211</span><a name="line.1211"></a>
-<span class="sourceLineNo">1212</span>  /** Config for pluggable consensus provider */<a name="line.1212"></a>
-<span class="sourceLineNo">1213</span>  public static final String HBASE_COORDINATED_STATE_MANAGER_CLASS =<a name="line.1213"></a>
-<span class="sourceLineNo">1214</span>    "hbase.coordinated.state.manager.class";<a name="line.1214"></a>
-<span class="sourceLineNo">1215</span><a name="line.1215"></a>
-<span class="sourceLineNo">1216</span>  /** Configuration key for SplitLog manager timeout */<a name="line.1216"></a>
-<span class="sourceLineNo">1217</span>  public static final String HBASE_SPLITLOG_MANAGER_TIMEOUT = "hbase.splitlog.manager.timeout";<a name="line.1217"></a>
-<span class="sourceLineNo">1218</span><a name="line.1218"></a>
-<span class="sourceLineNo">1219</span>  /**<a name="line.1219"></a>
-<span class="sourceLineNo">1220</span>   * Configuration keys for Bucket cache<a name="line.1220"></a>
-<span class="sourceLineNo">1221</span>   */<a name="line.1221"></a>
-<span class="sourceLineNo">1222</span>  // TODO moving these bucket cache implementation specific configs to this level is violation of<a name="line.1222"></a>
-<span class="sourceLineNo">1223</span>  // encapsulation. But as these has to be referred from hbase-common and bucket cache<a name="line.1223"></a>
-<span class="sourceLineNo">1224</span>  // sits in hbase-server, there were no other go! Can we move the cache implementation to<a name="line.1224"></a>
-<span class="sourceLineNo">1225</span>  // hbase-common?<a name="line.1225"></a>
-<span class="sourceLineNo">1226</span><a name="line.1226"></a>
-<span class="sourceLineNo">1227</span>  /**<a name="line.1227"></a>
-<span class="sourceLineNo">1228</span>   * Current ioengine options in include: heap, offheap and file:PATH (where PATH is the path<a name="line.1228"></a>
-<span class="sourceLineNo">1229</span>   * to the file that will host the file-based cache.  See BucketCache#getIOEngineFromName() for<a name="line.1229"></a>
-<span class="sourceLineNo">1230</span>   * list of supported ioengine options.<a name="line.1230"></a>
-<span class="sourceLineNo">1231</span>   * &lt;p&gt;Set this option and a non-zero {@link #BUCKET_CACHE_SIZE_KEY} to enable bucket cache.<a name="line.1231"></a>
-<span class="sourceLineNo">1232</span>   */<a name="line.1232"></a>
-<span class="sourceLineNo">1233</span>  public static final String BUCKET_CACHE_IOENGINE_KEY = "hbase.bucketcache.ioengine";<a name="line.1233"></a>
-<span class="sourceLineNo">1234</span><a name="line.1234"></a>
-<span class="sourceLineNo">1235</span>  /**<a name="line.1235"></a>
-<span class="sourceLineNo">1236</span>   * When using bucket cache, this is a float that EITHER represents a percentage of total heap<a name="line.1236"></a>
-<span class="sourceLineNo">1237</span>   * memory size to give to the cache (if &amp;lt; 1.0) OR, it is the capacity in<a name="line.1237"></a>
-<span class="sourceLineNo">1238</span>   * megabytes of the cache.<a name="line.1238"></a>
-<span class="sourceLineNo">1239</span>   */<a name="line.1239"></a>
-<span class="sourceLineNo">1240</span>  public static final String BUCKET_CACHE_SIZE_KEY = "hbase.bucketcache.size";<a name="line.1240"></a>
-<span class="sourceLineNo">1241</span><a name="line.1241"></a>
-<span class="sourceLineNo">1242</span>  /**<a name="line.1242"></a>
-<span class="sourceLineNo">1243</span>   * HConstants for fast fail on the client side follow<a name="line.1243"></a>
-<span class="sourceLineNo">1244</span>   */<a name="line.1244"></a>
-<span class="sourceLineNo">1245</span>  /**<a name="line.1245"></a>
-<span class="sourceLineNo">1246</span>   * Config for enabling/disabling the fast fail mode.<a name="line.1246"></a>
-<span class="sourceLineNo">1247</span>   */<a name="line.1247"></a>
-<span class="sourceLineNo">1248</span>  public static final String HBASE_CLIENT_FAST_FAIL_MODE_ENABLED =<a name="line.1248"></a>
-<span class="sourceLineNo">1249</span>      "hbase.client.fast.fail.mode.enabled";<a name="line.1249"></a>
-<span class="sourceLineNo">1250</span><a name="line.1250"></a>
-<span class="sourceLineNo">1251</span>  public static final boolean HBASE_CLIENT_ENABLE_FAST_FAIL_MODE_DEFAULT =<a name="line.1251"></a>
-<span class="sourceLineNo">1252</span>      false;<a name="line.1252"></a>
-<span class="sourceLineNo">1253</span><a name="line.1253"></a>
-<span class="sourceLineNo">1254</span>  public static final String HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS =<a name="line.1254"></a>
-<span class="sourceLineNo">1255</span>      "hbase.client.fastfail.threshold";<a name="line.1255"></a>
-<span class="sourceLineNo">1256</span><a name="line.1256"></a>
-<span class="sourceLineNo">1257</span>  public static final long HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS_DEFAULT =<a name="line.1257"></a>
-<span class="sourceLineNo">1258</span>      60000;<a name="line.1258"></a>
-<span class="sourceLineNo">1259</span><a name="line.1259"></a>
-<span class="sourceLineNo">1260</span>  public static final String HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS =<a name="line.1260"></a>
-<span class="sourceLineNo">1261</span>      "hbase.client.fast.fail.cleanup.duration";<a name="line.1261"></a>
-<span class="sourceLineNo">1262</span><a name="line.1262"></a>
-<span class="sourceLineNo">1263</span>  public static final long HBASE_CLIENT_FAST_FAIL_CLEANUP_DURATION_MS_DEFAULT =<a name="line.1263"></a>
-<span class="sourceLineNo">1264</span>      600000;<a name="line.1264"></a>
-<span class="sourceLineNo">1265</span><a name="line.1265"></a>
-<span class="sourceLineNo">1266</span>  public static final String HBASE_CLIENT_FAST_FAIL_INTERCEPTOR_IMPL =<a name="line.1266"></a>
-<span class="sourceLineNo">1267</span>      "hbase.client.fast.fail.interceptor.impl";<a name="line.1267"></a>
-<span class="sourceLineNo">1268</span><a name="line.1268"></a>
-<span class="sourceLineNo">1269</span>  /** Config key for if the server should send backpressure and if the client should listen to<a name="line.1269"></a>
-<span class="sourceLineNo">1270</span>   * that backpressure from the server */<a name="line.1270"></a>
-<span class="sourceLineNo">1271</span>  public static final String ENABLE_CLIENT_BACKPRESSURE = "hbase.client.backpressure.enabled";<a name="line.1271"></a>
-<span class="sourceLineNo">1272</span>  public static final boolean DEFAULT_ENABLE_CLIENT_BACKPRESSURE = false;<a name="line.1272"></a>
-<span class="sourceLineNo">1273</span><a name="line.1273"></a>
-<span class="sourceLineNo">1274</span>  public static final String HEAP_OCCUPANCY_LOW_WATERMARK_KEY =<a name="line.1274"></a>
-<span class="sourceLineNo">1275</span>      "hbase.heap.occupancy.low_water_mark";<a name="line.1275"></a>
-<span class="sourceLineNo">1276</span>  public static final float DEFAULT_HEAP_OCCUPANCY_LOW_WATERMARK = 0.95f;<a name="line.1276"></a>
-<span class="sourceLineNo">1277</span>  public static final String HEAP_OCCUPANCY_HIGH_WATERMARK_KEY =<a name="line.1277"></a>
-<span class="sourceLineNo">1278</span>      "hbase.heap.occupancy.high_water_mark";<a name="line.1278"></a>
-<span class="sourceLineNo">1279</span>  public static final float DEFAULT_HEAP_OCCUPANCY_HIGH_WATERMARK = 0.98f;<a name="line.1279"></a>
-<span class="sourceLineNo">1280</span><a name="line.1280"></a>
-<span class="sourceLineNo">1281</span>  /**<a name="line.1281"></a>
-<span class="sourceLineNo">1282</span>   * The max number of threads used for splitting storefiles in parallel during<a name="line.1282"></a>
-<span class="sourceLineNo">1283</span>   * the region split process.<a name="line.1283"></a>
-<span class="sourceLineNo">1284</span>   */<a name="line.1284"></a>
-<span class="sourceLineNo">1285</span>  public static final String REGION_SPLIT_THREADS_MAX =<a name="line.1285"></a>
-<span class="sourceLineNo">1286</span>    "hbase.regionserver.region.split.threads.max";<a name="line.1286"></a>
-<span class="sourceLineNo">1287</span><a name="line.1287"></a>
-<span class="sourceLineNo">1288</span>  /** Canary config keys */<a name="line.1288"></a>
-<span class="sourceLineNo">1289</span>  public static final String HBASE_CANARY_WRITE_DATA_TTL_KEY = "hbase.canary.write.data.ttl";<a name="line.1289"></a>
-<span class="sourceLineNo">1290</span><a name="line.1290"></a>
-<span class="sourceLineNo">1291</span>  public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_LOWERLIMIT_KEY =<a name="line.1291"></a>
-<span class="sourceLineNo">1292</span>      "hbase.canary.write.perserver.regions.lowerLimit";<a name="line.1292"></a>
-<span class="sourceLineNo">1293</span><a name="line.1293"></a>
-<span class="sourceLineNo">1294</span>  public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_UPPERLIMIT_KEY =<a name="line.1294"></a>
-<span class="sourceLineNo">1295</span>      "hbase.canary.write.perserver.regions.upperLimit";<a name="line.1295"></a>
-<span class="sourceLineNo">1296</span><a name="line.1296"></a>
-<span class="sourceLineNo">1297</span>  public static final String HBASE_CANARY_WRITE_VALUE_SIZE_KEY = "hbase.canary.write.value.size";<a name="line.1297"></a>
-<span class="sourceLineNo">1298</span><a name="line.1298"></a>
-<span class="sourceLineNo">1299</span>  public static final String HBASE_CANARY_WRITE_TABLE_CHECK_PERIOD_KEY =<a name="line.1299"></a>
-<span class="sourceLineNo">1300</span>      "hbase.canary.write.table.check.period";<a name="line.1300"></a>
-<span class="sourceLineNo">1301</span>  <a name="line.1301"></a>
-<span class="sourceLineNo">1302</span>  public static final String HBASE_CANARY_READ_RAW_SCAN_KEY = "hbase.canary.read.raw.enabled";<a name="line.1302"></a>
-<span class="sourceLineNo">1303</span><a name="line.1303"></a>
-<span class="sourceLineNo">1304</span>  /**<a name="line.1304"></a>
-<span class="sourceLineNo">1305</span>   * Configuration keys for programmatic JAAS configuration for secured ZK interaction<a name="line.1305"></a>
-<span class="sourceLineNo">1306</span>   */<a name="line.1306"></a>
-<span class="sourceLineNo">1307</span>  public static final String ZK_CLIENT_KEYTAB_FILE = "hbase.zookeeper.client.keytab.file";<a name="line.1307"></a>
-<span class="sourceLineNo">1308</span>  public static final String ZK_CLIENT_KERBEROS_PRINCIPAL =<a name="line.1308"></a>
-<span class="sourceLineNo">1309</span>      "hbase.zookeeper.client.kerberos.principal";<a name="line.1309"></a>
-<span class="sourceLineNo">1310</span>  public static final String ZK_SERVER_KEYTAB_FILE = "hbase.zookeeper.server.keytab.file";<a name="line.1310"></a>
-<span class="sourceLineNo">1311</span>  public static final String ZK_SERVER_KERBEROS_PRINCIPAL =<a name="line.1311"></a>
-<span class="sourceLineNo">1312</span>      "hbase.zookeeper.server.kerberos.principal";<a name="line.1312"></a>
-<span class="sourceLineNo">1313</span><a name="line.1313"></a>
-<span class="sourceLineNo">1314</span>  /** Config key for hbase temporary directory in hdfs */<a name="line.1314"></a>
-<span class="sourceLineNo">1315</span>  public static final String TEMPORARY_FS_DIRECTORY_KEY = "hbase.fs.tmp.dir";<a name="line.1315"></a>
-<span class="sourceLineNo">1316</span>  public static final String DEFAULT_TEMPORARY_HDFS_DIRECTORY = "/user/"<a name="line.1316"></a>
-<span class="sourceLineNo">1317</span>      + System.getProperty("user.name") + "/hbase-staging";<a name="line.1317"></a>
+<span class="sourceLineNo">1212</span>  /** Configuration key for SplitLog manager timeout */<a name="line.1212"></a>
+<span class="sourceLineNo">1213</span>  public static final String HBASE_SPLITLOG_MANAGER_TIMEOUT = "hbase.splitlog.manager.timeout";<a name="line.1213"></a>
+<span class="sourceLineNo">1214</span><a name="line.1214"></a>
+<span class="sourceLineNo">1215</span>  /**<a name="line.1215"></a>
+<span class="sourceLineNo">1216</span>   * Configuration keys for Bucket cache<a name="line.1216"></a>
+<span class="sourceLineNo">1217</span>   */<a name="line.1217"></a>
+<span class="sourceLineNo">1218</span>  // TODO moving these bucket cache implementation specific configs to this level is violation of<a name="line.1218"></a>
+<span class="sourceLineNo">1219</span>  // encapsulation. But as these has to be referred from hbase-common and bucket cache<a name="line.1219"></a>
+<span class="sourceLineNo">1220</span>  // sits in hbase-server, there were no other go! Can we move the cache implementation to<a name="line.1220"></a>
+<span class="sourceLineNo">1221</span>  // hbase-common?<a name="line.1221"></a>
+<span class="sourceLineNo">1222</span><a name="line.1222"></a>
+<span class="sourceLineNo">1223</span>  /**<a name="line.1223"></a>
+<span class="sourceLineNo">1224</span>   * Current ioengine options in include: heap, offheap and file:PATH (where PATH is the path<a name="line.1224"></a>
+<span class="sourceLineNo">1225</span>   * to the file that will host the file-based cache.  See BucketCache#getIOEngineFromName() for<a name="line.1225"></a>
+<span class="sourceLineNo">1226</span>   * list of supported ioengine options.<a name="line.1226"></a>
+<span class="sourceLineNo">1227</span>   * &lt;p&gt;Set this option and a non-zero {@link #BUCKET_CACHE_SIZE_KEY} to enable bucket cache.<a name="line.1227"></a>
+<span class="sourceLineNo">1228</span>   */<a name="line.1228"></a>
+<span class="sourceLineNo">1229</span>  public static final String BUCKET_CACHE_IOENGINE_KEY = "hbase.bucketcache.ioengine";<a name="line.1229"></a>
+<span class="sourceLineNo">1230</span><a name="line.1230"></a>
+<span class="sourceLineNo">1231</span>  /**<a name="line.1231"></a>
+<span class="sourceLineNo">1232</span>   * When using bucket cache, this is a float that EITHER represents a percentage of total heap<a name="line.1232"></a>
+<span class="sourceLineNo">1233</span>   * memory size to give to the cache (if &amp;lt; 1.0) OR, it is the capacity in<a name="line.1233"></a>
+<span class="sourceLineNo">1234</span>   * megabytes of the cache.<a name="line.1234"></a>
+<span class="sourceLineNo">1235</span>   */<a name="line.1235"></a>
+<span class="sourceLineNo">1236</span>  public static final String BUCKET_CACHE_SIZE_KEY = "hbase.bucketcache.size";<a name="line.1236"></a>
+<span class="sourceLineNo">1237</span><a name="line.1237"></a>
+<span class="sourceLineNo">1238</span>  /**<a name="line.1238"></a>
+<span class="sourceLineNo">1239</span>   * HConstants for fast fail on the client side follow<a name="line.1239"></a>
+<span class="sourceLineNo">1240</span>   */<a name="line.1240"></a>
+<span class="sourceLineNo">1241</span>  /**<a name="line.1241"></a>
+<span class="sourceLineNo">1242</span>   * Config for enabling/disabling the fast fail mode.<a name="line.1242"></a>
+<span class="sourceLineNo">1243</span>   */<a name="line.1243"></a>
+<span class="sourceLineNo">1244</span>  public static final String HBASE_CLIENT_FAST_FAIL_MODE_ENABLED =<a name="line.1244"></a>
+<span class="sourceLineNo">1245</span>      "hbase.client.fast.fail.mode.enabled";<a name="line.1245"></a>
+<span class="sourceLineNo">1246</span><a name="line.1246"></a>
+<span class="sourceLineNo">1247</span>  public static final boolean HBASE_CLIENT_ENABLE_FAST_FAIL_MODE_DEFAULT =<a name="line.1247"></a>
+<span class="sourceLineNo">1248</span>      false;<a name="line.1248"></a>
+<span class="sourceLineNo">1249</span><a name="line.1249"></a>
+<span class="sourceLineNo">1250</span>  public static final String HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS =<a name="line.1250"></a>
+<span class="sourceLineNo">1251</span>      "hbase.client.fastfail.threshold";<a name="line.1251"></a>
+<span class="sourceLineNo">1252</span><a name="line.1252"></a>
+<span class="sourceLineNo">1253</span>  public static final long HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS_DEFAULT =<a name="line.1253"></a>
+<span class="sourceLineNo">1254</span>      60000;<a name="line.1254"></a>
+<span class="sourceLineNo">1255</span><a name="line.1255"></a>
+<span class="sourceLineNo">1256</span>  public static final String HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS =<a name="line.1256"></a>
+<span class="sourceLineNo">1257</span>      "hbase.client.fast.fail.cleanup.duration";<a name="line.1257"></a>
+<span class="sourceLineNo">1258</span><a name="line.1258"></a>
+<span class="sourceLineNo">1259</span>  public static final long HBASE_CLIENT_FAST_FAIL_CLEANUP_DURATION_MS_DEFAULT =<a name="line.1259"></a>
+<span class="sourceLineNo">1260</span>      600000;<a name="line.1260"></a>
+<span class="sourceLineNo">1261</span><a name="line.1261"></a>
+<span class="sourceLineNo">1262</span>  public static final String HBASE_CLIENT_FAST_FAIL_INTERCEPTOR_IMPL =<a name="line.1262"></a>
+<span class="sourceLineNo">1263</span>      "hbase.client.fast.fail.interceptor.impl";<a name="line.1263"></a>
+<span class="sourceLineNo">1264</span><a name="line.1264"></a>
+<span class="sourceLineNo">1265</span>  /** Config key for if the server should send backpressure and if the client should listen to<a name="line.1265"></a>
+<span class="sourceLineNo">1266</span>   * that backpressure from the server */<a name="line.1266"></a>
+<span class="sourceLineNo">1267</span>  public static final String ENABLE_CLIENT_BACKPRESSURE = "hbase.client.backpressure.enabled";<a name="line.1267"></a>
+<span class="sourceLineNo">1268</span>  public static final boolean DEFAULT_ENABLE_CLIENT_BACKPRESSURE = false;<a name="line.1268"></a>
+<span class="sourceLineNo">1269</span><a name="line.1269"></a>
+<span class="sourceLineNo">1270</span>  public static final String HEAP_OCCUPANCY_LOW_WATERMARK_KEY =<a name="line.1270"></a>
+<span class="sourceLineNo">1271</span>      "hbase.heap.occupancy.low_water_mark";<a name="line.1271"></a>
+<span class="sourceLineNo">1272</span>  public static final float DEFAULT_HEAP_OCCUPANCY_LOW_WATERMARK = 0.95f;<a name="line.1272"></a>
+<span class="sourceLineNo">1273</span>  public static final String HEAP_OCCUPANCY_HIGH_WATERMARK_KEY =<a name="line.1273"></a>
+<span class="sourceLineNo">1274</span>      "hbase.heap.occupancy.high_water_mark";<a name="line.1274"></a>
+<span class="sourceLineNo">1275</span>  public static final float DEFAULT_HEAP_OCCUPANCY_HIGH_WATERMARK = 0.98f;<a name="line.1275"></a>
+<span class="sourceLineNo">1276</span><a name="line.1276"></a>
+<span class="sourceLineNo">1277</span>  /**<a name="line.1277"></a>
+<span class="sourceLineNo">1278</span>   * The max number of threads used for splitting storefiles in parallel during<a name="line.1278"></a>
+<span class="sourceLineNo">1279</span>   * the region split process.<a name="line.1279"></a>
+<span class="sourceLineNo">1280</span>   */<a name="line.1280"></a>
+<span class="sourceLineNo">1281</span>  public static final String REGION_SPLIT_THREADS_MAX =<a name="line.1281"></a>
+<span class="sourceLineNo">1282</span>    "hbase.regionserver.region.split.threads.max";<a name="line.1282"></a>
+<span class="sourceLineNo">1283</span><a name="line.1283"></a>
+<span class="sourceLineNo">1284</span>  /** Canary config keys */<a name="line.1284"></a>
+<span class="sourceLineNo">1285</span>  public static final String HBASE_CANARY_WRITE_DATA_TTL_KEY = "hbase.canary.write.data.ttl";<a name="line.1285"></a>
+<span class="sourceLineNo">1286</span><a name="line.1286"></a>
+<span class="sourceLineNo">1287</span>  public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_LOWERLIMIT_KEY =<a name="line.1287"></a>
+<span class="sourceLineNo">1288</span>      "hbase.canary.write.perserver.regions.lowerLimit";<a name="line.1288"></a>
+<span class="sourceLineNo">1289</span><a name="line.1289"></a>
+<span class="sourceLineNo">1290</span>  public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_UPPERLIMIT_KEY =<a name="line.1290"></a>
+<span class="sourceLineNo">1291</span>      "hbase.canary.write.perserver.regions.upperLimit";<a name="line.1291"></a>
+<span class="sourceLineNo">1292</span><a name="line.1292"></a>
+<span class="sourceLineNo">1293</span>  public static final String HBASE_CANARY_WRITE_VALUE_SIZE_KEY = "hbase.canary.write.value.size";<a name="line.1293"></a>
+<span class="sourceLineNo">1294</span><a name="line.1294"></a>
+<span class="sourceLineNo">1295</span>  public static final String HBASE_CANARY_WRITE_TABLE_CHECK_PERIOD_KEY =<a name="line.1295"></a>
+<span class="sourceLineNo">1296</span>      "hbase.canary.write.table.check.period";<a name="line.1296"></a>
+<span class="sourceLineNo">1297</span><a name="line.1297"></a>
+<span class="sourceLineNo">1298</span>  public static final String HBASE_CANARY_READ_RAW_SCAN_KEY = "hbase.canary.read.raw.enabled";<a name="line.1298"></a>
+<span class="sourceLineNo">1299</span><a name="line.1299"></a>
+<span class="sourceLineNo">1300</span>  /**<a name="line.1300"></a>
+<span class="sourceLineNo">1301</span>   * Configuration keys for programmatic JAAS configuration for secured ZK interaction<a name="line.1301"></a>
+<span class="sourceLineNo">1302</span>   */<a name="line.1302"></a>
+<span class="sourceLineNo">1303</span>  public static final String ZK_CLIENT_KEYTAB_FILE = "hbase.zookeeper.client.keytab.file";<a name="line.1303"></a>
+<span class="sourceLineNo">1304</span>  public static final String ZK_CLIENT_KERBEROS_PRINCIPAL =<a name="line.1304"></a>
+<span class="sourceLineNo">1305</span>      "hbase.zookeeper.client.kerberos.principal";<a name="line.1305"></a>
+<span class="sourceLineNo">1306</span>  public static final String ZK_SERVER_KEYTAB_FILE = "hbase.zookeeper.server.keytab.file";<a name="line.1306"></a>
+<span class="sourceLineNo">1307</span>  public static final String ZK_SERVER_KERBEROS_PRINCIPAL =<a name="line.1307"></a>
+<span class="sourceLineNo">1308</span>      "hbase.zookeeper.server.kerberos.principal";<a name="line.1308"></a>
+<span class="sourceLineNo">1309</span><a name="line.1309"></a>
+<span class="sourceLineNo">1310</span>  /** Config key for hbase temporary directory in hdfs */<a name="line.1310"></a>
+<span class="sourceLineNo">1311</span>  public static final String TEMPORARY_FS_DIRECTORY_KEY = "hbase.fs.tmp.dir";<a name="line.1311"></a>
+<span class="sourceLineNo">1312</span>  public static final String DEFAULT_TEMPORARY_HDFS_DIRECTORY = "/user/"<a name="line.1312"></a>
+<span class="sourceLineNo">1313</span>      + System.getProperty("user.name") + "/hbase-staging";<a name="line.1313"></a>
+<span class="sourceLineNo">1314</span><a name="line.1314"></a>
+<span class="sourceLineNo">1315</span>  public static final String SNAPSHOT_RESTORE_TAKE_FAILSAFE_SNAPSHOT =<a name="line.1315"></a>
+<span class="sourceLineNo">1316</span>      "hbase.snapshot.restore.take.failsafe.snapshot";<a name="line.1316"></a>
+<span class="sourceLineNo">1317</span>  public static final boolean DEFAULT_SNAPSHOT_RESTORE_TAKE_FAILSAFE_SNAPSHOT = true;<a name="line.1317"></a>
 <span class="sourceLineNo">1318</span><a name="line.1318"></a>
-<span class="sourceLineNo">1319</span>  public static final String SNAPSHOT_RESTORE_TAKE_FAILSAFE_SNAPSHOT =<a name="line.1319"></a>
-<span class="sourceLineNo">1320</span>      "hbase.snapshot.restore.take.failsafe.snapshot";<a name="line.1320"></a>
-<span class="sourceLineNo">1321</span>  public static final boolean DEFAULT_SNAPSHOT_RESTORE_TAKE_FAILSAFE_SNAPSHOT = true;<a name="line.1321"></a>
-<span class="sourceLineNo">1322</span><a name="line.1322"></a>
-<span class="sourceLineNo">1323</span>  public static final String SNAPSHOT_RESTORE_FAILSAFE_NAME =<a name="line.1323"></a>
-<span class="sourceLineNo">1324</span>      "hbase.snapshot.restore.failsafe.name";<a name="line.1324"></a>
-<span class="sourceLineNo">1325</span>  public static final String DEFAULT_SNAPSHOT_RESTORE_FAILSAFE_NAME =<a name="line.1325"></a>
-<span class="sourceLineNo">1326</span>      "hbase-failsafe-{snapshot.name}-{restore.timestamp}";<a name="line.1326"></a>
-<span class="sourceLineNo">1327</span><a name="line.1327"></a>
-<span class="sourceLineNo">1328</span>  public static final String NOT_IMPLEMENTED = "Not implemented";<a name="line.1328"></a>
-<span class="sourceLineNo">1329</span><a name="line.1329"></a>
-<span class="sourceLineNo">1330</span>  private HConstants() {<a name="line.1330"></a>
-<span class="sourceLineNo">1331</span>    // Can't be instantiated with this ctor.<a name="line.1331"></a>
-<span class="sourceLineNo">1332</span>  }<a name="line.1332"></a>
-<span class="sourceLineNo">1333</span>}<a name="line.1333"></a>
+<span class="sourceLineNo">1319</span>  public static final String SNAPSHOT_RESTORE_FAILSAFE_NAME =<a name="line.1319"></a>
+<span class="sourceLineNo">1320</span>      "hbase.snapshot.restore.failsafe.name";<a name="line.1320"></a>
+<span class="sourceLineNo">1321</span>  public static final String DEFAULT_SNAPSHOT_RESTORE_FAILSAFE_NAME =<a name="line.1321"></a>
+<span class="sourceLineNo">1322</span>      "hbase-failsafe-{snapshot.name}-{restore.timestamp}";<a name="line.1322"></a>
+<span class="sourceLineNo">1323</span><a name="line.1323"></a>
+<span class="sourceLineNo">1324</span>  public static final String NOT_IMPLEMENTED = "Not implemented";<a name="line.1324"></a>
+<span class="sourceLineNo">1325</span><a name="line.1325"></a>
+<span class="sourceLineNo">1326</span>  private HConstants() {<a name="line.1326"></a>
+<span class="sourceLineNo">1327</span>    // Can't be instantiated with this ctor.<a name="line.1327"></a>
+<span class="sourceLineNo">1328</span>  }<a name="line.1328"></a>
+<span class="sourceLineNo">1329</span>}<a name="line.1329"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/21726f5a/apidocs/src-html/org/apache/hadoop/hbase/LocalHBaseCluster.html
----------------------------------------------------------------------
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/LocalHBaseCluster.html b/apidocs/src-html/org/apache/hadoop/hbase/LocalHBaseCluster.html
index fb0807b..8fdb647 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/LocalHBaseCluster.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/LocalHBaseCluster.html
@@ -181,274 +181,262 @@
 <span class="sourceLineNo">173</span>    // Create each regionserver with its own Configuration instance so each has<a name="line.173"></a>
 <span class="sourceLineNo">174</span>    // its Connection instance rather than share (see HBASE_INSTANCES down in<a name="line.174"></a>
 <span class="sourceLineNo">175</span>    // the guts of ConnectionManager).<a name="line.175"></a>
-<span class="sourceLineNo">176</span><a name="line.176"></a>
-<span class="sourceLineNo">177</span>    // Also, create separate CoordinatedStateManager instance per Server.<a name="line.177"></a>
-<span class="sourceLineNo">178</span>    // This is special case when we have to have more than 1 CoordinatedStateManager<a name="line.178"></a>
-<span class="sourceLineNo">179</span>    // within 1 process.<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    CoordinatedStateManager cp = CoordinatedStateManagerFactory.getCoordinatedStateManager(conf);<a name="line.180"></a>
-<span class="sourceLineNo">181</span><a name="line.181"></a>
-<span class="sourceLineNo">182</span>    JVMClusterUtil.RegionServerThread rst =<a name="line.182"></a>
-<span class="sourceLineNo">183</span>        JVMClusterUtil.createRegionServerThread(config, cp, (Class&lt;? extends HRegionServer&gt;) conf<a name="line.183"></a>
-<span class="sourceLineNo">184</span>            .getClass(HConstants.REGION_SERVER_IMPL, this.regionServerClass), index);<a name="line.184"></a>
-<span class="sourceLineNo">185</span><a name="line.185"></a>
-<span class="sourceLineNo">186</span>    this.regionThreads.add(rst);<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    return rst;<a name="line.187"></a>
-<span class="sourceLineNo">188</span>  }<a name="line.188"></a>
-<span class="sourceLineNo">189</span><a name="line.189"></a>
-<span class="sourceLineNo">190</span>  public JVMClusterUtil.RegionServerThread addRegionServer(<a name="line.190"></a>
-<span class="sourceLineNo">191</span>      final Configuration config, final int index, User user)<a name="line.191"></a>
-<span class="sourceLineNo">192</span>  throws IOException, InterruptedException {<a name="line.192"></a>
-<span class="sourceLineNo">193</span>    return user.runAs(<a name="line.193"></a>
-<span class="sourceLineNo">194</span>        new PrivilegedExceptionAction&lt;JVMClusterUtil.RegionServerThread&gt;() {<a name="line.194"></a>
-<span class="sourceLineNo">195</span>          @Override<a name="line.195"></a>
-<span class="sourceLineNo">196</span>          public JVMClusterUtil.RegionServerThread run() throws Exception {<a name="line.196"></a>
-<span class="sourceLineNo">197</span>            return addRegionServer(config, index);<a name="line.197"></a>
-<span class="sourceLineNo">198</span>          }<a name="line.198"></a>
-<span class="sourceLineNo">199</span>        });<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>  public JVMClusterUtil.MasterThread addMaster() throws IOException {<a name="line.202"></a>
-<span class="sourceLineNo">203</span>    return addMaster(new Configuration(conf), this.masterThreads.size());<a name="line.203"></a>
-<span class="sourceLineNo">204</span>  }<a name="line.204"></a>
-<span class="sourceLineNo">205</span><a name="line.205"></a>
-<span class="sourceLineNo">206</span>  public JVMClusterUtil.MasterThread addMaster(Configuration c, final int index)<a name="line.206"></a>
-<span class="sourceLineNo">207</span>  throws IOException {<a name="line.207"></a>
-<span class="sourceLineNo">208</span>    // Create each master with its own Configuration instance so each has<a name="line.208"></a>
-<span class="sourceLineNo">209</span>    // its Connection instance rather than share (see HBASE_INSTANCES down in<a name="line.209"></a>
-<span class="sourceLineNo">210</span>    // the guts of ConnectionManager.<a name="line.210"></a>
-<span class="sourceLineNo">211</span><a name="line.211"></a>
-<span class="sourceLineNo">212</span>    // Also, create separate CoordinatedStateManager instance per Server.<a name="line.212"></a>
-<span class="sourceLineNo">213</span>    // This is special case when we have to have more than 1 CoordinatedStateManager<a name="line.213"></a>
-<span class="sourceLineNo">214</span>    // within 1 process.<a name="line.214"></a>
-<span class="sourceLineNo">215</span>    CoordinatedStateManager cp = CoordinatedStateManagerFactory.getCoordinatedStateManager(conf);<a name="line.215"></a>
-<span class="sourceLineNo">216</span><a name="line.216"></a>
-<span class="sourceLineNo">217</span>    JVMClusterUtil.MasterThread mt = JVMClusterUtil.createMasterThread(c, cp,<a name="line.217"></a>
-<span class="sourceLineNo">218</span>        (Class&lt;? extends HMaster&gt;) conf.getClass(HConstants.MASTER_IMPL, this.masterClass), index);<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    this.masterThreads.add(mt);<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    return mt;<a name="line.220"></a>
+<span class="sourceLineNo">176</span>    JVMClusterUtil.RegionServerThread rst =<a name="line.176"></a>
+<span class="sourceLineNo">177</span>        JVMClusterUtil.createRegionServerThread(config, (Class&lt;? extends HRegionServer&gt;) conf<a name="line.177"></a>
+<span class="sourceLineNo">178</span>            .getClass(HConstants.REGION_SERVER_IMPL, this.regionServerClass), index);<a name="line.178"></a>
+<span class="sourceLineNo">179</span><a name="line.179"></a>
+<span class="sourceLineNo">180</span>    this.regionThreads.add(rst);<a name="line.180"></a>
+<span class="sourceLineNo">181</span>    return rst;<a name="line.181"></a>
+<span class="sourceLineNo">182</span>  }<a name="line.182"></a>
+<span class="sourceLineNo">183</span><a name="line.183"></a>
+<span class="sourceLineNo">184</span>  public JVMClusterUtil.RegionServerThread addRegionServer(<a name="line.184"></a>
+<span class="sourceLineNo">185</span>      final Configuration config, final int index, User user)<a name="line.185"></a>
+<span class="sourceLineNo">186</span>  throws IOException, InterruptedException {<a name="line.186"></a>
+<span class="sourceLineNo">187</span>    return user.runAs(<a name="line.187"></a>
+<span class="sourceLineNo">188</span>        new PrivilegedExceptionAction&lt;JVMClusterUtil.RegionServerThread&gt;() {<a name="line.188"></a>
+<span class="sourceLineNo">189</span>          @Override<a name="line.189"></a>
+<span class="sourceLineNo">190</span>          public JVMClusterUtil.RegionServerThread run() throws Exception {<a name="line.190"></a>
+<span class="sourceLineNo">191</span>            return addRegionServer(config, index);<a name="line.191"></a>
+<span class="sourceLineNo">192</span>          }<a name="line.192"></a>
+<span class="sourceLineNo">193</span>        });<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>  public JVMClusterUtil.MasterThread addMaster() throws IOException {<a name="line.196"></a>
+<span class="sourceLineNo">197</span>    return addMaster(new Configuration(conf), this.masterThreads.size());<a name="line.197"></a>
+<span class="sourceLineNo">198</span>  }<a name="line.198"></a>
+<span class="sourceLineNo">199</span><a name="line.199"></a>
+<span class="sourceLineNo">200</span>  public JVMClusterUtil.MasterThread addMaster(Configuration c, final int index)<a name="line.200"></a>
+<span class="sourceLineNo">201</span>  throws IOException {<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    // Create each master with its own Configuration instance so each has<a name="line.202"></a>
+<span class="sourceLineNo">203</span>    // its Connection instance rather than share (see HBASE_INSTANCES down in<a name="line.203"></a>
+<span class="sourceLineNo">204</span>    // the guts of ConnectionManager.<a name="line.204"></a>
+<span class="sourceLineNo">205</span>    JVMClusterUtil.MasterThread mt = JVMClusterUtil.createMasterThread(c,<a name="line.205"></a>
+<span class="sourceLineNo">206</span>        (Class&lt;? extends HMaster&gt;) conf.getClass(HConstants.MASTER_IMPL, this.masterClass), index);<a name="line.206"></a>
+<span class="sourceLineNo">207</span>    this.masterThreads.add(mt);<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    return mt;<a name="line.208"></a>
+<span class="sourceLineNo">209</span>  }<a name="line.209"></a>
+<span class="sourceLineNo">210</span><a name="line.210"></a>
+<span class="sourceLineNo">211</span>  public JVMClusterUtil.MasterThread addMaster(<a name="line.211"></a>
+<span class="sourceLineNo">212</span>      final Configuration c, final int index, User user)<a name="line.212"></a>
+<span class="sourceLineNo">213</span>  throws IOException, InterruptedException {<a name="line.213"></a>
+<span class="sourceLineNo">214</span>    return user.runAs(<a name="line.214"></a>
+<span class="sourceLineNo">215</span>        new PrivilegedExceptionAction&lt;JVMClusterUtil.MasterThread&gt;() {<a name="line.215"></a>
+<span class="sourceLineNo">216</span>          @Override<a name="line.216"></a>
+<span class="sourceLineNo">217</span>          public JVMClusterUtil.MasterThread run() throws Exception {<a name="line.217"></a>
+<span class="sourceLineNo">218</span>            return addMaster(c, index);<a name="line.218"></a>
+<span class="sourceLineNo">219</span>          }<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><a name="line.222"></a>
-<span class="sourceLineNo">223</span>  public JVMClusterUtil.MasterThread addMaster(<a name="line.223"></a>
-<span class="sourceLineNo">224</span>      final Configuration c, final int index, User user)<a name="line.224"></a>
-<span class="sourceLineNo">225</span>  throws IOException, InterruptedException {<a name="line.225"></a>
-<span class="sourceLineNo">226</span>    return user.runAs(<a name="line.226"></a>
-<span class="sourceLineNo">227</span>        new PrivilegedExceptionAction&lt;JVMClusterUtil.MasterThread&gt;() {<a name="line.227"></a>
-<span class="sourceLineNo">228</span>          @Override<a name="line.228"></a>
-<span class="sourceLineNo">229</span>          public JVMClusterUtil.MasterThread run() throws Exception {<a name="line.229"></a>
-<span class="sourceLineNo">230</span>            return addMaster(c, index);<a name="line.230"></a>
-<span class="sourceLineNo">231</span>          }<a name="line.231"></a>
-<span class="sourceLineNo">232</span>        });<a name="line.232"></a>
-<span class="sourceLineNo">233</span>  }<a name="line.233"></a>
-<span class="sourceLineNo">234</span><a name="line.234"></a>
-<span class="sourceLineNo">235</span>  /**<a name="line.235"></a>
-<span class="sourceLineNo">236</span>   * @param serverNumber<a name="line.236"></a>
-<span class="sourceLineNo">237</span>   * @return region server<a name="line.237"></a>
-<span class="sourceLineNo">238</span>   */<a name="line.238"></a>
-<span class="sourceLineNo">239</span>  public HRegionServer getRegionServer(int serverNumber) {<a name="line.239"></a>
-<span class="sourceLineNo">240</span>    return regionThreads.get(serverNumber).getRegionServer();<a name="line.240"></a>
-<span class="sourceLineNo">241</span>  }<a name="line.241"></a>
-<span class="sourceLineNo">242</span><a name="line.242"></a>
-<span class="sourceLineNo">243</span>  /**<a name="line.243"></a>
-<span class="sourceLineNo">244</span>   * @return Read-only list of region server threads.<a name="line.244"></a>
-<span class="sourceLineNo">245</span>   */<a name="line.245"></a>
-<span class="sourceLineNo">246</span>  public List&lt;JVMClusterUtil.RegionServerThread&gt; getRegionServers() {<a name="line.246"></a>
-<span class="sourceLineNo">247</span>    return Collections.unmodifiableList(this.regionThreads);<a name="line.247"></a>
-<span class="sourceLineNo">248</span>  }<a name="line.248"></a>
-<span class="sourceLineNo">249</span><a name="line.249"></a>
-<span class="sourceLineNo">250</span>  /**<a name="line.250"></a>
-<span class="sourceLineNo">251</span>   * @return List of running servers (Some servers may have been killed or<a name="line.251"></a>
-<span class="sourceLineNo">252</span>   * aborted during lifetime of cluster; these servers are not included in this<a name="line.252"></a>
-<span class="sourceLineNo">253</span>   * list).<a name="line.253"></a>
-<span class="sourceLineNo">254</span>   */<a name="line.254"></a>
-<span class="sourceLineNo">255</span>  public List&lt;JVMClusterUtil.RegionServerThread&gt; getLiveRegionServers() {<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    List&lt;JVMClusterUtil.RegionServerThread&gt; liveServers = new ArrayList&lt;&gt;();<a name="line.256"></a>
-<span class="sourceLineNo">257</span>    List&lt;RegionServerThread&gt; list = getRegionServers();<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    for (JVMClusterUtil.RegionServerThread rst: list) {<a name="line.258"></a>
-<span class="sourceLineNo">259</span>      if (rst.isAlive()) liveServers.add(rst);<a name="line.259"></a>
-<span class="sourceLineNo">260</span>      else LOG.info("Not alive " + rst.getName());<a name="line.260"></a>
-<span class="sourceLineNo">261</span>    }<a name="line.261"></a>
-<span class="sourceLineNo">262</span>    return liveServers;<a name="line.262"></a>
-<span class="sourceLineNo">263</span>  }<a name="line.263"></a>
-<span class="sourceLineNo">264</span><a name="line.264"></a>
-<span class="sourceLineNo">265</span>  /**<a name="line.265"></a>
-<span class="sourceLineNo">266</span>   * @return the Configuration used by this LocalHBaseCluster<a name="line.266"></a>
-<span class="sourceLineNo">267</span>   */<a name="line.267"></a>
-<span class="sourceLineNo">268</span>  public Configuration getConfiguration() {<a name="line.268"></a>
-<span class="sourceLineNo">269</span>    return this.conf;<a name="line.269"></a>
-<span class="sourceLineNo">270</span>  }<a name="line.270"></a>
-<span class="sourceLineNo">271</span><a name="line.271"></a>
-<span class="sourceLineNo">272</span>  /**<a name="line.272"></a>
-<span class="sourceLineNo">273</span>   * Wait for the specified region server to stop. Removes this thread from list of running threads.<a name="line.273"></a>
-<span class="sourceLineNo">274</span>   * @return Name of region server that just went down.<a name="line.274"></a>
-<span class="sourceLineNo">275</span>   */<a name="line.275"></a>
-<span class="sourceLineNo">276</span>  public String waitOnRegionServer(int serverNumber) {<a name="line.276"></a>
-<span class="sourceLineNo">277</span>    JVMClusterUtil.RegionServerThread regionServerThread = this.regionThreads.get(serverNumber);<a name="line.277"></a>
-<span class="sourceLineNo">278</span>    return waitOnRegionServer(regionServerThread);<a name="line.278"></a>
-<span class="sourceLineNo">279</span>  }<a name="line.279"></a>
-<span class="sourceLineNo">280</span><a name="line.280"></a>
-<span class="sourceLineNo">281</span>  /**<a name="line.281"></a>
-<span class="sourceLineNo">282</span>   * Wait for the specified region server to stop. Removes this thread from list of running threads.<a name="line.282"></a>
-<span class="sourceLineNo">283</span>   * @return Name of region server that just went down.<a name="line.283"></a>
-<span class="sourceLineNo">284</span>   */<a name="line.284"></a>
-<span class="sourceLineNo">285</span>  public String waitOnRegionServer(JVMClusterUtil.RegionServerThread rst) {<a name="line.285"></a>
-<span class="sourceLineNo">286</span>    while (rst.isAlive()) {<a name="line.286"></a>
-<span class="sourceLineNo">287</span>      try {<a name="line.287"></a>
-<span class="sourceLineNo">288</span>        LOG.info("Waiting on " + rst.getRegionServer().toString());<a name="line.288"></a>
-<span class="sourceLineNo">289</span>        rst.join();<a name="line.289"></a>
-<span class="sourceLineNo">290</span>      } catch (InterruptedException e) {<a name="line.290"></a>
-<span class="sourceLineNo">291</span>        e.printStackTrace();<a name="line.291"></a>
-<span class="sourceLineNo">292</span>      }<a name="line.292"></a>
-<span class="sourceLineNo">293</span>    }<a name="line.293"></a>
-<span class="sourceLineNo">294</span>    regionThreads.remove(rst);<a name="line.294"></a>
-<span class="sourceLineNo">295</span>    return rst.getName();<a name="line.295"></a>
-<span class="sourceLineNo">296</span>  }<a name="line.296"></a>
-<span class="sourceLineNo">297</span><a name="line.297"></a>
-<span class="sourceLineNo">298</span>  /**<a name="line.298"></a>
-<span class="sourceLineNo">299</span>   * @return the HMaster thread<a name="line.299"></a>
-<span class="sourceLineNo">300</span>   */<a name="line.300"></a>
-<span class="sourceLineNo">301</span>  public HMaster getMaster(int serverNumber) {<a name="line.301"></a>
-<span class="sourceLineNo">302</span>    return masterThreads.get(serverNumber).getMaster();<a name="line.302"></a>
-<span class="sourceLineNo">303</span>  }<a name="line.303"></a>
-<span class="sourceLineNo">304</span><a name="line.304"></a>
-<span class="sourceLineNo">305</span>  /**<a name="line.305"></a>
-<span class="sourceLineNo">306</span>   * Gets the current active master, if available.  If no active master, returns<a name="line.306"></a>
-<span class="sourceLineNo">307</span>   * null.<a name="line.307"></a>
-<span class="sourceLineNo">308</span>   * @return the HMaster for the active master<a name="line.308"></a>
-<span class="sourceLineNo">309</span>   */<a name="line.309"></a>
-<span class="sourceLineNo">310</span>  public HMaster getActiveMaster() {<a name="line.310"></a>
-<span class="sourceLineNo">311</span>    for (JVMClusterUtil.MasterThread mt : masterThreads) {<a name="line.311"></a>
-<span class="sourceLineNo">312</span>      // Ensure that the current active master is not stopped.<a name="line.312"></a>
-<span class="sourceLineNo">313</span>      // We don't want to return a stopping master as an active master.<a name="line.313"></a>
-<span class="sourceLineNo">314</span>      if (mt.getMaster().isActiveMaster()  &amp;&amp; !mt.getMaster().isStopped()) {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>        return mt.getMaster();<a name="line.315"></a>
-<span class="sourceLineNo">316</span>      }<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    }<a name="line.317"></a>
-<span class="sourceLineNo">318</span>    return null;<a name="line.318"></a>
-<span class="sourceLineNo">319</span>  }<a name="line.319"></a>
-<span class="sourceLineNo">320</span><a name="line.320"></a>
-<span class="sourceLineNo">321</span>  /**<a name="line.321"></a>
-<span class="sourceLineNo">322</span>   * @return Read-only list of master threads.<a name="line.322"></a>
-<span class="sourceLineNo">323</span>   */<a name="line.323"></a>
-<span class="sourceLineNo">324</span>  public List&lt;JVMClusterUtil.MasterThread&gt; getMasters() {<a name="line.324"></a>
-<span class="sourceLineNo">325</span>    return Collections.unmodifiableList(this.masterThreads);<a name="line.325"></a>
-<span class="sourceLineNo">326</span>  }<a name="line.326"></a>
-<span class="sourceLineNo">327</span><a name="line.327"></a>
-<span class="sourceLineNo">328</span>  /**<a name="line.328"></a>
-<span class="sourceLineNo">329</span>   * @return List of running master servers (Some servers may have been killed<a name="line.329"></a>
-<span class="sourceLineNo">330</span>   * or aborted during lifetime of cluster; these servers are not included in<a name="line.330"></a>
-<span class="sourceLineNo">331</span>   * this list).<a name="line.331"></a>
-<span class="sourceLineNo">332</span>   */<a name="line.332"></a>
-<span class="sourceLineNo">333</span>  public List&lt;JVMClusterUtil.MasterThread&gt; getLiveMasters() {<a name="line.333"></a>
-<span class="sourceLineNo">334</span>    List&lt;JVMClusterUtil.MasterThread&gt; liveServers = new ArrayList&lt;&gt;();<a name="line.334"></a>
-<span class="sourceLineNo">335</span>    List&lt;JVMClusterUtil.MasterThread&gt; list = getMasters();<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    for (JVMClusterUtil.MasterThread mt: list) {<a name="line.336"></a>
-<span class="sourceLineNo">337</span>      if (mt.isAlive()) {<a name="line.337"></a>
-<span class="sourceLineNo">338</span>        liveServers.add(mt);<a name="line.338"></a>
-<span class="sourceLineNo">339</span>      }<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    }<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    return liveServers;<a name="line.341"></a>
-<span class="sourceLineNo">342</span>  }<a name="line.342"></a>
-<span class="sourceLineNo">343</span><a name="line.343"></a>
-<span class="sourceLineNo">344</span>  /**<a name="line.344"></a>
-<span class="sourceLineNo">345</span>   * Wait for the specified master to stop. Removes this thread from list of running threads.<a name="line.345"></a>
-<span class="sourceLineNo">346</span>   * @return Name of master that just went down.<a name="line.346"></a>
-<span class="sourceLineNo">347</span>   */<a name="line.347"></a>
-<span class="sourceLineNo">348</span>  public String waitOnMaster(int serverNumber) {<a name="line.348"></a>
-<span class="sourceLineNo">349</span>    JVMClusterUtil.MasterThread masterThread = this.masterThreads.get(serverNumber);<a name="line.349"></a>
-<span class="sourceLineNo">350</span>    return waitOnMaster(masterThread);<a name="line.350"></a>
-<span class="sourceLineNo">351</span>  }<a name="line.351"></a>
-<span class="sourceLineNo">352</span><a name="line.352"></a>
-<span class="sourceLineNo">353</span>  /**<a name="line.353"></a>
-<span class="sourceLineNo">354</span>   * Wait for the specified master to stop. Removes this thread from list of running threads.<a name="line.354"></a>
-<span class="sourceLineNo">355</span>   * @return Name of master that just went down.<a name="line.355"></a>
-<span class="sourceLineNo">356</span>   */<a name="line.356"></a>
-<span class="sourceLineNo">357</span>  public String waitOnMaster(JVMClusterUtil.MasterThread masterThread) {<a name="line.357"></a>
-<span class="sourceLineNo">358</span>    while (masterThread.isAlive()) {<a name="line.358"></a>
-<span class="sourceLineNo">359</span>      try {<a name="line.359"></a>
-<span class="sourceLineNo">360</span>        LOG.info("Waiting on " + masterThread.getMaster().getServerName().toString());<a name="line.360"></a>
-<span class="sourceLineNo">361</span>        masterThread.join();<a name="line.361"></a>
-<span class="sourceLineNo">362</span>      } catch (InterruptedException e) {<a name="line.362"></a>
-<span class="sourceLineNo">363</span>        e.printStackTrace();<a name="line.363"></a>
-<span class="sourceLineNo">364</span>      }<a name="line.364"></a>
-<span class="sourceLineNo">365</span>    }<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    masterThreads.remove(masterThread);<a name="line.366"></a>
-<span class="sourceLineNo">367</span>    return masterThread.getName();<a name="line.367"></a>
-<span class="sourceLineNo">368</span>  }<a name="line.368"></a>
-<span class="sourceLineNo">369</span><a name="line.369"></a>
-<span class="sourceLineNo">370</span>  /**<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   * Wait for Mini HBase Cluster to shut down.<a name="line.371"></a>
-<span class="sourceLineNo">372</span>   * Presumes you've already called {@link #shutdown()}.<a name="line.372"></a>
-<span class="sourceLineNo">373</span>   */<a name="line.373"></a>
-<span class="sourceLineNo">374</span>  public void join() {<a name="line.374"></a>
-<span class="sourceLineNo">375</span>    if (this.regionThreads != null) {<a name="line.375"></a>
-<span class="sourceLineNo">376</span>      for(Thread t: this.regionThreads) {<a name="line.376"></a>
-<span class="sourceLineNo">377</span>        if (t.isAlive()) {<a name="line.377"></a>
-<span class="sourceLineNo">378</span>          try {<a name="line.378"></a>
-<span class="sourceLineNo">379</span>            Threads.threadDumpingIsAlive(t);<a name="line.379"></a>
-<span class="sourceLineNo">380</span>          } catch (InterruptedException e) {<a name="line.380"></a>
-<span class="sourceLineNo">381</span>            LOG.debug("Interrupted", e);<a name="line.381"></a>
-<span class="sourceLineNo">382</span>          }<a name="line.382"></a>
-<span class="sourceLineNo">383</span>        }<a name="line.383"></a>
-<span class="sourceLineNo">384</span>      }<a name="line.384"></a>
-<span class="sourceLineNo">385</span>    }<a name="line.385"></a>
-<span class="sourceLineNo">386</span>    if (this.masterThreads != null) {<a name="line.386"></a>
-<span class="sourceLineNo">387</span>      for (Thread t : this.masterThreads) {<a name="line.387"></a>
-<span class="sourceLineNo">388</span>        if (t.isAlive()) {<a name="line.388"></a>
-<span class="sourceLineNo">389</span>          try {<a name="line.389"></a>
-<span class="sourceLineNo">390</span>            Threads.threadDumpingIsAlive(t);<a name="line.390"></a>
-<span class="sourceLineNo">391</span>          } catch (InterruptedException e) {<a name="line.391"></a>
-<span class="sourceLineNo">392</span>            LOG.debug("Interrupted", e);<a name="line.392"></a>
-<span class="sourceLineNo">393</span>          }<a name="line.393"></a>
-<span class="sourceLineNo">394</span>        }<a name="line.394"></a>
-<span class="sourceLineNo">395</span>      }<a name="line.395"></a>
-<span class="sourceLineNo">396</span>    }<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  }<a name="line.397"></a>
-<span class="sourceLineNo">398</span><a name="line.398"></a>
-<span class="sourceLineNo">399</span>  /**<a name="line.399"></a>
-<span class="sourceLineNo">400</span>   * Start the cluster.<a name="line.400"></a>
-<span class="sourceLineNo">401</span>   */<a name="line.401"></a>
-<span class="sourceLineNo">402</span>  public void startup() throws IOException {<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    JVMClusterUtil.startup(this.masterThreads, this.regionThreads);<a name="line.403"></a>
-<span class="sourceLineNo">404</span>  }<a name="line.404"></a>
-<span class="sourceLineNo">405</span><a name="line.405"></a>
-<span class="sourceLineNo">406</span>  /**<a name="line.406"></a>
-<span class="sourceLineNo">407</span>   * Shut down the mini HBase cluster<a name="line.407"></a>
-<span class="sourceLineNo">408</span>   */<a name="line.408"></a>
-<span class="sourceLineNo">409</span>  public void shutdown() {<a name="line.409"></a>
-<span class="sourceLineNo">410</span>    JVMClusterUtil.shutdown(this.masterThreads, this.regionThreads);<a name="line.410"></a>
-<span class="sourceLineNo">411</span>  }<a name="line.411"></a>
-<span class="sourceLineNo">412</span><a name="line.412"></a>
-<span class="sourceLineNo">413</span>  /**<a name="line.413"></a>
-<span class="sourceLineNo">414</span>   * @param c Configuration to check.<a name="line.414"></a>
-<span class="sourceLineNo">415</span>   * @return True if a 'local' address in hbase.master value.<a name="line.415"></a>
-<span class="sourceLineNo">416</span>   */<a name="line.416"></a>
-<span class="sourceLineNo">417</span>  public static boolean isLocal(final Configuration c) {<a name="line.417"></a>
-<span class="sourceLineNo">418</span>    boolean mode = c.getBoolean(HConstants.CLUSTER_DISTRIBUTED, HConstants.DEFAULT_CLUSTER_DISTRIBUTED);<a name="line.418"></a>
-<span class="sourceLineNo">419</span>    return(mode == HConstants.CLUSTER_IS_LOCAL);<a name="line.419"></a>
-<span class="sourceLineNo">420</span>  }<a name="line.420"></a>
-<span class="sourceLineNo">421</span><a name="line.421"></a>
-<span class="sourceLineNo">422</span>  /**<a name="line.422"></a>
-<span class="sourceLineNo">423</span>   * Test things basically work.<a name="line.423"></a>
-<span class="sourceLineNo">424</span>   * @param args<a name="line.424"></a>
-<span class="sourceLineNo">425</span>   * @throws IOException<a name="line.425"></a>
-<span class="sourceLineNo">426</span>   */<a name="line.426"></a>
-<span class="sourceLineNo">427</span>  public static void main(String[] args) throws IOException {<a name="line.427"></a>
-<span class="sourceLineNo">428</span>    Configuration conf = HBaseConfiguration.create();<a name="line.428"></a>
-<span class="sourceLineNo">429</span>    LocalHBaseCluster cluster = new LocalHBaseCluster(conf);<a name="line.429"></a>
-<span class="sourceLineNo">430</span>    cluster.startup();<a name="line.430"></a>
-<span class="sourceLineNo">431</span>    Connection connection = ConnectionFactory.createConnection(conf);<a name="line.431"></a>
-<span class="sourceLineNo">432</span>    Admin admin = connection.getAdmin();<a name="line.432"></a>
-<span class="sourceLineNo">433</span>    try {<a name="line.433"></a>
-<span class="sourceLineNo">434</span>      HTableDescriptor htd =<a name="line.434"></a>
-<span class="sourceLineNo">435</span>        new HTableDescriptor(TableName.valueOf(cluster.getClass().getName()));<a name="line.435"></a>
-<span class="sourceLineNo">436</span>      admin.createTable(htd);<a name="line.436"></a>
-<span class="sourceLineNo">437</span>    } finally {<a name="line.437"></a>
-<span class="sourceLineNo">438</span>      admin.close();<a name="line.438"></a>
-<span class="sourceLineNo">439</span>    }<a name="line.439"></a>
-<span class="sourceLineNo">440</span>    connection.close();<a name="line.440"></a>
-<span class="sourceLineNo">441</span>    cluster.shutdown();<a name="line.441"></a>
-<span class="sourceLineNo">442</span>  }<a name="line.442"></a>
-<span class="sourceLineNo">443</span>}<a name="line.443"></a>
+<span class="sourceLineNo">223</span>  /**<a name="line.223"></a>
+<span class="sourceLineNo">224</span>   * @param serverNumber<a name="line.224"></a>
+<span class="sourceLineNo">225</span>   * @return region server<a name="line.225"></a>
+<span class="sourceLineNo">226</span>   */<a name="line.226"></a>
+<span class="sourceLineNo">227</span>  public HRegionServer getRegionServer(int serverNumber) {<a name="line.227"></a>
+<span class="sourceLineNo">228</span>    return regionThreads.get(serverNumber).getRegionServer();<a name="line.228"></a>
+<span class="sourceLineNo">229</span>  }<a name="line.229"></a>
+<span class="sourceLineNo">230</span><a name="line.230"></a>
+<span class="sourceLineNo">231</span>  /**<a name="line.231"></a>
+<span class="sourceLineNo">232</span>   * @return Read-only list of region server threads.<a name="line.232"></a>
+<span class="sourceLineNo">233</span>   */<a name="line.233"></a>
+<span class="sourceLineNo">234</span>  public List&lt;JVMClusterUtil.RegionServerThread&gt; getRegionServers() {<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    return Collections.unmodifiableList(this.regionThreads);<a name="line.235"></a>
+<span class="sourceLineNo">236</span>  }<a name="line.236"></a>
+<span class="sourceLineNo">237</span><a name="line.237"></a>
+<span class="sourceLineNo">238</span>  /**<a name="line.238"></a>
+<span class="sourceLineNo">239</span>   * @return List of running servers (Some servers may have been killed or<a name="line.239"></a>
+<span class="sourceLineNo">240</span>   * aborted during lifetime of cluster; these servers are not included in this<a name="line.240"></a>
+<span class="sourceLineNo">241</span>   * list).<a name="line.241"></a>
+<span class="sourceLineNo">242</span>   */<a name="line.242"></a>
+<span class="sourceLineNo">243</span>  public List&lt;JVMClusterUtil.RegionServerThread&gt; getLiveRegionServers() {<a name="line.243"></a>
+<span class="sourceLineNo">244</span>    List&lt;JVMClusterUtil.RegionServerThread&gt; liveServers = new ArrayList&lt;&gt;();<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    List&lt;RegionServerThread&gt; list = getRegionServers();<a name="line.245"></a>
+<span class="sourceLineNo">246</span>    for (JVMClusterUtil.RegionServerThread rst: list) {<a name="line.246"></a>
+<span class="sourceLineNo">247</span>      if (rst.isAlive()) liveServers.add(rst);<a name="line.247"></a>
+<span class="sourceLineNo">248</span>      else LOG.info("Not alive " + rst.getName());<a name="line.248"></a>
+<span class="sourceLineNo">249</span>    }<a name="line.249"></a>
+<span class="sourceLineNo">250</span>    return liveServers;<a name="line.250"></a>
+<span class="sourceLineNo">251</span>  }<a name="line.251"></a>
+<span class="sourceLineNo">252</span><a name="line.252"></a>
+<span class="sourceLineNo">253</span>  /**<a name="line.253"></a>
+<span class="sourceLineNo">254</span>   * @return the Configuration used by this LocalHBaseCluster<a name="line.254"></a>
+<span class="sourceLineNo">255</span>   */<a name="line.255"></a>
+<span class="sourceLineNo">256</span>  public Configuration getConfiguration() {<a name="line.256"></a>
+<span class="sourceLineNo">257</span>    return this.conf;<a name="line.257"></a>
+<span class="sourceLineNo">258</span>  }<a name="line.258"></a>
+<span class="sourceLineNo">259</span><a name="line.259"></a>
+<span class="sourceLineNo">260</span>  /**<a name="line.260"></a>
+<span class="sourceLineNo">261</span>   * Wait for the specified region server to stop. Removes this thread from list of running threads.<a name="line.261"></a>
+<span class="sourceLineNo">262</span>   * @return Name of region server that just went down.<a name="line.262"></a>
+<span class="sourceLineNo">263</span>   */<a name="line.263"></a>
+<span class="sourceLineNo">264</span>  public String waitOnRegionServer(int serverNumber) {<a name="line.264"></a>
+<span class="sourceLineNo">265</span>    JVMClusterUtil.RegionServerThread regionServerThread = this.regionThreads.get(serverNumber);<a name="line.265"></a>
+<span class="sourceLineNo">266</span>    return waitOnRegionServer(regionServerThread);<a name="line.266"></a>
+<span class="sourceLineNo">267</span>  }<a name="line.267"></a>
+<span class="sourceLineNo">268</span><a name="line.268"></a>
+<span class="sourceLineNo">269</span>  /**<a name="line.269"></a>
+<span class="sourceLineNo">270</span>   * Wait for the specified region server to stop. Removes this thread from list of running threads.<a name="line.270"></a>
+<span class="sourceLineNo">271</span>   * @return Name of region server that just went down.<a name="line.271"></a>
+<span class="sourceLineNo">272</span>   */<a name="line.272"></a>
+<span class="sourceLineNo">273</span>  public String waitOnRegionServer(JVMClusterUtil.RegionServerThread rst) {<a name="line.273"></a>
+<span class="sourceLineNo">274</span>    while (rst.isAlive()) {<a name="line.274"></a>
+<span class="sourceLineNo">275</span>      try {<a name="line.275"></a>
+<span class="sourceLineNo">276</span>        LOG.info("Waiting on " + rst.getRegionServer().toString());<a name="line.276"></a>
+<span class="sourceLineNo">277</span>        rst.join();<a name="line.277"></a>
+<span class="sourceLineNo">278</span>      } catch (InterruptedException e) {<a name="line.278"></a>
+<span class="sourceLineNo">279</span>        e.printStackTrace();<a name="line.279"></a>
+<span class="sourceLineNo">280</span>      }<a name="line.280"></a>
+<span class="sourceLineNo">281</span>    }<a name="line.281"></a>
+<span class="sourceLineNo">282</span>    regionThreads.remove(rst);<a name="line.282"></a>
+<span class="sourceLineNo">283</span>    return rst.getName();<a name="line.283"></a>
+<span class="sourceLineNo">284</span>  }<a name="line.284"></a>
+<span class="sourceLineNo">285</span><a name="line.285"></a>
+<span class="sourceLineNo">286</span>  /**<a name="line.286"></a>
+<span class="sourceLineNo">287</span>   * @return the HMaster thread<a name="line.287"></a>
+<span class="sourceLineNo">288</span>   */<a name="line.288"></a>
+<span class="sourceLineNo">289</span>  public HMaster getMaster(int serverNumber) {<a name="line.289"></a>
+<span class="sourceLineNo">290</span>    return masterThreads.get(serverNumber).getMaster();<a name="line.290"></a>
+<span class="sourceLineNo">291</span>  }<a name="line.291"></a>
+<span class="sourceLineNo">292</span><a name="line.292"></a>
+<span class="sourceLineNo">293</span>  /**<a name="line.293"></a>
+<span class="sourceLineNo">294</span>   * Gets the current active master, if available.  If no active master, returns<a name="line.294"></a>
+<span class="sourceLineNo">295</span>   * null.<a name="line.295"></a>
+<span class="sourceLineNo">296</span>   * @return the HMaster for the active master<a name="line.296"></a>
+<span class="sourceLineNo">297</span>   */<a name="line.297"></a>
+<span class="sourceLineNo">298</span>  public HMaster getActiveMaster() {<a name="line.298"></a>
+<span class="sourceLineNo">299</span>    for (JVMClusterUtil.MasterThread mt : masterThreads) {<a name="line.299"></a>
+<span class="sourceLineNo">300</span>      // Ensure that the current active master is not stopped.<a name="line.300"></a>
+<span class="sourceLineNo">301</span>      // We don't want to return a stopping master as an active master.<a name="line.301"></a>
+<span class="sourceLineNo">302</span>      if (mt.getMaster().isActiveMaster()  &amp;&amp; !mt.getMaster().isStopped()) {<a name="line.302"></a>
+<span class="sourceLineNo">303</span>        return mt.getMaster();<a name="line.303"></a>
+<span class="sourceLineNo">304</span>      }<a name="line.304"></a>
+<span class="sourceLineNo">305</span>    }<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    return null;<a name="line.306"></a>
+<span class="sourceLineNo">307</span>  }<a name="line.307"></a>
+<span class="sourceLineNo">308</span><a name="line.308"></a>
+<span class="sourceLineNo">309</span>  /**<a name="line.309"></a>
+<span class="sourceLineNo">310</span>   * @return Read-only list of master threads.<a name="line.310"></a>
+<span class="sourceLineNo">311</span>   */<a name="line.311"></a>
+<span class="sourceLineNo">312</span>  public List&lt;JVMClusterUtil.MasterThread&gt; getMasters() {<a name="line.312"></a>
+<span class="sourceLineNo">313</span>    return Collections.unmodifiableList(this.masterThreads);<a name="line.313"></a>
+<span class="sourceLineNo">314</span>  }<a name="line.314"></a>
+<span class="sourceLineNo">315</span><a name="line.315"></a>
+<span class="sourceLineNo">316</span>  /**<a name="line.316"></a>
+<span class="sourceLineNo">317</span>   * @return List of running master servers (Some servers may have been killed<a name="line.317"></a>
+<span class="sourceLineNo">318</span>   * or aborted during lifetime of cluster; these servers are not included in<a name="line.318"></a>
+<span class="sourceLineNo">319</span>   * this list).<a name="line.319"></a>
+<span class="sourceLineNo">320</span>   */<a name="line.320"></a>
+<span class="sourceLineNo">321</span>  public List&lt;JVMClusterUtil.MasterThread&gt; getLiveMasters() {<a name="line.321"></a>
+<span class="sourceLineNo">322</span>    List&lt;JVMClusterUtil.MasterThread&gt; liveServers = new ArrayList&lt;&gt;();<a name="line.322"></a>
+<span class="sourceLineNo">323</span>    List&lt;JVMClusterUtil.MasterThread&gt; list = getMasters();<a name="line.323"></a>
+<span class="sourceLineNo">324</span>    for (JVMClusterUtil.MasterThread mt: list) {<a name="line.324"></a>
+<span class="sourceLineNo">325</span>      if (mt.isAlive()) {<a name="line.325"></a>
+<span class="sourceLineNo">326</span>        liveServers.add(mt);<a name="line.326"></a>
+<span class="sourceLineNo">327</span>      }<a name="line.327"></a>
+<span class="sourceLineNo">328</span>    }<a name="line.328"></a>
+<span class="sourceLineNo">329</span>    return liveServers;<a name="line.329"></a>
+<span class="sourceLineNo">330</span>  }<a name="line.330"></a>
+<span class="sourceLineNo">331</span><a name="line.331"></a>
+<span class="sourceLineNo">332</span>  /**<a name="line.332"></a>
+<span class="sourceLineNo">333</span>   * Wait for the specified master to stop. Removes this thread from list of running threads.<a name="line.333"></a>
+<span class="sourceLineNo">334</span>   * @return Name of master that just went down.<a name="line.334"></a>
+<span class="sourceLineNo">335</span>   */<a name="line.335"></a>
+<span class="sourceLineNo">336</span>  public String waitOnMaster(int serverNumber) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>    JVMClusterUtil.MasterThread masterThread = this.masterThreads.get(serverNumber);<a name="line.337"></a>
+<span class="sourceLineNo">338</span>    return waitOnMaster(masterThread);<a name="line.338"></a>
+<span class="sourceLineNo">339</span>  }<a name="line.339"></a>
+<span class="sourceLineNo">340</span><a name="line.340"></a>
+<span class="sourceLineNo">341</span>  /**<a name="line.341"></a>
+<span class="sourceLineNo">342</span>   * Wait for the specified master to stop. Removes this thread from list of running threads.<a name="line.342"></a>
+<span class="sourceLineNo">343</span>   * @return Name of master that just went down.<a name="line.343"></a>
+<span class="sourceLineNo">344</span>   */<a name="line.344"></a>
+<span class="sourceLineNo">345</span>  public String waitOnMaster(JVMClusterUtil.MasterThread masterThread) {<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    while (masterThread.isAlive()) {<a name="line.346"></a>
+<span class="sourceLineNo">347</span>      try {<a name="line.347"></a>
+<span class="sourceLineNo">348</span>        LOG.info("Waiting on " + masterThread.getMaster().getServerName().toString());<a name="line.348"></a>
+<span class="sourceLineNo">349</span>        masterThread.join();<a name="line.349"></a>
+<span class="sourceLineNo">350</span>      } catch (InterruptedException e) {<a name="line.350"></a>
+<span class="sourceLineNo">351</span>        e.printStackTrace();<a name="line.351"></a>
+<span class="sourceLineNo">352</span>      }<a name="line.352"></a>
+<span class="sourceLineNo">353</span>    }<a name="line.353"></a>
+<span class="sourceLineNo">354</span>    masterThreads.remove(masterThread);<a name="line.354"></a>
+<span class="sourceLineNo">355</span>    return masterThread.getName();<a name="line.355"></a>
+<span class="sourceLineNo">356</span>  }<a name="line.356"></a>
+<span class="sourceLineNo">357</span><a name="line.357"></a>
+<span class="sourceLineNo">358</span>  /**<a name="line.358"></a>
+<span class="sourceLineNo">359</span>   * Wait for Mini HBase Cluster to shut down.<a name="line.359"></a>
+<span class="sourceLineNo">360</span>   * Presumes you've already called {@link #shutdown()}.<a name="line.360"></a>
+<span class="sourceLineNo">361</span>   */<a name="line.361"></a>
+<span class="sourceLineNo">362</span>  public void join() {<a name="line.362"></a>
+<span class="sourceLineNo">363</span>    if (this.regionThreads != null) {<a name="line.363"></a>
+<span class="sourceLineNo">364</span>      for(Thread t: this.regionThreads) {<a name="line.364"></a>
+<span class="sourceLineNo">365</span>        if (t.isAlive()) {<a name="line.365"></a>
+<span class="sourceLineNo">366</span>          try {<a name="line.366"></a>
+<span class="sourceLineNo">367</span>            Threads.threadDumpingIsAlive(t);<a name="line.367"></a>
+<span class="sourceLineNo">368</span>          } catch (InterruptedException e) {<a name="line.368"></a>
+<span class="sourceLineNo">369</span>            LOG.debug("Interrupted", e);<a name="line.369"></a>
+<span class="sourceLineNo">370</span>          }<a name="line.370"></a>
+<span class="sourceLineNo">371</span>        }<a name="line.371"></a>
+<span class="sourceLineNo">372</span>      }<a name="line.372"></a>
+<span class="sourceLineNo">373</span>    }<a name="line.373"></a>
+<span class="sourceLineNo">374</span>    if (this.masterThreads != null) {<a name="line.374"></a>
+<span class="sourceLineNo">375</span>      for (Thread t : this.masterThreads) {<a name="line.375"></a>
+<span class="sourceLineNo">376</span>        if (t.isAlive()) {<a name="line.376"></a>
+<span class="sourceLineNo">377</span>          try {<a name="line.377"></a>
+<span class="sourceLineNo">378</span>            Threads.threadDumpingIsAlive(t);<a name="line.378"></a>
+<span class="sourceLineNo">379</span>          } catch (InterruptedException e) {<a name="line.379"></a>
+<span class="sourceLineNo">380</span>            LOG.debug("Interrupted", e);<a name="line.380"></a>
+<span class="sourceLineNo">381</span>          }<a name="line.381"></a>
+<span class="sourceLineNo">382</span>        }<a name="line.382"></a>
+<span class="sourceLineNo">383</span>      }<a name="line.383"></a>
+<span class="sourceLineNo">384</span>    }<a name="line.384"></a>
+<span class="sourceLineNo">385</span>  }<a name="line.385"></a>
+<span class="sourceLineNo">386</span><a name="line.386"></a>
+<span class="sourceLineNo">387</span>  /**<a name="line.387"></a>
+<span class="sourceLineNo">388</span>   * Start the cluster.<a name="line.388"></a>
+<span class="sourceLineNo">389</span>   */<a name="line.389"></a>
+<span class="sourceLineNo">390</span>  public void startup() throws IOException {<a name="line.390"></a>
+<span class="sourceLineNo">391</span>    JVMClusterUtil.startup(this.masterThreads, this.regionThreads);<a name="line.391"></a>
+<span class="sourceLineNo">392</span>  }<a name="line.392"></a>
+<span class="sourceLineNo">393</span><a name="line.393"></a>
+<span class="sourceLineNo">394</span>  /**<a name="line.394"></a>
+<span class="sourceLineNo">395</span>   * Shut down the mini HBase cluster<a name="line.395"></a>
+<span class="sourceLineNo">396</span>   */<a name="line.396"></a>
+<span class="sourceLineNo">397</span>  public void shutdown() {<a name="line.397"></a>
+<span class="sourceLineNo">398</span>    JVMClusterUtil.shutdown(this.masterThreads, this.regionThreads);<a name="line.398"></a>
+<span class="sourceLineNo">399</span>  }<a name="line.399"></a>
+<span class="sourceLineNo">400</span><a name="line.400"></a>
+<span class="sourceLineNo">401</span>  /**<a name="line.401"></a>
+<span class="sourceLineNo">402</span>   * @param c Configuration to check.<a name="line.402"></a>
+<span class="sourceLineNo">403</span>   * @return True if a 'local' address in hbase.master value.<a name="line.403"></a>
+<span class="sourceLineNo">404</span>   */<a name="line.404"></a>
+<span class="sourceLineNo">405</span>  public static boolean isLocal(final Configuration c) {<a name="line.405"></a>
+<span class="sourceLineNo">406</span>    boolean mode = c.getBoolean(HConstants.CLUSTER_DISTRIBUTED, HConstants.DEFAULT_CLUSTER_DISTRIBUTED);<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    return(mode == HConstants.CLUSTER_IS_LOCAL);<a name="line.407"></a>
+<span class="sourceLineNo">408</span>  }<a name="line.408"></a>
+<span class="sourceLineNo">409</span><a name="line.409"></a>
+<span class="sourceLineNo">410</span>  /**<a name="line.410"></a>
+<span class="sourceLineNo">411</span>   * Test things basically work.<a name="line.411"></a>
+<span class="sourceLineNo">412</span>   * @param args<a name="line.412"></a>
+<span class="sourceLineNo">413</span>   * @throws IOException<a name="line.413"></a>
+<span class="sourceLineNo">414</span>   */<a name="line.414"></a>
+<span class="sourceLineNo">415</span>  public static void main(String[] args) throws IOException {<a name="line.415"></a>
+<span class="sourceLineNo">416</span>    Configuration conf = HBaseConfiguration.create();<a name="line.416"></a>
+<span class="sourceLineNo">417</span>    LocalHBaseCluster cluster = new LocalHBaseCluster(conf);<a name="line.417"></a>
+<span class="sourceLineNo">418</span>    cluster.startup();<a name="line.418"></a>
+<span class="sourceLineNo">419</span>    Connection connection = ConnectionFactory.createConnection(conf);<a name="line.419"></a>
+<span class="sourceLineNo">420</span>    Admin admin = connection.getAdmin();<a name="line.420"></a>
+<span class="sourceLineNo">421</span>    try {<a name="line.421"></a>
+<span class="sourceLineNo">422</span>      HTableDescriptor htd =<a name="line.422"></a>
+<span class="sourceLineNo">423</span>        new HTableDescriptor(TableName.valueOf(cluster.getClass().getName()));<a name="line.423"></a>
+<span class="sourceLineNo">424</span>      admin.createTable(htd);<a name="line.424"></a>
+<span class="sourceLineNo">425</span>    } finally {<a name="line.425"></a>
+<span class="sourceLineNo">426</span>      admin.close();<a name="line.426"></a>
+<span class="sourceLineNo">427</span>    }<a name="line.427"></a>
+<span class="sourceLineNo">428</span>    connection.close();<a name="line.428"></a>
+<span class="sourceLineNo">429</span>    cluster.shutdown();<a name="line.429"></a>
+<span class="sourceLineNo">430</span>  }<a name="line.430"></a>
+<span class="sourceLineNo">431</span>}<a name="line.431"></a>
 
 
 


Mime
View raw message