hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [04/51] [partial] hbase-site git commit: Published site at .
Date Sat, 11 Nov 2017 16:12:35 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/809180c4/devapidocs/src-html/org/apache/hadoop/hbase/client/HBaseAdmin.CreateTableFuture.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/HBaseAdmin.CreateTableFuture.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/HBaseAdmin.CreateTableFuture.html
index 6e18b1c..774bdc9 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/HBaseAdmin.CreateTableFuture.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/HBaseAdmin.CreateTableFuture.html
@@ -26,93 +26,93 @@
 <span class="sourceLineNo">018</span> */<a name="line.18"></a>
 <span class="sourceLineNo">019</span>package org.apache.hadoop.hbase.client;<a name="line.19"></a>
 <span class="sourceLineNo">020</span><a name="line.20"></a>
-<span class="sourceLineNo">021</span>import java.io.Closeable;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import java.io.IOException;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import java.io.InterruptedIOException;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import java.util.ArrayList;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import java.util.Arrays;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import java.util.Collection;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import java.util.EnumSet;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>import java.util.HashMap;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import java.util.Iterator;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import java.util.LinkedList;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import java.util.List;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>import java.util.Map;<a name="line.32"></a>
-<span class="sourceLineNo">033</span>import java.util.Set;<a name="line.33"></a>
-<span class="sourceLineNo">034</span>import java.util.TreeMap;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import java.util.concurrent.Callable;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import java.util.concurrent.ExecutionException;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import java.util.concurrent.Future;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import java.util.concurrent.TimeUnit;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import java.util.concurrent.TimeoutException;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import java.util.concurrent.atomic.AtomicInteger;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import java.util.concurrent.atomic.AtomicReference;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import java.util.regex.Pattern;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import java.util.stream.Collectors;<a name="line.43"></a>
-<span class="sourceLineNo">044</span><a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.commons.logging.Log;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.commons.logging.LogFactory;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.conf.Configuration;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.Abortable;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.CacheEvictionStats;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.CacheEvictionStatsBuilder;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.ClusterStatus;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.ClusterStatus.Option;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.CompoundConfiguration;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.DoNotRetryIOException;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.HBaseConfiguration;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.HColumnDescriptor;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.HConstants;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>import org.apache.hadoop.hbase.HRegionInfo;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>import org.apache.hadoop.hbase.HRegionLocation;<a name="line.59"></a>
-<span class="sourceLineNo">060</span>import org.apache.hadoop.hbase.HTableDescriptor;<a name="line.60"></a>
-<span class="sourceLineNo">061</span>import org.apache.hadoop.hbase.MasterNotRunningException;<a name="line.61"></a>
-<span class="sourceLineNo">062</span>import org.apache.hadoop.hbase.MetaTableAccessor;<a name="line.62"></a>
-<span class="sourceLineNo">063</span>import org.apache.hadoop.hbase.NamespaceDescriptor;<a name="line.63"></a>
-<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.NamespaceNotFoundException;<a name="line.64"></a>
-<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.NotServingRegionException;<a name="line.65"></a>
-<span class="sourceLineNo">066</span>import org.apache.hadoop.hbase.RegionLoad;<a name="line.66"></a>
-<span class="sourceLineNo">067</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.67"></a>
-<span class="sourceLineNo">068</span>import org.apache.hadoop.hbase.ServerName;<a name="line.68"></a>
-<span class="sourceLineNo">069</span>import org.apache.hadoop.hbase.TableExistsException;<a name="line.69"></a>
-<span class="sourceLineNo">070</span>import org.apache.hadoop.hbase.TableName;<a name="line.70"></a>
-<span class="sourceLineNo">071</span>import org.apache.hadoop.hbase.TableNotDisabledException;<a name="line.71"></a>
-<span class="sourceLineNo">072</span>import org.apache.hadoop.hbase.TableNotFoundException;<a name="line.72"></a>
-<span class="sourceLineNo">073</span>import org.apache.hadoop.hbase.UnknownRegionException;<a name="line.73"></a>
-<span class="sourceLineNo">074</span>import org.apache.hadoop.hbase.ZooKeeperConnectionException;<a name="line.74"></a>
-<span class="sourceLineNo">075</span>import org.apache.hadoop.hbase.client.replication.ReplicationSerDeHelper;<a name="line.75"></a>
-<span class="sourceLineNo">076</span>import org.apache.hadoop.hbase.client.replication.TableCFs;<a name="line.76"></a>
-<span class="sourceLineNo">077</span>import org.apache.hadoop.hbase.client.security.SecurityCapability;<a name="line.77"></a>
-<span class="sourceLineNo">078</span>import org.apache.hadoop.hbase.exceptions.TimeoutIOException;<a name="line.78"></a>
-<span class="sourceLineNo">079</span>import org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel;<a name="line.79"></a>
-<span class="sourceLineNo">080</span>import org.apache.hadoop.hbase.ipc.CoprocessorRpcUtils;<a name="line.80"></a>
-<span class="sourceLineNo">081</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.81"></a>
-<span class="sourceLineNo">082</span>import org.apache.hadoop.hbase.ipc.RpcControllerFactory;<a name="line.82"></a>
-<span class="sourceLineNo">083</span>import org.apache.hadoop.hbase.quotas.QuotaFilter;<a name="line.83"></a>
-<span class="sourceLineNo">084</span>import org.apache.hadoop.hbase.quotas.QuotaRetriever;<a name="line.84"></a>
-<span class="sourceLineNo">085</span>import org.apache.hadoop.hbase.quotas.QuotaSettings;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>import org.apache.hadoop.hbase.regionserver.wal.FailedLogCloseException;<a name="line.86"></a>
-<span class="sourceLineNo">087</span>import org.apache.hadoop.hbase.replication.ReplicationException;<a name="line.87"></a>
-<span class="sourceLineNo">088</span>import org.apache.hadoop.hbase.replication.ReplicationPeerConfig;<a name="line.88"></a>
-<span class="sourceLineNo">089</span>import org.apache.hadoop.hbase.replication.ReplicationPeerDescription;<a name="line.89"></a>
-<span class="sourceLineNo">090</span>import org.apache.hadoop.hbase.snapshot.ClientSnapshotDescriptionUtils;<a name="line.90"></a>
-<span class="sourceLineNo">091</span>import org.apache.hadoop.hbase.snapshot.HBaseSnapshotException;<a name="line.91"></a>
-<span class="sourceLineNo">092</span>import org.apache.hadoop.hbase.snapshot.RestoreSnapshotException;<a name="line.92"></a>
-<span class="sourceLineNo">093</span>import org.apache.hadoop.hbase.snapshot.SnapshotCreationException;<a name="line.93"></a>
-<span class="sourceLineNo">094</span>import org.apache.hadoop.hbase.snapshot.UnknownSnapshotException;<a name="line.94"></a>
-<span class="sourceLineNo">095</span>import org.apache.hadoop.hbase.util.Addressing;<a name="line.95"></a>
-<span class="sourceLineNo">096</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.96"></a>
-<span class="sourceLineNo">097</span>import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;<a name="line.97"></a>
-<span class="sourceLineNo">098</span>import org.apache.hadoop.hbase.util.ForeignExceptionUtil;<a name="line.98"></a>
-<span class="sourceLineNo">099</span>import org.apache.hadoop.hbase.util.Pair;<a name="line.99"></a>
-<span class="sourceLineNo">100</span>import org.apache.hadoop.hbase.zookeeper.MasterAddressTracker;<a name="line.100"></a>
-<span class="sourceLineNo">101</span>import org.apache.hadoop.hbase.zookeeper.MetaTableLocator;<a name="line.101"></a>
-<span class="sourceLineNo">102</span>import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;<a name="line.102"></a>
-<span class="sourceLineNo">103</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.103"></a>
-<span class="sourceLineNo">104</span>import org.apache.hadoop.util.StringUtils;<a name="line.104"></a>
-<span class="sourceLineNo">105</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.105"></a>
-<span class="sourceLineNo">106</span>import org.apache.yetus.audience.InterfaceStability;<a name="line.106"></a>
-<span class="sourceLineNo">107</span>import org.apache.zookeeper.KeeperException;<a name="line.107"></a>
+<span class="sourceLineNo">021</span>import com.google.protobuf.Descriptors;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import com.google.protobuf.Message;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import com.google.protobuf.RpcController;<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>import java.io.Closeable;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import java.io.IOException;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import java.io.InterruptedIOException;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import java.util.ArrayList;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import java.util.Arrays;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import java.util.Collection;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import java.util.EnumSet;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import java.util.HashMap;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import java.util.Iterator;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import java.util.LinkedList;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import java.util.List;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import java.util.Map;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import java.util.Set;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import java.util.TreeMap;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import java.util.concurrent.Callable;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import java.util.concurrent.ExecutionException;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import java.util.concurrent.Future;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import java.util.concurrent.TimeUnit;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import java.util.concurrent.TimeoutException;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import java.util.concurrent.atomic.AtomicInteger;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import java.util.concurrent.atomic.AtomicReference;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import java.util.regex.Pattern;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import java.util.stream.Collectors;<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.apache.commons.logging.Log;<a name="line.49"></a>
+<span class="sourceLineNo">050</span>import org.apache.commons.logging.LogFactory;<a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hadoop.conf.Configuration;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.Abortable;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.CacheEvictionStats;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.CacheEvictionStatsBuilder;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.ClusterStatus;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.ClusterStatus.Option;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.CompoundConfiguration;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>import org.apache.hadoop.hbase.DoNotRetryIOException;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>import org.apache.hadoop.hbase.HBaseConfiguration;<a name="line.59"></a>
+<span class="sourceLineNo">060</span>import org.apache.hadoop.hbase.HColumnDescriptor;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>import org.apache.hadoop.hbase.HConstants;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>import org.apache.hadoop.hbase.HRegionInfo;<a name="line.62"></a>
+<span class="sourceLineNo">063</span>import org.apache.hadoop.hbase.HRegionLocation;<a name="line.63"></a>
+<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.HTableDescriptor;<a name="line.64"></a>
+<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.MasterNotRunningException;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>import org.apache.hadoop.hbase.MetaTableAccessor;<a name="line.66"></a>
+<span class="sourceLineNo">067</span>import org.apache.hadoop.hbase.NamespaceDescriptor;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>import org.apache.hadoop.hbase.NamespaceNotFoundException;<a name="line.68"></a>
+<span class="sourceLineNo">069</span>import org.apache.hadoop.hbase.NotServingRegionException;<a name="line.69"></a>
+<span class="sourceLineNo">070</span>import org.apache.hadoop.hbase.RegionLoad;<a name="line.70"></a>
+<span class="sourceLineNo">071</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.71"></a>
+<span class="sourceLineNo">072</span>import org.apache.hadoop.hbase.ServerName;<a name="line.72"></a>
+<span class="sourceLineNo">073</span>import org.apache.hadoop.hbase.TableExistsException;<a name="line.73"></a>
+<span class="sourceLineNo">074</span>import org.apache.hadoop.hbase.TableName;<a name="line.74"></a>
+<span class="sourceLineNo">075</span>import org.apache.hadoop.hbase.TableNotDisabledException;<a name="line.75"></a>
+<span class="sourceLineNo">076</span>import org.apache.hadoop.hbase.TableNotFoundException;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>import org.apache.hadoop.hbase.UnknownRegionException;<a name="line.77"></a>
+<span class="sourceLineNo">078</span>import org.apache.hadoop.hbase.ZooKeeperConnectionException;<a name="line.78"></a>
+<span class="sourceLineNo">079</span>import org.apache.hadoop.hbase.client.replication.ReplicationSerDeHelper;<a name="line.79"></a>
+<span class="sourceLineNo">080</span>import org.apache.hadoop.hbase.client.replication.TableCFs;<a name="line.80"></a>
+<span class="sourceLineNo">081</span>import org.apache.hadoop.hbase.client.security.SecurityCapability;<a name="line.81"></a>
+<span class="sourceLineNo">082</span>import org.apache.hadoop.hbase.exceptions.TimeoutIOException;<a name="line.82"></a>
+<span class="sourceLineNo">083</span>import org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel;<a name="line.83"></a>
+<span class="sourceLineNo">084</span>import org.apache.hadoop.hbase.ipc.CoprocessorRpcUtils;<a name="line.84"></a>
+<span class="sourceLineNo">085</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.85"></a>
+<span class="sourceLineNo">086</span>import org.apache.hadoop.hbase.ipc.RpcControllerFactory;<a name="line.86"></a>
+<span class="sourceLineNo">087</span>import org.apache.hadoop.hbase.quotas.QuotaFilter;<a name="line.87"></a>
+<span class="sourceLineNo">088</span>import org.apache.hadoop.hbase.quotas.QuotaRetriever;<a name="line.88"></a>
+<span class="sourceLineNo">089</span>import org.apache.hadoop.hbase.quotas.QuotaSettings;<a name="line.89"></a>
+<span class="sourceLineNo">090</span>import org.apache.hadoop.hbase.regionserver.wal.FailedLogCloseException;<a name="line.90"></a>
+<span class="sourceLineNo">091</span>import org.apache.hadoop.hbase.replication.ReplicationException;<a name="line.91"></a>
+<span class="sourceLineNo">092</span>import org.apache.hadoop.hbase.replication.ReplicationPeerConfig;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>import org.apache.hadoop.hbase.replication.ReplicationPeerDescription;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>import org.apache.hadoop.hbase.snapshot.ClientSnapshotDescriptionUtils;<a name="line.94"></a>
+<span class="sourceLineNo">095</span>import org.apache.hadoop.hbase.snapshot.HBaseSnapshotException;<a name="line.95"></a>
+<span class="sourceLineNo">096</span>import org.apache.hadoop.hbase.snapshot.RestoreSnapshotException;<a name="line.96"></a>
+<span class="sourceLineNo">097</span>import org.apache.hadoop.hbase.snapshot.SnapshotCreationException;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>import org.apache.hadoop.hbase.snapshot.UnknownSnapshotException;<a name="line.98"></a>
+<span class="sourceLineNo">099</span>import org.apache.hadoop.hbase.util.Addressing;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.100"></a>
+<span class="sourceLineNo">101</span>import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>import org.apache.hadoop.hbase.util.ForeignExceptionUtil;<a name="line.102"></a>
+<span class="sourceLineNo">103</span>import org.apache.hadoop.hbase.util.Pair;<a name="line.103"></a>
+<span class="sourceLineNo">104</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.104"></a>
+<span class="sourceLineNo">105</span>import org.apache.hadoop.util.StringUtils;<a name="line.105"></a>
+<span class="sourceLineNo">106</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.106"></a>
+<span class="sourceLineNo">107</span>import org.apache.yetus.audience.InterfaceStability;<a name="line.107"></a>
 <span class="sourceLineNo">108</span><a name="line.108"></a>
 <span class="sourceLineNo">109</span>import org.apache.hadoop.hbase.shaded.com.google.common.annotations.VisibleForTesting;<a name="line.109"></a>
 <span class="sourceLineNo">110</span>import org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException;<a name="line.110"></a>
@@ -214,4209 +214,4109 @@
 <span class="sourceLineNo">206</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.GetReplicationPeerConfigResponse;<a name="line.206"></a>
 <span class="sourceLineNo">207</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos;<a name="line.207"></a>
 <span class="sourceLineNo">208</span><a name="line.208"></a>
-<span class="sourceLineNo">209</span>import com.google.protobuf.Descriptors;<a name="line.209"></a>
-<span class="sourceLineNo">210</span>import com.google.protobuf.Message;<a name="line.210"></a>
-<span class="sourceLineNo">211</span>import com.google.protobuf.RpcController;<a name="line.211"></a>
-<span class="sourceLineNo">212</span><a name="line.212"></a>
-<span class="sourceLineNo">213</span>/**<a name="line.213"></a>
-<span class="sourceLineNo">214</span> * HBaseAdmin is no longer a client API. It is marked InterfaceAudience.Private indicating that<a name="line.214"></a>
-<span class="sourceLineNo">215</span> * this is an HBase-internal class as defined in<a name="line.215"></a>
-<span class="sourceLineNo">216</span> * https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/InterfaceClassification.html<a name="line.216"></a>
-<span class="sourceLineNo">217</span> * There are no guarantees for backwards source / binary compatibility and methods or class can<a name="line.217"></a>
-<span class="sourceLineNo">218</span> * change or go away without deprecation.<a name="line.218"></a>
-<span class="sourceLineNo">219</span> * Use {@link Connection#getAdmin()} to obtain an instance of {@link Admin} instead of constructing<a name="line.219"></a>
-<span class="sourceLineNo">220</span> * an HBaseAdmin directly.<a name="line.220"></a>
-<span class="sourceLineNo">221</span> *<a name="line.221"></a>
-<span class="sourceLineNo">222</span> * &lt;p&gt;Connection should be an &lt;i&gt;unmanaged&lt;/i&gt; connection obtained via<a name="line.222"></a>
-<span class="sourceLineNo">223</span> * {@link ConnectionFactory#createConnection(Configuration)}<a name="line.223"></a>
-<span class="sourceLineNo">224</span> *<a name="line.224"></a>
-<span class="sourceLineNo">225</span> * @see ConnectionFactory<a name="line.225"></a>
-<span class="sourceLineNo">226</span> * @see Connection<a name="line.226"></a>
-<span class="sourceLineNo">227</span> * @see Admin<a name="line.227"></a>
-<span class="sourceLineNo">228</span> */<a name="line.228"></a>
-<span class="sourceLineNo">229</span>@InterfaceAudience.Private<a name="line.229"></a>
-<span class="sourceLineNo">230</span>@InterfaceStability.Evolving<a name="line.230"></a>
-<span class="sourceLineNo">231</span>public class HBaseAdmin implements Admin {<a name="line.231"></a>
-<span class="sourceLineNo">232</span>  private static final Log LOG = LogFactory.getLog(HBaseAdmin.class);<a name="line.232"></a>
+<span class="sourceLineNo">209</span>/**<a name="line.209"></a>
+<span class="sourceLineNo">210</span> * HBaseAdmin is no longer a client API. It is marked InterfaceAudience.Private indicating that<a name="line.210"></a>
+<span class="sourceLineNo">211</span> * this is an HBase-internal class as defined in<a name="line.211"></a>
+<span class="sourceLineNo">212</span> * https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/InterfaceClassification.html<a name="line.212"></a>
+<span class="sourceLineNo">213</span> * There are no guarantees for backwards source / binary compatibility and methods or class can<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * change or go away without deprecation.<a name="line.214"></a>
+<span class="sourceLineNo">215</span> * Use {@link Connection#getAdmin()} to obtain an instance of {@link Admin} instead of constructing<a name="line.215"></a>
+<span class="sourceLineNo">216</span> * an HBaseAdmin directly.<a name="line.216"></a>
+<span class="sourceLineNo">217</span> *<a name="line.217"></a>
+<span class="sourceLineNo">218</span> * &lt;p&gt;Connection should be an &lt;i&gt;unmanaged&lt;/i&gt; connection obtained via<a name="line.218"></a>
+<span class="sourceLineNo">219</span> * {@link ConnectionFactory#createConnection(Configuration)}<a name="line.219"></a>
+<span class="sourceLineNo">220</span> *<a name="line.220"></a>
+<span class="sourceLineNo">221</span> * @see ConnectionFactory<a name="line.221"></a>
+<span class="sourceLineNo">222</span> * @see Connection<a name="line.222"></a>
+<span class="sourceLineNo">223</span> * @see Admin<a name="line.223"></a>
+<span class="sourceLineNo">224</span> */<a name="line.224"></a>
+<span class="sourceLineNo">225</span>@InterfaceAudience.Private<a name="line.225"></a>
+<span class="sourceLineNo">226</span>@InterfaceStability.Evolving<a name="line.226"></a>
+<span class="sourceLineNo">227</span>public class HBaseAdmin implements Admin {<a name="line.227"></a>
+<span class="sourceLineNo">228</span>  private static final Log LOG = LogFactory.getLog(HBaseAdmin.class);<a name="line.228"></a>
+<span class="sourceLineNo">229</span><a name="line.229"></a>
+<span class="sourceLineNo">230</span>  private static final String ZK_IDENTIFIER_PREFIX =  "hbase-admin-on-";<a name="line.230"></a>
+<span class="sourceLineNo">231</span><a name="line.231"></a>
+<span class="sourceLineNo">232</span>  private ClusterConnection connection;<a name="line.232"></a>
 <span class="sourceLineNo">233</span><a name="line.233"></a>
-<span class="sourceLineNo">234</span>  private static final String ZK_IDENTIFIER_PREFIX =  "hbase-admin-on-";<a name="line.234"></a>
-<span class="sourceLineNo">235</span><a name="line.235"></a>
-<span class="sourceLineNo">236</span>  private ClusterConnection connection;<a name="line.236"></a>
-<span class="sourceLineNo">237</span><a name="line.237"></a>
-<span class="sourceLineNo">238</span>  private volatile Configuration conf;<a name="line.238"></a>
-<span class="sourceLineNo">239</span>  private final long pause;<a name="line.239"></a>
-<span class="sourceLineNo">240</span>  private final int numRetries;<a name="line.240"></a>
-<span class="sourceLineNo">241</span>  private final int syncWaitTimeout;<a name="line.241"></a>
-<span class="sourceLineNo">242</span>  private boolean aborted;<a name="line.242"></a>
-<span class="sourceLineNo">243</span>  private int operationTimeout;<a name="line.243"></a>
-<span class="sourceLineNo">244</span>  private int rpcTimeout;<a name="line.244"></a>
-<span class="sourceLineNo">245</span><a name="line.245"></a>
-<span class="sourceLineNo">246</span>  private RpcRetryingCallerFactory rpcCallerFactory;<a name="line.246"></a>
-<span class="sourceLineNo">247</span>  private RpcControllerFactory rpcControllerFactory;<a name="line.247"></a>
-<span class="sourceLineNo">248</span><a name="line.248"></a>
-<span class="sourceLineNo">249</span>  private NonceGenerator ng;<a name="line.249"></a>
-<span class="sourceLineNo">250</span><a name="line.250"></a>
-<span class="sourceLineNo">251</span>  @Override<a name="line.251"></a>
-<span class="sourceLineNo">252</span>  public int getOperationTimeout() {<a name="line.252"></a>
-<span class="sourceLineNo">253</span>    return operationTimeout;<a name="line.253"></a>
-<span class="sourceLineNo">254</span>  }<a name="line.254"></a>
+<span class="sourceLineNo">234</span>  private volatile Configuration conf;<a name="line.234"></a>
+<span class="sourceLineNo">235</span>  private final long pause;<a name="line.235"></a>
+<span class="sourceLineNo">236</span>  private final int numRetries;<a name="line.236"></a>
+<span class="sourceLineNo">237</span>  private final int syncWaitTimeout;<a name="line.237"></a>
+<span class="sourceLineNo">238</span>  private boolean aborted;<a name="line.238"></a>
+<span class="sourceLineNo">239</span>  private int operationTimeout;<a name="line.239"></a>
+<span class="sourceLineNo">240</span>  private int rpcTimeout;<a name="line.240"></a>
+<span class="sourceLineNo">241</span><a name="line.241"></a>
+<span class="sourceLineNo">242</span>  private RpcRetryingCallerFactory rpcCallerFactory;<a name="line.242"></a>
+<span class="sourceLineNo">243</span>  private RpcControllerFactory rpcControllerFactory;<a name="line.243"></a>
+<span class="sourceLineNo">244</span><a name="line.244"></a>
+<span class="sourceLineNo">245</span>  private NonceGenerator ng;<a name="line.245"></a>
+<span class="sourceLineNo">246</span><a name="line.246"></a>
+<span class="sourceLineNo">247</span>  @Override<a name="line.247"></a>
+<span class="sourceLineNo">248</span>  public int getOperationTimeout() {<a name="line.248"></a>
+<span class="sourceLineNo">249</span>    return operationTimeout;<a name="line.249"></a>
+<span class="sourceLineNo">250</span>  }<a name="line.250"></a>
+<span class="sourceLineNo">251</span><a name="line.251"></a>
+<span class="sourceLineNo">252</span>  HBaseAdmin(ClusterConnection connection) throws IOException {<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    this.conf = connection.getConfiguration();<a name="line.253"></a>
+<span class="sourceLineNo">254</span>    this.connection = connection;<a name="line.254"></a>
 <span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span>  HBaseAdmin(ClusterConnection connection) throws IOException {<a name="line.256"></a>
-<span class="sourceLineNo">257</span>    this.conf = connection.getConfiguration();<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    this.connection = connection;<a name="line.258"></a>
-<span class="sourceLineNo">259</span><a name="line.259"></a>
-<span class="sourceLineNo">260</span>    // TODO: receive ConnectionConfiguration here rather than re-parsing these configs every time.<a name="line.260"></a>
-<span class="sourceLineNo">261</span>    this.pause = this.conf.getLong(HConstants.HBASE_CLIENT_PAUSE,<a name="line.261"></a>
-<span class="sourceLineNo">262</span>        HConstants.DEFAULT_HBASE_CLIENT_PAUSE);<a name="line.262"></a>
-<span class="sourceLineNo">263</span>    this.numRetries = this.conf.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,<a name="line.263"></a>
-<span class="sourceLineNo">264</span>        HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);<a name="line.264"></a>
-<span class="sourceLineNo">265</span>    this.operationTimeout = this.conf.getInt(HConstants.HBASE_CLIENT_OPERATION_TIMEOUT,<a name="line.265"></a>
-<span class="sourceLineNo">266</span>        HConstants.DEFAULT_HBASE_CLIENT_OPERATION_TIMEOUT);<a name="line.266"></a>
-<span class="sourceLineNo">267</span>    this.rpcTimeout = this.conf.getInt(HConstants.HBASE_RPC_TIMEOUT_KEY,<a name="line.267"></a>
-<span class="sourceLineNo">268</span>        HConstants.DEFAULT_HBASE_RPC_TIMEOUT);<a name="line.268"></a>
-<span class="sourceLineNo">269</span>    this.syncWaitTimeout = this.conf.getInt(<a name="line.269"></a>
-<span class="sourceLineNo">270</span>      "hbase.client.sync.wait.timeout.msec", 10 * 60000); // 10min<a name="line.270"></a>
-<span class="sourceLineNo">271</span><a name="line.271"></a>
-<span class="sourceLineNo">272</span>    this.rpcCallerFactory = connection.getRpcRetryingCallerFactory();<a name="line.272"></a>
-<span class="sourceLineNo">273</span>    this.rpcControllerFactory = connection.getRpcControllerFactory();<a name="line.273"></a>
-<span class="sourceLineNo">274</span><a name="line.274"></a>
-<span class="sourceLineNo">275</span>    this.ng = this.connection.getNonceGenerator();<a name="line.275"></a>
-<span class="sourceLineNo">276</span>  }<a name="line.276"></a>
-<span class="sourceLineNo">277</span><a name="line.277"></a>
-<span class="sourceLineNo">278</span>  @Override<a name="line.278"></a>
-<span class="sourceLineNo">279</span>  public void abort(String why, Throwable e) {<a name="line.279"></a>
-<span class="sourceLineNo">280</span>    // Currently does nothing but throw the passed message and exception<a name="line.280"></a>
-<span class="sourceLineNo">281</span>    this.aborted = true;<a name="line.281"></a>
-<span class="sourceLineNo">282</span>    throw new RuntimeException(why, e);<a name="line.282"></a>
-<span class="sourceLineNo">283</span>  }<a name="line.283"></a>
-<span class="sourceLineNo">284</span><a name="line.284"></a>
-<span class="sourceLineNo">285</span>  @Override<a name="line.285"></a>
-<span class="sourceLineNo">286</span>  public boolean isAborted() {<a name="line.286"></a>
-<span class="sourceLineNo">287</span>    return this.aborted;<a name="line.287"></a>
-<span class="sourceLineNo">288</span>  }<a name="line.288"></a>
-<span class="sourceLineNo">289</span><a name="line.289"></a>
-<span class="sourceLineNo">290</span>  @Override<a name="line.290"></a>
-<span class="sourceLineNo">291</span>  public boolean abortProcedure(final long procId, final boolean mayInterruptIfRunning)<a name="line.291"></a>
-<span class="sourceLineNo">292</span>  throws IOException {<a name="line.292"></a>
-<span class="sourceLineNo">293</span>    return get(abortProcedureAsync(procId, mayInterruptIfRunning), this.syncWaitTimeout,<a name="line.293"></a>
-<span class="sourceLineNo">294</span>      TimeUnit.MILLISECONDS);<a name="line.294"></a>
-<span class="sourceLineNo">295</span>  }<a name="line.295"></a>
-<span class="sourceLineNo">296</span><a name="line.296"></a>
-<span class="sourceLineNo">297</span>  @Override<a name="line.297"></a>
-<span class="sourceLineNo">298</span>  public Future&lt;Boolean&gt; abortProcedureAsync(final long procId, final boolean mayInterruptIfRunning)<a name="line.298"></a>
-<span class="sourceLineNo">299</span>      throws IOException {<a name="line.299"></a>
-<span class="sourceLineNo">300</span>    Boolean abortProcResponse =<a name="line.300"></a>
-<span class="sourceLineNo">301</span>        executeCallable(new MasterCallable&lt;AbortProcedureResponse&gt;(getConnection(),<a name="line.301"></a>
-<span class="sourceLineNo">302</span>            getRpcControllerFactory()) {<a name="line.302"></a>
-<span class="sourceLineNo">303</span>      @Override<a name="line.303"></a>
-<span class="sourceLineNo">304</span>      protected AbortProcedureResponse rpcCall() throws Exception {<a name="line.304"></a>
-<span class="sourceLineNo">305</span>        AbortProcedureRequest abortProcRequest =<a name="line.305"></a>
-<span class="sourceLineNo">306</span>            AbortProcedureRequest.newBuilder().setProcId(procId).build();<a name="line.306"></a>
-<span class="sourceLineNo">307</span>        return master.abortProcedure(getRpcController(), abortProcRequest);<a name="line.307"></a>
-<span class="sourceLineNo">308</span>      }<a name="line.308"></a>
-<span class="sourceLineNo">309</span>    }).getIsProcedureAborted();<a name="line.309"></a>
-<span class="sourceLineNo">310</span>    return new AbortProcedureFuture(this, procId, abortProcResponse);<a name="line.310"></a>
-<span class="sourceLineNo">311</span>  }<a name="line.311"></a>
-<span class="sourceLineNo">312</span><a name="line.312"></a>
-<span class="sourceLineNo">313</span>  @Override<a name="line.313"></a>
-<span class="sourceLineNo">314</span>  public List&lt;TableDescriptor&gt; listTableDescriptors() throws IOException {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>    return listTableDescriptors((Pattern)null, false);<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>  @Override<a name="line.318"></a>
-<span class="sourceLineNo">319</span>  public List&lt;TableDescriptor&gt; listTableDescriptors(Pattern pattern) throws IOException {<a name="line.319"></a>
-<span class="sourceLineNo">320</span>    return listTableDescriptors(pattern, false);<a name="line.320"></a>
-<span class="sourceLineNo">321</span>  }<a name="line.321"></a>
-<span class="sourceLineNo">322</span><a name="line.322"></a>
-<span class="sourceLineNo">323</span>  @Override<a name="line.323"></a>
-<span class="sourceLineNo">324</span>  public List&lt;TableDescriptor&gt; listTableDescriptors(Pattern pattern, boolean includeSysTables) throws IOException {<a name="line.324"></a>
-<span class="sourceLineNo">325</span>    return executeCallable(new MasterCallable&lt;List&lt;TableDescriptor&gt;&gt;(getConnection(),<a name="line.325"></a>
-<span class="sourceLineNo">326</span>        getRpcControllerFactory()) {<a name="line.326"></a>
-<span class="sourceLineNo">327</span>      @Override<a name="line.327"></a>
-<span class="sourceLineNo">328</span>      protected List&lt;TableDescriptor&gt; rpcCall() throws Exception {<a name="line.328"></a>
-<span class="sourceLineNo">329</span>        GetTableDescriptorsRequest req =<a name="line.329"></a>
-<span class="sourceLineNo">330</span>            RequestConverter.buildGetTableDescriptorsRequest(pattern, includeSysTables);<a name="line.330"></a>
-<span class="sourceLineNo">331</span>        return ProtobufUtil.toTableDescriptorList(master.getTableDescriptors(getRpcController(),<a name="line.331"></a>
-<span class="sourceLineNo">332</span>            req));<a name="line.332"></a>
-<span class="sourceLineNo">333</span>      }<a name="line.333"></a>
-<span class="sourceLineNo">334</span>    });<a name="line.334"></a>
-<span class="sourceLineNo">335</span>  }<a name="line.335"></a>
-<span class="sourceLineNo">336</span><a name="line.336"></a>
-<span class="sourceLineNo">337</span>  @Override<a name="line.337"></a>
-<span class="sourceLineNo">338</span>  public TableDescriptor getDescriptor(TableName tableName) throws TableNotFoundException, IOException {<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    return getTableDescriptor(tableName, getConnection(), rpcCallerFactory, rpcControllerFactory,<a name="line.339"></a>
-<span class="sourceLineNo">340</span>       operationTimeout, rpcTimeout);<a name="line.340"></a>
-<span class="sourceLineNo">341</span>  }<a name="line.341"></a>
-<span class="sourceLineNo">342</span><a name="line.342"></a>
-<span class="sourceLineNo">343</span>  @Override<a name="line.343"></a>
-<span class="sourceLineNo">344</span>  public void modifyTable(TableDescriptor td) throws IOException {<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    get(modifyTableAsync(td), syncWaitTimeout, TimeUnit.MILLISECONDS);<a name="line.345"></a>
-<span class="sourceLineNo">346</span>  }<a name="line.346"></a>
-<span class="sourceLineNo">347</span><a name="line.347"></a>
-<span class="sourceLineNo">348</span>  @Override<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  public Future&lt;Void&gt; modifyTableAsync(TableDescriptor td) throws IOException {<a name="line.349"></a>
-<span class="sourceLineNo">350</span>    ModifyTableResponse response = executeCallable(<a name="line.350"></a>
-<span class="sourceLineNo">351</span>      new MasterCallable&lt;ModifyTableResponse&gt;(getConnection(), getRpcControllerFactory()) {<a name="line.351"></a>
-<span class="sourceLineNo">352</span>        @Override<a name="line.352"></a>
-<span class="sourceLineNo">353</span>        protected ModifyTableResponse rpcCall() throws Exception {<a name="line.353"></a>
-<span class="sourceLineNo">354</span>          setPriority(td.getTableName());<a name="line.354"></a>
-<span class="sourceLineNo">355</span>          ModifyTableRequest request = RequestConverter.buildModifyTableRequest(<a name="line.355"></a>
-<span class="sourceLineNo">356</span>            td.getTableName(), td, ng.getNonceGroup(), ng.newNonce());<a name="line.356"></a>
-<span class="sourceLineNo">357</span>          return master.modifyTable(getRpcController(), request);<a name="line.357"></a>
-<span class="sourceLineNo">358</span>        }<a name="line.358"></a>
-<span class="sourceLineNo">359</span>      });<a name="line.359"></a>
-<span class="sourceLineNo">360</span>    return new ModifyTableFuture(this, td.getTableName(), response);<a name="line.360"></a>
-<span class="sourceLineNo">361</span>  }<a name="line.361"></a>
-<span class="sourceLineNo">362</span><a name="line.362"></a>
-<span class="sourceLineNo">363</span>  @Override<a name="line.363"></a>
-<span class="sourceLineNo">364</span>  public List&lt;TableDescriptor&gt; listTableDescriptorsByNamespace(byte[] name) throws IOException {<a name="line.364"></a>
-<span class="sourceLineNo">365</span>    return executeCallable(new MasterCallable&lt;List&lt;TableDescriptor&gt;&gt;(getConnection(),<a name="line.365"></a>
-<span class="sourceLineNo">366</span>        getRpcControllerFactory()) {<a name="line.366"></a>
-<span class="sourceLineNo">367</span>      @Override<a name="line.367"></a>
-<span class="sourceLineNo">368</span>      protected List&lt;TableDescriptor&gt; rpcCall() throws Exception {<a name="line.368"></a>
-<span class="sourceLineNo">369</span>        return master.listTableDescriptorsByNamespace(getRpcController(),<a name="line.369"></a>
-<span class="sourceLineNo">370</span>                ListTableDescriptorsByNamespaceRequest.newBuilder()<a name="line.370"></a>
-<span class="sourceLineNo">371</span>                  .setNamespaceName(Bytes.toString(name)).build())<a name="line.371"></a>
-<span class="sourceLineNo">372</span>                .getTableSchemaList()<a name="line.372"></a>
-<span class="sourceLineNo">373</span>                .stream()<a name="line.373"></a>
-<span class="sourceLineNo">374</span>                .map(ProtobufUtil::toTableDescriptor)<a name="line.374"></a>
-<span class="sourceLineNo">375</span>                .collect(Collectors.toList());<a name="line.375"></a>
-<span class="sourceLineNo">376</span>      }<a name="line.376"></a>
-<span class="sourceLineNo">377</span>    });<a name="line.377"></a>
-<span class="sourceLineNo">378</span>  }<a name="line.378"></a>
-<span class="sourceLineNo">379</span><a name="line.379"></a>
-<span class="sourceLineNo">380</span>  @Override<a name="line.380"></a>
-<span class="sourceLineNo">381</span>  public List&lt;TableDescriptor&gt; listTableDescriptors(List&lt;TableName&gt; tableNames) throws IOException {<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    return executeCallable(new MasterCallable&lt;List&lt;TableDescriptor&gt;&gt;(getConnection(),<a name="line.382"></a>
-<span class="sourceLineNo">383</span>        getRpcControllerFactory()) {<a name="line.383"></a>
-<span class="sourceLineNo">384</span>      @Override<a name="line.384"></a>
-<span class="sourceLineNo">385</span>      protected List&lt;TableDescriptor&gt; rpcCall() throws Exception {<a name="line.385"></a>
-<span class="sourceLineNo">386</span>        GetTableDescriptorsRequest req =<a name="line.386"></a>
-<span class="sourceLineNo">387</span>            RequestConverter.buildGetTableDescriptorsRequest(tableNames);<a name="line.387"></a>
-<span class="sourceLineNo">388</span>          return ProtobufUtil.toTableDescriptorList(master.getTableDescriptors(getRpcController(), req));<a name="line.388"></a>
-<span class="sourceLineNo">389</span>      }<a name="line.389"></a>
-<span class="sourceLineNo">390</span>    });<a name="line.390"></a>
-<span class="sourceLineNo">391</span>  }<a name="line.391"></a>
-<span class="sourceLineNo">392</span><a name="line.392"></a>
-<span class="sourceLineNo">393</span>  @Override<a name="line.393"></a>
-<span class="sourceLineNo">394</span>  public List&lt;RegionInfo&gt; getRegions(final ServerName sn) throws IOException {<a name="line.394"></a>
-<span class="sourceLineNo">395</span>    AdminService.BlockingInterface admin = this.connection.getAdmin(sn);<a name="line.395"></a>
-<span class="sourceLineNo">396</span>    // TODO: There is no timeout on this controller. Set one!<a name="line.396"></a>
-<span class="sourceLineNo">397</span>    HBaseRpcController controller = rpcControllerFactory.newController();<a name="line.397"></a>
-<span class="sourceLineNo">398</span>    return ProtobufUtil.getOnlineRegions(controller, admin);<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>  @Override<a name="line.401"></a>
-<span class="sourceLineNo">402</span>  public List&lt;RegionInfo&gt; getRegions(final TableName tableName) throws IOException {<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    ZooKeeperWatcher zookeeper =<a name="line.403"></a>
-<span class="sourceLineNo">404</span>        new ZooKeeperWatcher(conf, ZK_IDENTIFIER_PREFIX + connection.toString(),<a name="line.404"></a>
-<span class="sourceLineNo">405</span>            new ThrowableAbortable());<a name="line.405"></a>
-<span class="sourceLineNo">406</span>    try {<a name="line.406"></a>
-<span class="sourceLineNo">407</span>      if (TableName.META_TABLE_NAME.equals(tableName)) {<a name="line.407"></a>
-<span class="sourceLineNo">408</span>        return new MetaTableLocator().getMetaRegions(zookeeper);<a name="line.408"></a>
-<span class="sourceLineNo">409</span>      } else {<a name="line.409"></a>
-<span class="sourceLineNo">410</span>        return MetaTableAccessor.getTableRegions(connection, tableName, true);<a name="line.410"></a>
-<span class="sourceLineNo">411</span>      }<a name="line.411"></a>
-<span class="sourceLineNo">412</span>    } finally {<a name="line.412"></a>
-<span class="sourceLineNo">413</span>      zookeeper.close();<a name="line.413"></a>
-<span class="sourceLineNo">414</span>    }<a name="line.414"></a>
-<span class="sourceLineNo">415</span>  }<a name="line.415"></a>
+<span class="sourceLineNo">256</span>    // TODO: receive ConnectionConfiguration here rather than re-parsing these configs every time.<a name="line.256"></a>
+<span class="sourceLineNo">257</span>    this.pause = this.conf.getLong(HConstants.HBASE_CLIENT_PAUSE,<a name="line.257"></a>
+<span class="sourceLineNo">258</span>        HConstants.DEFAULT_HBASE_CLIENT_PAUSE);<a name="line.258"></a>
+<span class="sourceLineNo">259</span>    this.numRetries = this.conf.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,<a name="line.259"></a>
+<span class="sourceLineNo">260</span>        HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);<a name="line.260"></a>
+<span class="sourceLineNo">261</span>    this.operationTimeout = this.conf.getInt(HConstants.HBASE_CLIENT_OPERATION_TIMEOUT,<a name="line.261"></a>
+<span class="sourceLineNo">262</span>        HConstants.DEFAULT_HBASE_CLIENT_OPERATION_TIMEOUT);<a name="line.262"></a>
+<span class="sourceLineNo">263</span>    this.rpcTimeout = this.conf.getInt(HConstants.HBASE_RPC_TIMEOUT_KEY,<a name="line.263"></a>
+<span class="sourceLineNo">264</span>        HConstants.DEFAULT_HBASE_RPC_TIMEOUT);<a name="line.264"></a>
+<span class="sourceLineNo">265</span>    this.syncWaitTimeout = this.conf.getInt(<a name="line.265"></a>
+<span class="sourceLineNo">266</span>      "hbase.client.sync.wait.timeout.msec", 10 * 60000); // 10min<a name="line.266"></a>
+<span class="sourceLineNo">267</span><a name="line.267"></a>
+<span class="sourceLineNo">268</span>    this.rpcCallerFactory = connection.getRpcRetryingCallerFactory();<a name="line.268"></a>
+<span class="sourceLineNo">269</span>    this.rpcControllerFactory = connection.getRpcControllerFactory();<a name="line.269"></a>
+<span class="sourceLineNo">270</span><a name="line.270"></a>
+<span class="sourceLineNo">271</span>    this.ng = this.connection.getNonceGenerator();<a name="line.271"></a>
+<span class="sourceLineNo">272</span>  }<a name="line.272"></a>
+<span class="sourceLineNo">273</span><a name="line.273"></a>
+<span class="sourceLineNo">274</span>  @Override<a name="line.274"></a>
+<span class="sourceLineNo">275</span>  public void abort(String why, Throwable e) {<a name="line.275"></a>
+<span class="sourceLineNo">276</span>    // Currently does nothing but throw the passed message and exception<a name="line.276"></a>
+<span class="sourceLineNo">277</span>    this.aborted = true;<a name="line.277"></a>
+<span class="sourceLineNo">278</span>    throw new RuntimeException(why, e);<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>  @Override<a name="line.281"></a>
+<span class="sourceLineNo">282</span>  public boolean isAborted() {<a name="line.282"></a>
+<span class="sourceLineNo">283</span>    return this.aborted;<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>  @Override<a name="line.286"></a>
+<span class="sourceLineNo">287</span>  public boolean abortProcedure(final long procId, final boolean mayInterruptIfRunning)<a name="line.287"></a>
+<span class="sourceLineNo">288</span>  throws IOException {<a name="line.288"></a>
+<span class="sourceLineNo">289</span>    return get(abortProcedureAsync(procId, mayInterruptIfRunning), this.syncWaitTimeout,<a name="line.289"></a>
+<span class="sourceLineNo">290</span>      TimeUnit.MILLISECONDS);<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>  @Override<a name="line.293"></a>
+<span class="sourceLineNo">294</span>  public Future&lt;Boolean&gt; abortProcedureAsync(final long procId, final boolean mayInterruptIfRunning)<a name="line.294"></a>
+<span class="sourceLineNo">295</span>      throws IOException {<a name="line.295"></a>
+<span class="sourceLineNo">296</span>    Boolean abortProcResponse =<a name="line.296"></a>
+<span class="sourceLineNo">297</span>        executeCallable(new MasterCallable&lt;AbortProcedureResponse&gt;(getConnection(),<a name="line.297"></a>
+<span class="sourceLineNo">298</span>            getRpcControllerFactory()) {<a name="line.298"></a>
+<span class="sourceLineNo">299</span>      @Override<a name="line.299"></a>
+<span class="sourceLineNo">300</span>      protected AbortProcedureResponse rpcCall() throws Exception {<a name="line.300"></a>
+<span class="sourceLineNo">301</span>        AbortProcedureRequest abortProcRequest =<a name="line.301"></a>
+<span class="sourceLineNo">302</span>            AbortProcedureRequest.newBuilder().setProcId(procId).build();<a name="line.302"></a>
+<span class="sourceLineNo">303</span>        return master.abortProcedure(getRpcController(), abortProcRequest);<a name="line.303"></a>
+<span class="sourceLineNo">304</span>      }<a name="line.304"></a>
+<span class="sourceLineNo">305</span>    }).getIsProcedureAborted();<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    return new AbortProcedureFuture(this, procId, abortProcResponse);<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>  @Override<a name="line.309"></a>
+<span class="sourceLineNo">310</span>  public List&lt;TableDescriptor&gt; listTableDescriptors() throws IOException {<a name="line.310"></a>
+<span class="sourceLineNo">311</span>    return listTableDescriptors((Pattern)null, false);<a name="line.311"></a>
+<span class="sourceLineNo">312</span>  }<a name="line.312"></a>
+<span class="sourceLineNo">313</span><a name="line.313"></a>
+<span class="sourceLineNo">314</span>  @Override<a name="line.314"></a>
+<span class="sourceLineNo">315</span>  public List&lt;TableDescriptor&gt; listTableDescriptors(Pattern pattern) throws IOException {<a name="line.315"></a>
+<span class="sourceLineNo">316</span>    return listTableDescriptors(pattern, false);<a name="line.316"></a>
+<span class="sourceLineNo">317</span>  }<a name="line.317"></a>
+<span class="sourceLineNo">318</span><a name="line.318"></a>
+<span class="sourceLineNo">319</span>  @Override<a name="line.319"></a>
+<span class="sourceLineNo">320</span>  public List&lt;TableDescriptor&gt; listTableDescriptors(Pattern pattern, boolean includeSysTables) throws IOException {<a name="line.320"></a>
+<span class="sourceLineNo">321</span>    return executeCallable(new MasterCallable&lt;List&lt;TableDescriptor&gt;&gt;(getConnection(),<a name="line.321"></a>
+<span class="sourceLineNo">322</span>        getRpcControllerFactory()) {<a name="line.322"></a>
+<span class="sourceLineNo">323</span>      @Override<a name="line.323"></a>
+<span class="sourceLineNo">324</span>      protected List&lt;TableDescriptor&gt; rpcCall() throws Exception {<a name="line.324"></a>
+<span class="sourceLineNo">325</span>        GetTableDescriptorsRequest req =<a name="line.325"></a>
+<span class="sourceLineNo">326</span>            RequestConverter.buildGetTableDescriptorsRequest(pattern, includeSysTables);<a name="line.326"></a>
+<span class="sourceLineNo">327</span>        return ProtobufUtil.toTableDescriptorList(master.getTableDescriptors(getRpcController(),<a name="line.327"></a>
+<span class="sourceLineNo">328</span>            req));<a name="line.328"></a>
+<span class="sourceLineNo">329</span>      }<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>  @Override<a name="line.333"></a>
+<span class="sourceLineNo">334</span>  public TableDescriptor getDescriptor(TableName tableName) throws TableNotFoundException, IOException {<a name="line.334"></a>
+<span class="sourceLineNo">335</span>    return getTableDescriptor(tableName, getConnection(), rpcCallerFactory, rpcControllerFactory,<a name="line.335"></a>
+<span class="sourceLineNo">336</span>       operationTimeout, rpcTimeout);<a name="line.336"></a>
+<span class="sourceLineNo">337</span>  }<a name="line.337"></a>
+<span class="sourceLineNo">338</span><a name="line.338"></a>
+<span class="sourceLineNo">339</span>  @Override<a name="line.339"></a>
+<span class="sourceLineNo">340</span>  public void modifyTable(TableDescriptor td) throws IOException {<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    get(modifyTableAsync(td), syncWaitTimeout, TimeUnit.MILLISECONDS);<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>  @Override<a name="line.344"></a>
+<span class="sourceLineNo">345</span>  public Future&lt;Void&gt; modifyTableAsync(TableDescriptor td) throws IOException {<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    ModifyTableResponse response = executeCallable(<a name="line.346"></a>
+<span class="sourceLineNo">347</span>      new MasterCallable&lt;ModifyTableResponse&gt;(getConnection(), getRpcControllerFactory()) {<a name="line.347"></a>
+<span class="sourceLineNo">348</span>        @Override<a name="line.348"></a>
+<span class="sourceLineNo">349</span>        protected ModifyTableResponse rpcCall() throws Exception {<a name="line.349"></a>
+<span class="sourceLineNo">350</span>          setPriority(td.getTableName());<a name="line.350"></a>
+<span class="sourceLineNo">351</span>          ModifyTableRequest request = RequestConverter.buildModifyTableRequest(<a name="line.351"></a>
+<span class="sourceLineNo">352</span>            td.getTableName(), td, ng.getNonceGroup(), ng.newNonce());<a name="line.352"></a>
+<span class="sourceLineNo">353</span>          return master.modifyTable(getRpcController(), request);<a name="line.353"></a>
+<span class="sourceLineNo">354</span>        }<a name="line.354"></a>
+<span class="sourceLineNo">355</span>      });<a name="line.355"></a>
+<span class="sourceLineNo">356</span>    return new ModifyTableFuture(this, td.getTableName(), response);<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>  @Override<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  public List&lt;TableDescriptor&gt; listTableDescriptorsByNamespace(byte[] name) throws IOException {<a name="line.360"></a>
+<span class="sourceLineNo">361</span>    return executeCallable(new MasterCallable&lt;List&lt;TableDescriptor&gt;&gt;(getConnection(),<a name="line.361"></a>
+<span class="sourceLineNo">362</span>        getRpcControllerFactory()) {<a name="line.362"></a>
+<span class="sourceLineNo">363</span>      @Override<a name="line.363"></a>
+<span class="sourceLineNo">364</span>      protected List&lt;TableDescriptor&gt; rpcCall() throws Exception {<a name="line.364"></a>
+<span class="sourceLineNo">365</span>        return master.listTableDescriptorsByNamespace(getRpcController(),<a name="line.365"></a>
+<span class="sourceLineNo">366</span>                ListTableDescriptorsByNamespaceRequest.newBuilder()<a name="line.366"></a>
+<span class="sourceLineNo">367</span>                  .setNamespaceName(Bytes.toString(name)).build())<a name="line.367"></a>
+<span class="sourceLineNo">368</span>                .getTableSchemaList()<a name="line.368"></a>
+<span class="sourceLineNo">369</span>                .stream()<a name="line.369"></a>
+<span class="sourceLineNo">370</span>                .map(ProtobufUtil::toTableDescriptor)<a name="line.370"></a>
+<span class="sourceLineNo">371</span>                .collect(Collectors.toList());<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>  }<a name="line.374"></a>
+<span class="sourceLineNo">375</span><a name="line.375"></a>
+<span class="sourceLineNo">376</span>  @Override<a name="line.376"></a>
+<span class="sourceLineNo">377</span>  public List&lt;TableDescriptor&gt; listTableDescriptors(List&lt;TableName&gt; tableNames) throws IOException {<a name="line.377"></a>
+<span class="sourceLineNo">378</span>    return executeCallable(new MasterCallable&lt;List&lt;TableDescriptor&gt;&gt;(getConnection(),<a name="line.378"></a>
+<span class="sourceLineNo">379</span>        getRpcControllerFactory()) {<a name="line.379"></a>
+<span class="sourceLineNo">380</span>      @Override<a name="line.380"></a>
+<span class="sourceLineNo">381</span>      protected List&lt;TableDescriptor&gt; rpcCall() throws Exception {<a name="line.381"></a>
+<span class="sourceLineNo">382</span>        GetTableDescriptorsRequest req =<a name="line.382"></a>
+<span class="sourceLineNo">383</span>            RequestConverter.buildGetTableDescriptorsRequest(tableNames);<a name="line.383"></a>
+<span class="sourceLineNo">384</span>          return ProtobufUtil.toTableDescriptorList(master.getTableDescriptors(getRpcController(), req));<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><a name="line.388"></a>
+<span class="sourceLineNo">389</span>  @Override<a name="line.389"></a>
+<span class="sourceLineNo">390</span>  public List&lt;RegionInfo&gt; getRegions(final ServerName sn) throws IOException {<a name="line.390"></a>
+<span class="sourceLineNo">391</span>    AdminService.BlockingInterface admin = this.connection.getAdmin(sn);<a name="line.391"></a>
+<span class="sourceLineNo">392</span>    // TODO: There is no timeout on this controller. Set one!<a name="line.392"></a>
+<span class="sourceLineNo">393</span>    HBaseRpcController controller = rpcControllerFactory.newController();<a name="line.393"></a>
+<span class="sourceLineNo">394</span>    return ProtobufUtil.getOnlineRegions(controller, admin);<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>  @Override<a name="line.397"></a>
+<span class="sourceLineNo">398</span>  public List&lt;RegionInfo&gt; getRegions(TableName tableName) throws IOException {<a name="line.398"></a>
+<span class="sourceLineNo">399</span>    if (TableName.isMetaTableName(tableName)) {<a name="line.399"></a>
+<span class="sourceLineNo">400</span>      return Arrays.asList(RegionInfoBuilder.FIRST_META_REGIONINFO);<a name="line.400"></a>
+<span class="sourceLineNo">401</span>    } else {<a name="line.401"></a>
+<span class="sourceLineNo">402</span>      return MetaTableAccessor.getTableRegions(connection, tableName, true);<a name="line.402"></a>
+<span class="sourceLineNo">403</span>    }<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>  private static class AbortProcedureFuture extends ProcedureFuture&lt;Boolean&gt; {<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    private boolean isAbortInProgress;<a name="line.407"></a>
+<span class="sourceLineNo">408</span><a name="line.408"></a>
+<span class="sourceLineNo">409</span>    public AbortProcedureFuture(<a name="line.409"></a>
+<span class="sourceLineNo">410</span>        final HBaseAdmin admin,<a name="line.410"></a>
+<span class="sourceLineNo">411</span>        final Long procId,<a name="line.411"></a>
+<span class="sourceLineNo">412</span>        final Boolean abortProcResponse) {<a name="line.412"></a>
+<span class="sourceLineNo">413</span>      super(admin, procId);<a name="line.413"></a>
+<span class="sourceLineNo">414</span>      this.isAbortInProgress = abortProcResponse;<a name="line.414"></a>
+<span class="sourceLineNo">415</span>    }<a name="line.415"></a>
 <span class="sourceLineNo">416</span><a name="line.416"></a>
-<span class="sourceLineNo">417</span>  private static class AbortProcedureFuture extends ProcedureFuture&lt;Boolean&gt; {<a name="line.417"></a>
-<span class="sourceLineNo">418</span>    private boolean isAbortInProgress;<a name="line.418"></a>
-<span class="sourceLineNo">419</span><a name="line.419"></a>
-<span class="sourceLineNo">420</span>    public AbortProcedureFuture(<a name="line.420"></a>
-<span class="sourceLineNo">421</span>        final HBaseAdmin admin,<a name="line.421"></a>
-<span class="sourceLineNo">422</span>        final Long procId,<a name="line.422"></a>
-<span class="sourceLineNo">423</span>        final Boolean abortProcResponse) {<a name="line.423"></a>
-<span class="sourceLineNo">424</span>      super(admin, procId);<a name="line.424"></a>
-<span class="sourceLineNo">425</span>      this.isAbortInProgress = abortProcResponse;<a name="line.425"></a>
-<span class="sourceLineNo">426</span>    }<a name="line.426"></a>
+<span class="sourceLineNo">417</span>    @Override<a name="line.417"></a>
+<span class="sourceLineNo">418</span>    public Boolean get(long timeout, TimeUnit unit)<a name="line.418"></a>
+<span class="sourceLineNo">419</span>        throws InterruptedException, ExecutionException, TimeoutException {<a name="line.419"></a>
+<span class="sourceLineNo">420</span>      if (!this.isAbortInProgress) {<a name="line.420"></a>
+<span class="sourceLineNo">421</span>        return false;<a name="line.421"></a>
+<span class="sourceLineNo">422</span>      }<a name="line.422"></a>
+<span class="sourceLineNo">423</span>      super.get(timeout, unit);<a name="line.423"></a>
+<span class="sourceLineNo">424</span>      return true;<a name="line.424"></a>
+<span class="sourceLineNo">425</span>    }<a name="line.425"></a>
+<span class="sourceLineNo">426</span>  }<a name="line.426"></a>
 <span class="sourceLineNo">427</span><a name="line.427"></a>
-<span class="sourceLineNo">428</span>    @Override<a name="line.428"></a>
-<span class="sourceLineNo">429</span>    public Boolean get(long timeout, TimeUnit unit)<a name="line.429"></a>
-<span class="sourceLineNo">430</span>        throws InterruptedException, ExecutionException, TimeoutException {<a name="line.430"></a>
-<span class="sourceLineNo">431</span>      if (!this.isAbortInProgress) {<a name="line.431"></a>
-<span class="sourceLineNo">432</span>        return false;<a name="line.432"></a>
-<span class="sourceLineNo">433</span>      }<a name="line.433"></a>
-<span class="sourceLineNo">434</span>      super.get(timeout, unit);<a name="line.434"></a>
-<span class="sourceLineNo">435</span>      return true;<a name="line.435"></a>
-<span class="sourceLineNo">436</span>    }<a name="line.436"></a>
-<span class="sourceLineNo">437</span>  }<a name="line.437"></a>
-<span class="sourceLineNo">438</span><a name="line.438"></a>
-<span class="sourceLineNo">439</span>  /** @return Connection used by this object. */<a name="line.439"></a>
-<span class="sourceLineNo">440</span>  @Override<a name="line.440"></a>
-<span class="sourceLineNo">441</span>  public Connection getConnection() {<a name="line.441"></a>
-<span class="sourceLineNo">442</span>    return connection;<a name="line.442"></a>
-<span class="sourceLineNo">443</span>  }<a name="line.443"></a>
-<span class="sourceLineNo">444</span><a name="line.444"></a>
-<span class="sourceLineNo">445</span>  @Override<a name="line.445"></a>
-<span class="sourceLineNo">446</span>  public boolean tableExists(final TableName tableName) throws IOException {<a name="line.446"></a>
-<span class="sourceLineNo">447</span>    return executeCallable(new RpcRetryingCallable&lt;Boolean&gt;() {<a name="line.447"></a>
-<span class="sourceLineNo">448</span>      @Override<a name="line.448"></a>
-<span class="sourceLineNo">449</span>      protected Boolean rpcCall(int callTimeout) throws Exception {<a name="line.449"></a>
-<span class="sourceLineNo">450</span>        return MetaTableAccessor.tableExists(connection, tableName);<a name="line.450"></a>
-<span class="sourceLineNo">451</span>      }<a name="line.451"></a>
-<span class="sourceLineNo">452</span>    });<a name="line.452"></a>
-<span class="sourceLineNo">453</span>  }<a name="line.453"></a>
-<span class="sourceLineNo">454</span><a name="line.454"></a>
-<span class="sourceLineNo">455</span>  @Override<a name="line.455"></a>
-<span class="sourceLineNo">456</span>  public HTableDescriptor[] listTables() throws IOException {<a name="line.456"></a>
-<span class="sourceLineNo">457</span>    return listTables((Pattern)null, false);<a name="line.457"></a>
-<span class="sourceLineNo">458</span>  }<a name="line.458"></a>
-<span class="sourceLineNo">459</span><a name="line.459"></a>
-<span class="sourceLineNo">460</span>  @Override<a name="line.460"></a>
-<span class="sourceLineNo">461</span>  public HTableDescriptor[] listTables(Pattern pattern) throws IOException {<a name="line.461"></a>
-<span class="sourceLineNo">462</span>    return listTables(pattern, false);<a name="line.462"></a>
-<span class="sourceLineNo">463</span>  }<a name="line.463"></a>
-<span class="sourceLineNo">464</span><a name="line.464"></a>
-<span class="sourceLineNo">465</span>  @Override<a name="line.465"></a>
-<span class="sourceLineNo">466</span>  public HTableDescriptor[] listTables(String regex) throws IOException {<a name="line.466"></a>
-<span class="sourceLineNo">467</span>    return listTables(Pattern.compile(regex), false);<a name="line.467"></a>
-<span class="sourceLineNo">468</span>  }<a name="line.468"></a>
-<span class="sourceLineNo">469</span><a name="line.469"></a>
-<span class="sourceLineNo">470</span>  @Override<a name="line.470"></a>
-<span class="sourceLineNo">471</span>  public HTableDescriptor[] listTables(final Pattern pattern, final boolean includeSysTables)<a name="line.471"></a>
-<span class="sourceLineNo">472</span>      throws IOException {<a name="line.472"></a>
-<span class="sourceLineNo">473</span>    return executeCallable(new MasterCallable&lt;HTableDescriptor[]&gt;(getConnection(),<a name="line.473"></a>
-<span class="sourceLineNo">474</span>        getRpcControllerFactory()) {<a name="line.474"></a>
-<span class="sourceLineNo">475</span>      @Override<a name="line.475"></a>
-<span class="sourceLineNo">476</span>      protected HTableDescriptor[] rpcCall() throws Exception {<a name="line.476"></a>
-<span class="sourceLineNo">477</span>        GetTableDescriptorsRequest req =<a name="line.477"></a>
-<span class="sourceLineNo">478</span>            RequestConverter.buildGetTableDescriptorsRequest(pattern, includeSysTables);<a name="line.478"></a>
-<span class="sourceLineNo">479</span>        return ProtobufUtil.toTableDescriptorList(master.getTableDescriptors(getRpcController(),<a name="line.479"></a>
-<span class="sourceLineNo">480</span>                req)).stream().map(ImmutableHTableDescriptor::new).toArray(HTableDescriptor[]::new);<a name="line.480"></a>
-<span class="sourceLineNo">481</span>      }<a name="line.481"></a>
-<span class="sourceLineNo">482</span>    });<a name="line.482"></a>
+<span class="sourceLineNo">428</span>  /** @return Connection used by this object. */<a name="line.428"></a>
+<span class="sourceLineNo">429</span>  @Override<a name="line.429"></a>
+<span class="sourceLineNo">430</span>  public Connection getConnection() {<a name="line.430"></a>
+<span class="sourceLineNo">431</span>    return connection;<a name="line.431"></a>
+<span class="sourceLineNo">432</span>  }<a name="line.432"></a>
+<span class="sourceLineNo">433</span><a name="line.433"></a>
+<span class="sourceLineNo">434</span>  @Override<a name="line.434"></a>
+<span class="sourceLineNo">435</span>  public boolean tableExists(final TableName tableName) throws IOException {<a name="line.435"></a>
+<span class="sourceLineNo">436</span>    return executeCallable(new RpcRetryingCallable&lt;Boolean&gt;() {<a name="line.436"></a>
+<span class="sourceLineNo">437</span>      @Override<a name="line.437"></a>
+<span class="sourceLineNo">438</span>      protected Boolean rpcCall(int callTimeout) throws Exception {<a name="line.438"></a>
+<span class="sourceLineNo">439</span>        return MetaTableAccessor.tableExists(connection, tableName);<a name="line.439"></a>
+<span class="sourceLineNo">440</span>      }<a name="line.440"></a>
+<span class="sourceLineNo">441</span>    });<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">444</span>  @Override<a name="line.444"></a>
+<span class="sourceLineNo">445</span>  public HTableDescriptor[] listTables() throws IOException {<a name="line.445"></a>
+<span class="sourceLineNo">446</span>    return listTables((Pattern)null, false);<a name="line.446"></a>
+<span class="sourceLineNo">447</span>  }<a name="line.447"></a>
+<span class="sourceLineNo">448</span><a name="line.448"></a>
+<span class="sourceLineNo">449</span>  @Override<a name="line.449"></a>
+<span class="sourceLineNo">450</span>  public HTableDescriptor[] listTables(Pattern pattern) throws IOException {<a name="line.450"></a>
+<span class="sourceLineNo">451</span>    return listTables(pattern, false);<a name="line.451"></a>
+<span class="sourceLineNo">452</span>  }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>  @Override<a name="line.454"></a>
+<span class="sourceLineNo">455</span>  public HTableDescriptor[] listTables(String regex) throws IOException {<a name="line.455"></a>
+<span class="sourceLineNo">456</span>    return listTables(Pattern.compile(regex), false);<a name="line.456"></a>
+<span class="sourceLineNo">457</span>  }<a name="line.457"></a>
+<span class="sourceLineNo">458</span><a name="line.458"></a>
+<span class="sourceLineNo">459</span>  @Override<a name="line.459"></a>
+<span class="sourceLineNo">460</span>  public HTableDescriptor[] listTables(final Pattern pattern, final boolean includeSysTables)<a name="line.460"></a>
+<span class="sourceLineNo">461</span>      throws IOException {<a name="line.461"></a>
+<span class="sourceLineNo">462</span>    return executeCallable(new MasterCallable&lt;HTableDescriptor[]&gt;(getConnection(),<a name="line.462"></a>
+<span class="sourceLineNo">463</span>        getRpcControllerFactory()) {<a name="line.463"></a>
+<span class="sourceLineNo">464</span>      @Override<a name="line.464"></a>
+<span class="sourceLineNo">465</span>      protected HTableDescriptor[] rpcCall() throws Exception {<a name="line.465"></a>
+<span class="sourceLineNo">466</span>        GetTableDescriptorsRequest req =<a name="line.466"></a>
+<span class="sourceLineNo">467</span>            RequestConverter.buildGetTableDescriptorsRequest(pattern, includeSysTables);<a name="line.467"></a>
+<span class="sourceLineNo">468</span>        return ProtobufUtil.toTableDescriptorList(master.getTableDescriptors(getRpcController(),<a name="line.468"></a>
+<span class="sourceLineNo">469</span>                req)).stream().map(ImmutableHTableDescriptor::new).toArray(HTableDescriptor[]::new);<a name="line.469"></a>
+<span class="sourceLineNo">470</span>      }<a name="line.470"></a>
+<span class="sourceLineNo">471</span>    });<a name="line.471"></a>
+<span class="sourceLineNo">472</span>  }<a name="line.472"></a>
+<span class="sourceLineNo">473</span><a name="line.473"></a>
+<span class="sourceLineNo">474</span>  @Override<a name="line.474"></a>
+<span class="sourceLineNo">475</span>  public HTableDescriptor[] listTables(String regex, boolean includeSysTables)<a name="line.475"></a>
+<span class="sourceLineNo">476</span>      throws IOException {<a name="line.476"></a>
+<span class="sourceLineNo">477</span>    return listTables(Pattern.compile(regex), includeSysTables);<a name="line.477"></a>
+<span class="sourceLineNo">478</span>  }<a name="line.478"></a>
+<span class="sourceLineNo">479</span><a name="line.479"></a>
+<span class="sourceLineNo">480</span>  @Override<a name="line.480"></a>
+<span class="sourceLineNo">481</span>  public TableName[] listTableNames() throws IOException {<a name="line.481"></a>
+<span class="sourceLineNo">482</span>    return listTableNames((Pattern)null, false);<a name="line.482"></a>
 <span class="sourceLineNo">483</span>  }<a name="line.483"></a>
 <span class="sourceLineNo">484</span><a name="line.484"></a>
 <span class="sourceLineNo">485</span>  @Override<a name="line.485"></a>
-<span class="sourceLineNo">486</span>  public HTableDescriptor[] listTables(String regex, boolean includeSysTables)<a name="line.486"></a>
-<span class="sourceLineNo">487</span>      throws IOException {<a name="line.487"></a>
-<span class="sourceLineNo">488</span>    return listTables(Pattern.compile(regex), includeSysTables);<a name="line.488"></a>
-<span class="sourceLineNo">489</span>  }<a name="line.489"></a>
-<span class="sourceLineNo">490</span><a name="line.490"></a>
-<span class="sourceLineNo">491</span>  @Override<a name="line.491"></a>
-<span class="sourceLineNo">492</span>  public TableName[] listTableNames() throws IOException {<a name="line.492"></a>
-<span class="sourceLineNo">493</span>    return listTableNames((Pattern)null, false);<a name="line.493"></a>
-<span class="sourceLineNo">494</span>  }<a name="line.494"></a>
-<span class="sourceLineNo">495</span><a name="line.495"></a>
-<span class="sourceLineNo">496</span>  @Override<a name="line.496"></a>
-<span class="sourceLineNo">497</span>  public TableName[] listTableNames(Pattern pattern) throws IOException {<a name="line.497"></a>
-<span class="sourceLineNo">498</span>    return listTableNames(pattern, false);<a name="line.498"></a>
-<span class="sourceLineNo">499</span>  }<a name="line.499"></a>
-<span class="sourceLineNo">500</span><a name="line.500"></a>
-<span class="sourceLineNo">501</span>  @Override<a name="line.501"></a>
-<span class="sourceLineNo">502</span>  public TableName[] listTableNames(String regex) throws IOException {<a name="line.502"></a>
-<span class="sourceLineNo">503</span>    return listTableNames(Pattern.compile(regex), false);<a name="line.503"></a>
-<span class="sourceLineNo">504</span>  }<a name="line.504"></a>
-<span class="sourceLineNo">505</span><a name="line.505"></a>
-<span class="sourceLineNo">506</span>  @Override<a name="line.506"></a>
-<span class="sourceLineNo">507</span>  public TableName[] listTableNames(final Pattern pattern, final boolean includeSysTables)<a name="line.507"></a>
-<span class="sourceLineNo">508</span>      throws IOException {<a name="line.508"></a>
-<span class="sourceLineNo">509</span>    return executeCallable(new MasterCallable&lt;TableName[]&gt;(getConnection(),<a name="line.509"></a>
-<span class="sourceLineNo">510</span>        getRpcControllerFactory()) {<a name="line.510"></a>
-<span class="sourceLineNo">511</span>      @Override<a name="line.511"></a>
-<span class="sourceLineNo">512</span>      protected TableName[] rpcCall() throws Exception {<a name="line.512"></a>
-<span class="sourceLineNo">513</span>        GetTableNamesRequest req =<a name="line.513"></a>
-<span class="sourceLineNo">514</span>            RequestConverter.buildGetTableNamesRequest(pattern, includeSysTables);<a name="line.514"></a>
-<span class="sourceLineNo">515</span>        return ProtobufUtil.getTableNameArray(master.getTableNames(getRpcController(), req)<a name="line.515"></a>
-<span class="sourceLineNo">516</span>            .getTableNamesList());<a name="line.516"></a>
-<span class="sourceLineNo">517</span>      }<a name="line.517"></a>
-<span class="sourceLineNo">518</span>    });<a name="line.518"></a>
-<span class="sourceLineNo">519</span>  }<a name="line.519"></a>
-<span class="sourceLineNo">520</span><a name="line.520"></a>
-<span class="sourceLineNo">521</span>  @Override<a name="line.521"></a>
-<span class="sourceLineNo">522</span>  public TableName[] listTableNames(final String regex, final boolean includeSysTables)<a name="line.522"></a>
-<span class="sourceLineNo">523</span>      throws IOException {<a name="line.523"></a>
-<span class="sourceLineNo">524</span>    return listTableNames(Pattern.compile(regex), includeSysTables);<a name="line.524"></a>
-<span class="sourceLineNo">525</span>  }<a name="line.525"></a>
-<span class="sourceLineNo">526</span><a name="line.526"></a>
-<span class="sourceLineNo">527</span>  @Override<a name="line.527"></a>
-<span class="sourceLineNo">528</span>  public HTableDescriptor getTableDescriptor(final TableName tableName) throws IOException {<a name="line.528"></a>
-<span class="sourceLineNo">529</span>    return getHTableDescriptor(tableName, getConnection(), rpcCallerFactory, rpcControllerFactory,<a name="line.529"></a>
-<span class="sourceLineNo">530</span>       operationTimeout, rpcTimeout);<a name="line.530"></a>
-<span class="sourceLineNo">531</span>  }<a name="line.531"></a>
-<span class="sourceLineNo">532</span><a name="line.532"></a>
-<span class="sourceLineNo">533</span>  static TableDescriptor getTableDescriptor(final TableName tableName, Connection connection,<a name="line.533"></a>
-<span class="sourceLineNo">534</span>      RpcRetryingCallerFactory rpcCallerFactory, final RpcControllerFactory rpcControllerFactory,<a name="line.534"></a>
-<span class="sourceLineNo">535</span>      int operationTimeout, int rpcTimeout) throws IOException {<a name="line.535"></a>
-<span class="sourceLineNo">536</span>    if (tableName == null) return null;<a name="line.536"></a>
-<span class="sourceLineNo">537</span>    TableDescriptor td =<a name="line.537"></a>
-<span class="sourceLineNo">538</span>        executeCallable(new MasterCallable&lt;TableDescriptor&gt;(connection, rpcControllerFactory) {<a name="line.538"></a>
-<span class="sourceLineNo">539</span>      @Override<a name="line.539"></a>
-<span class="sourceLineNo">540</span>      protected TableDescriptor rpcCall() throws Exception {<a name="line.540"></a>
-<span class="sourceLineNo">541</span>        GetTableDescriptorsRequest req =<a name="line.541"></a>
-<span class="sourceLineNo">542</span>            RequestConverter.buildGetTableDescriptorsRequest(tableName);<a name="line.542"></a>
-<span class="sourceLineNo">543</span>        GetTableDescriptorsResponse htds = master.getTableDescriptors(getRpcController(), req);<a name="line.543"></a>
-<span class="sourceLineNo">544</span>        if (!htds.getTableSchemaList().isEmpty()) {<a name="line.544"></a>
-<span class="sourceLineNo">545</span>          return ProtobufUtil.toTableDescriptor(htds.getTableSchemaList().get(0));<a name="line.545"></a>
-<span class="sourceLineNo">546</span>        }<a name="line.546"></a>
-<span class="sourceLineNo">547</span>        return null;<a name="line.547"></a>
-<span class="sourceLineNo">548</span>      }<a name="line.548"></a>
-<span class="sourceLineNo">549</span>    }, rpcCallerFactory, operationTimeout, rpcTimeout);<a name="line.549"></a>
-<span class="sourceLineNo">550</span>    if (td != null) {<a name="line.550"></a>
-<span class="sourceLineNo">551</span>      return td;<a name="line.551"></a>
-<span class="sourceLineNo">552</span>    }<a name="line.552"></a>
-<span class="sourceLineNo">553</span>    throw new TableNotFoundException(tableName.getNameAsString());<a name="line.553"></a>
-<span class="sourceLineNo">554</span>  }<a name="line.554"></a>
-<span class="sourceLineNo">555</span><a name="line.555"></a>
-<span class="sourceLineNo">556</span>  /**<a name="line.556"></a>
-<span class="sourceLineNo">557</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.557"></a>
-<span class="sourceLineNo">558</span>   *             use {@link #getTableDescriptor(TableName,<a name="line.558"></a>
-<span class="sourceLineNo">559</span>   *             Connection, RpcRetryingCallerFactory,RpcControllerFactory,int,int)}<a name="line.559"></a>
-<span class="sourceLineNo">560</span>   */<a name="line.560"></a>
-<span class="sourceLineNo">561</span>  @Deprecated<a name="line.561"></a>
-<span class="sourceLineNo">562</span>  static HTableDescriptor getHTableDescriptor(final TableName tableName, Connection connection,<a name="line.562"></a>
-<span class="sourceLineNo">563</span>      RpcRetryingCallerFactory rpcCallerFactory, final RpcControllerFactory rpcControllerFactory,<a name="line.563"></a>
-<span class="sourceLineNo">564</span>      int operationTimeout, int rpcTimeout) throws IOException {<a name="line.564"></a>
-<span class="sourceLineNo">565</span>    if (tableName == null) return null;<a name="line.565"></a>
-<span class="sourceLineNo">566</span>    HTableDescriptor htd =<a name="line.566"></a>
-<span class="sourceLineNo">567</span>        executeCallable(new MasterCallable&lt;HTableDescriptor&gt;(connection, rpcControllerFactory) {<a name="line.567"></a>
-<span class="sourceLineNo">568</span>      @Override<a name="line.568"></a>
-<span class="sourceLineNo">569</span>      protected HTableDescriptor rpcCall() throws Exception {<a name="line.569"></a>
-<span class="sourceLineNo">570</span>        GetTableDescriptorsRequest req =<a name="line.570"></a>
-<span class="sourceLineNo">571</span>            RequestConverter.buildGetTableDescriptorsRequest(tableName);<a name="line.571"></a>
-<span class="sourceLineNo">572</span>        GetTableDescriptorsResponse htds = master.getTableDescriptors(getRpcController(), req);<a name="line.572"></a>
-<span class="sourceLineNo">573</span>        if (!htds.getTableSchemaList().isEmpty()) {<a name="line.573"></a>
-<span class="sourceLineNo">574</span>          return new ImmutableHTableDescriptor(ProtobufUtil.toTableDescriptor(htds.getTableSchemaList().get(0)));<a name="line.574"></a>
-<span class="sourceLineNo">575</span>        }<a name="line.575"></a>
-<span class="sourceLineNo">576</span>        return null;<a name="line.576"></a>
-<span class="sourceLineNo">577</span>      }<a name="line.577"></a>
-<span class="sourceLineNo">578</span>    }, rpcCallerFactory, operationTimeout, rpcTimeout);<a name="line.578"></a>
-<span class="sourceLineNo">579</span>    if (htd != null) {<a name="line.579"></a>
-<span class="sourceLineNo">580</span>      return new ImmutableHTableDescriptor(htd);<a name="line.580"></a>
-<span class="sourceLineNo">581</span>    }<a name="line.581"></a>
-<span class="sourceLineNo">582</span>    throw new TableNotFoundException(tableName.getNameAsString());<a name="line.582"></a>
-<span class="sourceLineNo">583</span>  }<a name="line.583"></a>
-<span class="sourceLineNo">584</span><a name="line.584"></a>
-<span class="sourceLineNo">585</span>  private long getPauseTime(int tries) {<a name="line.585"></a>
-<span class="sourceLineNo">586</span>    int triesCount = tries;<a name="line.586"></a>
-<span class="sourceLineNo">587</span>    if (triesCount &gt;= HConstants.RETRY_BACKOFF.length) {<a name="line.587"></a>
-<span class="sourceLineNo">588</span>      triesCount = HConstants.RETRY_BACKOFF.length - 1;<a name="line.588"></a>
-<span class="sourceLineNo">589</span>    }<a name="line.589"></a>
-<span class="sourceLineNo">590</span>    return this.pause * HConstants.RETRY_BACKOFF[triesCount];<a name="line.590"></a>
-<span class="sourceLineNo">591</span>  }<a name="line.591"></a>
-<span class="sourceLineNo">592</span><a name="line.592"></a>
-<span class="sourceLineNo">593</span>  @Override<a name="line.593"></a>
-<span class="sourceLineNo">594</span>  public void createTable(TableDescriptor desc)<a name="line.594"></a>
-<span class="sourceLineNo">595</span>  throws IOException {<a name="line.595"></a>
-<span class="sourceLineNo">596</span>    createTable(desc, null);<a name="line.596"></a>
-<span class="sourceLineNo">597</span>  }<a name="line.597"></a>
-<span class="sourceLineNo">598</span><a name="line.598"></a>
-<span class="sourceLineNo">599</span>  @Override<a name="line.599"></a>
-<span class="sourceLineNo">600</span>  public void createTable(TableDescriptor desc, byte [] startKey,<a name="line.600"></a>
-<span class="sourceLineNo">601</span>      byte [] endKey, int numRegions)<a name="line.601"></a>
-<span class="sourceLineNo">602</span>  throws IOException {<a name="line.602"></a>
-<span class="sourceLineNo">603</span>    if(numRegions &lt; 3) {<a name="line.603"></a>
-<span class="sourceLineNo">604</span>      throw new IllegalArgumentException("Must create at least three regions");<a name="line.604"></a>
-<span class="sourceLineNo">605</span>    } else if(Bytes.compareTo(startKey, endKey) &gt;= 0) {<a name="line.605"></a>
-<span class="sourceLineNo">606</span>      throw new IllegalArgumentException("Start key must be smaller than end key");<a name="line.606"></a>
-<span class="sourceLineNo">607</span>    }<a name="line.607"></a>
-<span class="sourceLineNo">608</span>    if (numRegions == 3) {<a name="line.608"></a>
-<span class="sourceLineNo">609</span>      createTable(desc, new byte[][]{startKey, endKey});<a name="line.609"></a>
-<span class="sourceLineNo">610</span>      return;<a name="line.610"></a>
-<span class="sourceLineNo">611</span>    }<a name="line.611"></a>
-<span class="sourceLineNo">612</span>    byte [][] splitKeys = Bytes.split(startKey, endKey, numRegions - 3);<a name="line.612"></a>
-<span class="sourceLineNo">613</span>    if(splitKeys == null || splitKeys.length != numRegions - 1) {<a name="line.613"></a>
-<span class="sourceLineNo">614</span>      throw new IllegalArgumentException("Unable to split key range into enough regions");<a name="line.614"></a>
-<span class="sourceLineNo">615</span>    }<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    createTable(desc, splitKeys);<a name="line.616"></a>
-<span class="sourceLineNo">617</span>  }<a name="line.617"></a>
-<span class="sourceLineNo">618</span><a name="line.618"></a>
-<span class="sourceLineNo">619</span>  @Override<a name="line.619"></a>
-<span class="sourceLineNo">620</span>  public void createTable(final TableDescriptor desc, byte [][] splitKeys)<a name="line.620"></a>
-<span class="sourceLineNo">621</span>      throws IOException {<a name="line.621"></a>
-<span class="sourceLineNo">622</span>    get(createTableAsync(desc, splitKeys), syncWaitTimeout, TimeUnit.MILLISECONDS);<a name="line.622"></a>
-<span class="sourceLineNo">623</span>  }<a name="line.623"></a>
-<span class="sourceLineNo">624</span><a name="line.624"></a>
-<span class="sourceLineNo">625</span>  @Override<a name="line.625"></a>
-<span class="sourceLineNo">626</span>  public Future&lt;Void&gt; createTableAsync(final TableDescriptor desc, final byte[][] splitKeys)<a name="line.626"></a>
-<span class="sourceLineNo">627</span>      throws IOException {<a name="line.627"></a>
-<span class="sourceLineNo">628</span>    if (desc.getTableName() == null) {<a name="line.628"></a>
-<span class="sourceLineNo">629</span>      throw new IllegalArgumentException("TableName cannot be null");<a name="line.629"></a>
-<span class="sourceLineNo">630</span>    }<a name="line.630"></a>
-<span class="sourceLineNo">631</span>    if (splitKeys != null &amp;&amp; splitKeys.length &gt; 0) {<a name="line.631"></a>
-<span class="sourceLineNo">632</span>      Arrays.sort(splitKeys, Bytes.BYTES_COMPARATOR);<a name="line.632"></a>
-<span class="sourceLineNo">633</span>      // Verify there are no duplicate split keys<a name="line.633"></a>
-<span class="sourceLineNo">634</span>      byte[] lastKey = null;<a name="line.634"></a>
-<span class="sourceLineNo">635</span>      for (byte[] splitKey : splitKeys) {<a name="line.635"></a>
-<span class="sourceLineNo">636</span>        if (Bytes.compareTo(splitKey, HConstants.EMPTY_BYTE_ARRAY) == 0) {<a name="l

<TRUNCATED>

Mime
View raw message