http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1a616706/devapidocs/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.html b/devapidocs/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.html index 111eb57..675c3af 100644 --- a/devapidocs/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.html +++ b/devapidocs/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.html @@ -342,8 +342,9 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.htm </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Void.html?is-external=true" title="class or interface in java.lang">Void</a>></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.html#addReplicationPeer-java.lang.String-org.apache.hadoop.hbase.replication.ReplicationPeerConfig-">addReplicationPeer</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId, - <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a> peerConfig)</code> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.html#addReplicationPeer-java.lang.String-org.apache.hadoop.hbase.replication.ReplicationPeerConfig-boolean-">addReplicationPeer</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId, + <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a> peerConfig, + boolean enabled)</code> <div class="block">Add a new replication peer for replicating data to slave cluster</div> </td> </tr> @@ -1373,7 +1374,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.htm <!-- --> </a> <h3>Methods inherited from interface org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html" title="interface in org.apache.hadoop.hbase.client">AsyncAdmin</a></h3> -<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#balance--">balance</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getBackupMasters--">getBackupMasters</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getMaster--">getMaster</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getMasterCoprocessors--">getMasterCoprocessors</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getMasterInfoPort--">getMasterInfoPort</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getRegionServers--">getRegionServers</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#listDeadServers--">listDeadServers</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#listTableDescriptors--">listTableDescriptors</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#listTableNames--">listTableNam es</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#snapshot-java.lang.String-org.apache.hadoop.hbase.TableName-">snapshot</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#snapshot-java.lang.String-org.apache.hadoop.hbase.TableName-org.apache.hadoop.hbase.client.SnapshotType-">snapshot</a></code></li> +<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#addReplicationPeer-java.lang.String-org.apache.hadoop.hbase.replication.ReplicationPeerConfig-">addReplicationPeer</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#balance--">balance</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getBackupMasters--">getBackupMasters</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getMaster--">getMaster</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getMasterCoprocessors--">getMasterCoprocessors</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getMasterInfoPort--">getMasterInfoPort</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#getRegionServers--">getRegionServers</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#listDeadServers--">listDeadServers</a>, <a href="../../../../../org/apa che/hadoop/hbase/client/AsyncAdmin.html#listTableDescriptors--">listTableDescriptors</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#listTableNames--">listTableNames</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#snapshot-java.lang.String-org.apache.hadoop.hbase.TableName-">snapshot</a>, <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#snapshot-java.lang.String-org.apache.hadoop.hbase.TableName-org.apache.hadoop.hbase.client.SnapshotType-">snapshot</a></code></li> </ul> </li> </ul> @@ -2835,22 +2836,24 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.htm </dl> </li> </ul> -<a name="addReplicationPeer-java.lang.String-org.apache.hadoop.hbase.replication.ReplicationPeerConfig-"> +<a name="addReplicationPeer-java.lang.String-org.apache.hadoop.hbase.replication.ReplicationPeerConfig-boolean-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addReplicationPeer</h4> <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Void.html?is-external=true" title="class or interface in java.lang">Void</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.html#line.1503">addReplicationPeer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId, - <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a> peerConfig)</pre> -<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#addReplicationPeer-java.lang.String-org.apache.hadoop.hbase.replication.ReplicationPeerConfig-">AsyncAdmin</a></code></span></div> + <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a> peerConfig, + boolean enabled)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#addReplicationPeer-java.lang.String-org.apache.hadoop.hbase.replication.ReplicationPeerConfig-boolean-">AsyncAdmin</a></code></span></div> <div class="block">Add a new replication peer for replicating data to slave cluster</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> -<dd><code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#addReplicationPeer-java.lang.String-org.apache.hadoop.hbase.replication.ReplicationPeerConfig-">addReplicationPeer</a></code> in interface <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html" title="interface in org.apache.hadoop.hbase.client">AsyncAdmin</a></code></dd> +<dd><code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html#addReplicationPeer-java.lang.String-org.apache.hadoop.hbase.replication.ReplicationPeerConfig-boolean-">addReplicationPeer</a></code> in interface <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html" title="interface in org.apache.hadoop.hbase.client">AsyncAdmin</a></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>peerId</code> - a short name that identifies the peer</dd> <dd><code>peerConfig</code> - configuration for the replication slave cluster</dd> +<dd><code>enabled</code> - peer state, true if ENABLED and false if DISABLED</dd> </dl> </li> </ul>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1a616706/devapidocs/org/apache/hadoop/hbase/client/RequestController.ReturnCode.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/client/RequestController.ReturnCode.html b/devapidocs/org/apache/hadoop/hbase/client/RequestController.ReturnCode.html index 0d8d8ba..ce7bb8d 100644 --- a/devapidocs/org/apache/hadoop/hbase/client/RequestController.ReturnCode.html +++ b/devapidocs/org/apache/hadoop/hbase/client/RequestController.ReturnCode.html @@ -258,7 +258,7 @@ the order they are declared.</div> <ul class="blockList"> <li class="blockList"> <h4>values</h4> -<pre>public static <a href="../../../../../org/apache/hadoop/hbase/client/RequestController.ReturnCode.html" title="enum in org.apache.hadoop.hbase.client">RequestController.ReturnCode</a>[] <a href="../../../../../src-html/org/apache/hadoop/hbase/client/RequestController.ReturnCode.html#line.16">values</a>()</pre> +<pre>public static <a href="../../../../../org/apache/hadoop/hbase/client/RequestController.ReturnCode.html" title="enum in org.apache.hadoop.hbase.client">RequestController.ReturnCode</a>[] <a href="../../../../../src-html/org/apache/hadoop/hbase/client/RequestController.ReturnCode.html#line.121">values</a>()</pre> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows: @@ -278,7 +278,7 @@ for (RequestController.ReturnCode c : RequestController.ReturnCode.values()) <ul class="blockListLast"> <li class="blockList"> <h4>valueOf</h4> -<pre>public static <a href="../../../../../org/apache/hadoop/hbase/client/RequestController.ReturnCode.html" title="enum in org.apache.hadoop.hbase.client">RequestController.ReturnCode</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/RequestController.ReturnCode.html#line.16">valueOf</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> +<pre>public static <a href="../../../../../org/apache/hadoop/hbase/client/RequestController.ReturnCode.html" title="enum in org.apache.hadoop.hbase.client">RequestController.ReturnCode</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/RequestController.ReturnCode.html#line.121">valueOf</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> <div class="block">Returns the enum constant of this type with the specified name. The string must match <i>exactly</i> an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1a616706/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html b/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html index 7cd66a0..2d26f45 100644 --- a/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html +++ b/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html @@ -105,7 +105,7 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>private static interface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.84">ZKAsyncRegistry.CuratorEventProcessor</a><T></pre> +<pre>private static interface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.90">ZKAsyncRegistry.CuratorEventProcessor</a><T></pre> </li> </ul> </div> @@ -149,7 +149,7 @@ var activeTableTab = "activeTableTab"; <ul class="blockListLast"> <li class="blockList"> <h4>process</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html" title="type parameter in ZKAsyncRegistry.CuratorEventProcessor">T</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html#line.85">process</a>(org.apache.curator.framework.api.CuratorEvent event) +<pre><a href="../../../../../org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html" title="type parameter in ZKAsyncRegistry.CuratorEventProcessor">T</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html#line.91">process</a>(org.apache.curator.framework.api.CuratorEvent event) throws <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1a616706/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html b/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html index 58c2c93..a234812 100644 --- a/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html +++ b/devapidocs/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html @@ -351,7 +351,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>exec</h4> -<pre>private static <T> <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><T> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.88">exec</a>(org.apache.curator.framework.api.BackgroundPathable<?> opBuilder, +<pre>private static <T> <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><T> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.94">exec</a>(org.apache.curator.framework.api.BackgroundPathable<?> opBuilder, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, <a href="../../../../../org/apache/hadoop/hbase/client/ZKAsyncRegistry.CuratorEventProcessor.html" title="interface in org.apache.hadoop.hbase.client">ZKAsyncRegistry.CuratorEventProcessor</a><T> processor)</pre> </li> @@ -362,7 +362,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getClusterId</h4> -<pre>private static <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.105">getClusterId</a>(org.apache.curator.framework.api.CuratorEvent event) +<pre>private static <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.111">getClusterId</a>(org.apache.curator.framework.api.CuratorEvent event) throws <a href="../../../../../org/apache/hadoop/hbase/exceptions/DeserializationException.html" title="class in org.apache.hadoop.hbase.exceptions">DeserializationException</a></pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> @@ -376,7 +376,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getClusterId</h4> -<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.115">getClusterId</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.121">getClusterId</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html#getClusterId--">AsyncRegistry</a></code></span></div> <div class="block">Should only be called once. <p> @@ -393,7 +393,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getCuratorFramework</h4> -<pre>org.apache.curator.framework.CuratorFramework <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.120">getCuratorFramework</a>()</pre> +<pre>org.apache.curator.framework.CuratorFramework <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.126">getCuratorFramework</a>()</pre> </li> </ul> <a name="getMetaProto-org.apache.curator.framework.api.CuratorEvent-"> @@ -402,7 +402,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getMetaProto</h4> -<pre>private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.124">getMetaProto</a>(org.apache.curator.framework.api.CuratorEvent event) +<pre>private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.130">getMetaProto</a>(org.apache.curator.framework.api.CuratorEvent event) throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> @@ -416,7 +416,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>tryComplete</h4> -<pre>private static void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.136">tryComplete</a>(org.apache.commons.lang3.mutable.MutableInt remaining, +<pre>private static void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.142">tryComplete</a>(org.apache.commons.lang3.mutable.MutableInt remaining, <a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>[] locs, <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>> future)</pre> </li> @@ -427,7 +427,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getStateAndServerName</h4> -<pre>private <a href="../../../../../org/apache/hadoop/hbase/util/Pair.html" title="class in org.apache.hadoop.hbase.util">Pair</a><<a href="../../../../../org/apache/hadoop/hbase/master/RegionState.State.html" title="enum in org.apache.hadoop.hbase.master">RegionState.State</a>,<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.145">getStateAndServerName</a>(org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer proto)</pre> +<pre>private <a href="../../../../../org/apache/hadoop/hbase/util/Pair.html" title="class in org.apache.hadoop.hbase.util">Pair</a><<a href="../../../../../org/apache/hadoop/hbase/master/RegionState.State.html" title="enum in org.apache.hadoop.hbase.master">RegionState.State</a>,<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.151">getStateAndServerName</a>(org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.MetaRegionServer proto)</pre> </li> </ul> <a name="getMetaRegionLocation--"> @@ -436,7 +436,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getMetaRegionLocation</h4> -<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.159">getMetaRegionLocation</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.165">getMetaRegionLocation</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html#getMetaRegionLocation--">AsyncRegistry</a></code></span></div> <div class="block">Get the location of meta region.</div> <dl> @@ -451,7 +451,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getCurrentNrHRS</h4> -<pre>private static int <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.215">getCurrentNrHRS</a>(org.apache.curator.framework.api.CuratorEvent event)</pre> +<pre>private static int <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.221">getCurrentNrHRS</a>(org.apache.curator.framework.api.CuratorEvent event)</pre> </li> </ul> <a name="getCurrentNrHRS--"> @@ -460,7 +460,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getCurrentNrHRS</h4> -<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.221">getCurrentNrHRS</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.227">getCurrentNrHRS</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html#getCurrentNrHRS--">AsyncRegistry</a></code></span></div> <div class="block">Get the number of 'running' regionservers.</div> <dl> @@ -475,7 +475,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getMasterProto</h4> -<pre>private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.Master <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.225">getMasterProto</a>(org.apache.curator.framework.api.CuratorEvent event) +<pre>private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.Master <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.231">getMasterProto</a>(org.apache.curator.framework.api.CuratorEvent event) throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> @@ -489,7 +489,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getMasterAddress</h4> -<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.236">getMasterAddress</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.242">getMasterAddress</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html#getMasterAddress--">AsyncRegistry</a></code></span></div> <div class="block">Get the address of HMaster.</div> <dl> @@ -504,7 +504,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockList"> <li class="blockList"> <h4>getMasterInfoPort</h4> -<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.249">getMasterInfoPort</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.255">getMasterInfoPort</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html#getMasterInfoPort--">AsyncRegistry</a></code></span></div> <div class="block">Get the info port of HMaster.</div> <dl> @@ -519,7 +519,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry. <ul class="blockListLast"> <li class="blockList"> <h4>close</h4> -<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.255">close</a>()</pre> +<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ZKAsyncRegistry.html#line.261">close</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html#close--">AsyncRegistry</a></code></span></div> <div class="block">Closes this instance and releases any system resources associated with it</div> <dl> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1a616706/devapidocs/org/apache/hadoop/hbase/client/class-use/Connection.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/client/class-use/Connection.html b/devapidocs/org/apache/hadoop/hbase/client/class-use/Connection.html index 00eec75..85fa11b 100644 --- a/devapidocs/org/apache/hadoop/hbase/client/class-use/Connection.html +++ b/devapidocs/org/apache/hadoop/hbase/client/class-use/Connection.html @@ -239,6 +239,10 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><span class="typeNameLabel">Server.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/Server.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">Server.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/Server.html#getConnection--">getConnection</a></span>()</code> <div class="block">Returns a reference to the servers' connection.</div> </td> @@ -1443,17 +1447,35 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><span class="typeNameLabel">RegionCoprocessorEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> +<div class="block">Creates a cluster connection using the passed configuration.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><span class="typeNameLabel">RegionServerCoprocessorEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/coprocessor/RegionServerCoprocessorEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> +<div class="block">Creates a cluster connection using the passed configuration.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><span class="typeNameLabel">MasterCoprocessorEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> +<div class="block">Creates a cluster connection using the passed configuration.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">RegionCoprocessorEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#getConnection--">getConnection</a></span>()</code> <div class="block">Be careful RPC'ing from a Coprocessor context.</div> </td> </tr> -<tr class="rowColor"> +<tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">RegionServerCoprocessorEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/coprocessor/RegionServerCoprocessorEnvironment.html#getConnection--">getConnection</a></span>()</code> <div class="block">Be careful RPC'ing from a Coprocessor context.</div> </td> </tr> -<tr class="altColor"> +<tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">MasterCoprocessorEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#getConnection--">getConnection</a></span>()</code> <div class="block">Be careful RPC'ing from a Coprocessor context.</div> @@ -1637,17 +1659,13 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div> <tbody> <tr class="altColor"> <td class="colFirst"><code>private <a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> -<td class="colLast"><span class="typeNameLabel">MasterCoprocessorHost.MasterEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterEnvironment.html#connection">connection</a></span></code> </td> -</tr> -<tr class="rowColor"> -<td class="colFirst"><code>private <a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">CatalogJanitor.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/CatalogJanitor.html#connection">connection</a></span></code> </td> </tr> -<tr class="altColor"> +<tr class="rowColor"> <td class="colFirst"><code>private <a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">SnapshotOfRegionAssignmentFromMeta.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/SnapshotOfRegionAssignmentFromMeta.html#connection">connection</a></span></code> </td> </tr> -<tr class="rowColor"> +<tr class="altColor"> <td class="colFirst"><code>private <a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">RegionPlacementMaintainer.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/RegionPlacementMaintainer.html#connection">connection</a></span></code> </td> </tr> @@ -1662,6 +1680,10 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><span class="typeNameLabel">MasterCoprocessorHost.MasterEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">MasterCoprocessorHost.MasterEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterEnvironment.html#getConnection--">getConnection</a></span>()</code> </td> </tr> </tbody> @@ -2125,14 +2147,6 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div> <td class="colFirst"><code>private <a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">SecureBulkLoadManager.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/SecureBulkLoadManager.html#conn">conn</a></span></code> </td> </tr> -<tr class="rowColor"> -<td class="colFirst"><code>private <a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> -<td class="colLast"><span class="typeNameLabel">RegionServerCoprocessorHost.RegionServerEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/RegionServerCoprocessorHost.RegionServerEnvironment.html#connection">connection</a></span></code> </td> -</tr> -<tr class="altColor"> -<td class="colFirst"><code>private <a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> -<td class="colLast"><span class="typeNameLabel">RegionCoprocessorHost.RegionEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.RegionEnvironment.html#connection">connection</a></span></code> </td> -</tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> @@ -2144,14 +2158,26 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> -<td class="colLast"><span class="typeNameLabel">RegionServerCoprocessorHost.RegionServerEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/RegionServerCoprocessorHost.RegionServerEnvironment.html#getConnection--">getConnection</a></span>()</code> </td> +<td class="colLast"><span class="typeNameLabel">RegionServerCoprocessorHost.RegionServerEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/RegionServerCoprocessorHost.RegionServerEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> -<td class="colLast"><span class="typeNameLabel">RegionCoprocessorHost.RegionEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.RegionEnvironment.html#getConnection--">getConnection</a></span>()</code> </td> +<td class="colLast"><span class="typeNameLabel">RegionCoprocessorHost.RegionEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.RegionEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><span class="typeNameLabel">HRegionServer.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/HRegionServer.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><span class="typeNameLabel">RegionServerCoprocessorHost.RegionServerEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/RegionServerCoprocessorHost.RegionServerEnvironment.html#getConnection--">getConnection</a></span>()</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><span class="typeNameLabel">RegionCoprocessorHost.RegionEnvironment.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/RegionCoprocessorHost.RegionEnvironment.html#getConnection--">getConnection</a></span>()</code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">HRegionServer.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/regionserver/HRegionServer.html#getConnection--">getConnection</a></span>()</code> </td> </tr> </tbody> @@ -2224,10 +2250,14 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div> </tr> <tbody> <tr class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><span class="typeNameLabel">ReplicationSyncUp.DummyServer.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/replication/regionserver/ReplicationSyncUp.DummyServer.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> </td> +</tr> +<tr class="rowColor"> <td class="colFirst"><code>private <a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">ReplicationSink.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/replication/regionserver/ReplicationSink.html#getConnection--">getConnection</a></span>()</code> </td> </tr> -<tr class="rowColor"> +<tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><span class="typeNameLabel">ReplicationSourceManager.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.html#getConnection--">getConnection</a></span>()</code> </td> </tr> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1a616706/devapidocs/org/apache/hadoop/hbase/client/package-tree.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/client/package-tree.html b/devapidocs/org/apache/hadoop/hbase/client/package-tree.html index 665a535..71ed052 100644 --- a/devapidocs/org/apache/hadoop/hbase/client/package-tree.html +++ b/devapidocs/org/apache/hadoop/hbase/client/package-tree.html @@ -542,24 +542,24 @@ <ul> <li type="circle">java.lang.<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a><E> (implements java.lang.<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>, java.io.<a href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>) <ul> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AbstractResponse.ResponseType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AbstractResponse.ResponseType</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/CompactionState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">CompactionState</span></a></li> <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/RequestController.ReturnCode.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">RequestController.ReturnCode</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/MobCompactPartitionPolicy.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">MobCompactPartitionPolicy</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/IsolationLevel.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">IsolationLevel</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/CompactionState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">CompactionState</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Scan.ReadType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">Scan.ReadType</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/CompactType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">CompactType</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AbstractResponse.ResponseType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AbstractResponse.ResponseType</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/ScannerCallable.MoreResults.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">ScannerCallable.MoreResults</span></a></li> <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Durability.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">Durability</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/MasterSwitchType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">MasterSwitchType</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TableState.State.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">TableState.State</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncScanSingleRegionRpcRetryingCaller.ScanControllerState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncScanSingleRegionRpcRetryingCaller.ScanControllerState</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/IsolationLevel.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">IsolationLevel</span></a></li> <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/RegionLocateType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">RegionLocateType</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.Retry.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncRequestFutureImpl.Retry</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/MobCompactPartitionPolicy.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">MobCompactPartitionPolicy</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Consistency.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">Consistency</span></a></li> <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncProcessTask.SubmittedRows.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncProcessTask.SubmittedRows</span></a></li> <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncScanSingleRegionRpcRetryingCaller.ScanResumerState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncScanSingleRegionRpcRetryingCaller.ScanResumerState</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/ScannerCallable.MoreResults.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">ScannerCallable.MoreResults</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncScanSingleRegionRpcRetryingCaller.ScanControllerState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncScanSingleRegionRpcRetryingCaller.ScanControllerState</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Consistency.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">Consistency</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/CompactType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">CompactType</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/MasterSwitchType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">MasterSwitchType</span></a></li> +<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.Retry.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncRequestFutureImpl.Retry</span></a></li> <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/SnapshotType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">SnapshotType</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Scan.ReadType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">Scan.ReadType</span></a></li> -<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TableState.State.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">TableState.State</span></a></li> </ul> </li> </ul> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1a616706/devapidocs/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html b/devapidocs/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html index ebffb16..be05971 100644 --- a/devapidocs/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html +++ b/devapidocs/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":6,"i1":6,"i2":6}; +var methods = {"i0":6,"i1":6,"i2":6,"i3":6}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -111,7 +111,7 @@ var activeTableTab = "activeTableTab"; <br> <pre>@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving -public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#line.32">MasterCoprocessorEnvironment</a> +public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#line.35">MasterCoprocessorEnvironment</a> extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.html" title="interface in org.apache.hadoop.hbase">CoprocessorEnvironment</a><<a href="../../../../../org/apache/hadoop/hbase/coprocessor/MasterCoprocessor.html" title="interface in org.apache.hadoop.hbase.coprocessor">MasterCoprocessor</a>></pre> </li> </ul> @@ -133,17 +133,23 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> +<div class="block">Creates a cluster connection using the passed configuration.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#getConnection--">getConnection</a></span>()</code> <div class="block">Be careful RPC'ing from a Coprocessor context.</div> </td> </tr> -<tr id="i1" class="rowColor"> +<tr id="i2" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/metrics/MetricRegistry.html" title="interface in org.apache.hadoop.hbase.metrics">MetricRegistry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#getMetricRegistryForMaster--">getMetricRegistryForMaster</a></span>()</code> <div class="block">Returns a MetricRegistry that can be used to track metrics at the master level.</div> </td> </tr> -<tr id="i2" class="altColor"> +<tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#getServerName--">getServerName</a></span>()</code> </td> </tr> @@ -175,7 +181,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h <ul class="blockList"> <li class="blockList"> <h4>getServerName</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#line.36">getServerName</a>()</pre> +<pre><a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#line.39">getServerName</a>()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Hosting Server's ServerName</dd> @@ -188,29 +194,57 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h <ul class="blockList"> <li class="blockList"> <h4>getConnection</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#line.51">getConnection</a>()</pre> +<pre><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#line.56">getConnection</a>()</pre> <div class="block">Be careful RPC'ing from a Coprocessor context. RPC's will fail, stall, retry, and/or crawl because the remote side is not online, is struggling or it is on the other side of a network partition. Any use of Connection from inside a Coprocessor must be able to handle all such hiccups. - <p>Using a Connection to get at a local resource -- say a Region that is on the local + <p>Using this Connection to get at a local resource -- say a Region that is on the local Server or using Admin Interface from a Coprocessor hosted on the Master -- will result in a - short-circuit of the RPC framework to make a direct invocation avoiding RPC (and - protobuf marshalling/unmarshalling).</div> + short-circuit of the RPC framework to make a direct invocation avoiding RPC. + <p> + Note: If you want to create Connection with your own Configuration and NOT use the Master's + Connection (though its cache of locations will be warm, and its life-cycle is not the concern + of the CP), see <a href="../../../../../org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-"><code>createConnection(Configuration)</code></a>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The host's Connection to the Cluster.</dd> </dl> </li> </ul> +<a name="createConnection-org.apache.hadoop.conf.Configuration-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createConnection</h4> +<pre><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#line.70">createConnection</a>(org.apache.hadoop.conf.Configuration conf) + throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Creates a cluster connection using the passed configuration. + <p>Using this Connection to get at a local resource -- say a Region that is on the local + Server or using Admin Interface from a Coprocessor hosted on the Master -- will result in a + short-circuit of the RPC framework to make a direct invocation avoiding RPC. + <p> + Note: HBase will NOT cache/maintain this Connection. If Coprocessors need to cache and reuse + this connection, it has to be done by Coprocessors. Also make sure to close it after use.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>conf</code> - configuration</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>Connection created using the passed conf.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> <a name="getMetricRegistryForMaster--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>getMetricRegistryForMaster</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/metrics/MetricRegistry.html" title="interface in org.apache.hadoop.hbase.metrics">MetricRegistry</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#line.60">getMetricRegistryForMaster</a>()</pre> +<pre><a href="../../../../../org/apache/hadoop/hbase/metrics/MetricRegistry.html" title="interface in org.apache.hadoop.hbase.metrics">MetricRegistry</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/MasterCoprocessorEnvironment.html#line.79">getMetricRegistryForMaster</a>()</pre> <div class="block">Returns a MetricRegistry that can be used to track metrics at the master level. <p>See ExampleMasterObserverWithMetrics class in the hbase-examples modules for examples http://git-wip-us.apache.org/repos/asf/hbase-site/blob/1a616706/devapidocs/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html b/devapidocs/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html index a1a9398..d0005d1 100644 --- a/devapidocs/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html +++ b/devapidocs/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6}; +var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -111,7 +111,7 @@ var activeTableTab = "activeTableTab"; <br> <pre>@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving -public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.37">RegionCoprocessorEnvironment</a> +public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.39">RegionCoprocessorEnvironment</a> extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.html" title="interface in org.apache.hadoop.hbase">CoprocessorEnvironment</a><<a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessor.html" title="interface in org.apache.hadoop.hbase.coprocessor">RegionCoprocessor</a>></pre> </li> </ul> @@ -133,33 +133,39 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-">createConnection</a></span>(org.apache.hadoop.conf.Configuration conf)</code> +<div class="block">Creates a cluster connection using the passed configuration.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#getConnection--">getConnection</a></span>()</code> <div class="block">Be careful RPC'ing from a Coprocessor context.</div> </td> </tr> -<tr id="i1" class="rowColor"> +<tr id="i2" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/metrics/MetricRegistry.html" title="interface in org.apache.hadoop.hbase.metrics">MetricRegistry</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#getMetricRegistryForRegionServer--">getMetricRegistryForRegionServer</a></span>()</code> <div class="block">Returns a MetricRegistry that can be used to track metrics at the region server level.</div> </td> </tr> -<tr id="i2" class="altColor"> +<tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/regionserver/OnlineRegions.html" title="interface in org.apache.hadoop.hbase.regionserver">OnlineRegions</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#getOnlineRegions--">getOnlineRegions</a></span>()</code> </td> </tr> -<tr id="i3" class="rowColor"> +<tr id="i4" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/regionserver/Region.html" title="interface in org.apache.hadoop.hbase.regionserver">Region</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#getRegion--">getRegion</a></span>()</code> </td> </tr> -<tr id="i4" class="altColor"> +<tr id="i5" class="rowColor"> <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#getRegionInfo--">getRegionInfo</a></span>()</code> </td> </tr> -<tr id="i5" class="rowColor"> +<tr id="i6" class="altColor"> <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#getServerName--">getServerName</a></span>()</code> </td> </tr> -<tr id="i6" class="altColor"> +<tr id="i7" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#getSharedData--">getSharedData</a></span>()</code> </td> </tr> @@ -191,7 +197,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h <ul class="blockList"> <li class="blockList"> <h4>getRegion</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/regionserver/Region.html" title="interface in org.apache.hadoop.hbase.regionserver">Region</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.39">getRegion</a>()</pre> +<pre><a href="../../../../../org/apache/hadoop/hbase/regionserver/Region.html" title="interface in org.apache.hadoop.hbase.regionserver">Region</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.41">getRegion</a>()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the region associated with this coprocessor</dd> @@ -204,7 +210,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h <ul class="blockList"> <li class="blockList"> <h4>getRegionInfo</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.42">getRegionInfo</a>()</pre> +<pre><a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.44">getRegionInfo</a>()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>region information for the region this coprocessor is running on</dd> @@ -217,7 +223,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h <ul class="blockList"> <li class="blockList"> <h4>getOnlineRegions</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/regionserver/OnlineRegions.html" title="interface in org.apache.hadoop.hbase.regionserver">OnlineRegions</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.47">getOnlineRegions</a>()</pre> +<pre><a href="../../../../../org/apache/hadoop/hbase/regionserver/OnlineRegions.html" title="interface in org.apache.hadoop.hbase.regionserver">OnlineRegions</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.49">getOnlineRegions</a>()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Interface to Map of regions online on this RegionServer <a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#getServerName--"><code>getServerName()</code></a>}.</dd> @@ -230,7 +236,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h <ul class="blockList"> <li class="blockList"> <h4>getSharedData</h4> -<pre><a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.50">getSharedData</a>()</pre> +<pre><a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.52">getSharedData</a>()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>shared data between all instances of this coprocessor</dd> @@ -243,7 +249,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h <ul class="blockList"> <li class="blockList"> <h4>getServerName</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.55">getServerName</a>()</pre> +<pre><a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.57">getServerName</a>()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Hosting Server's ServerName</dd> @@ -256,7 +262,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h <ul class="blockList"> <li class="blockList"> <h4>getConnection</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.70">getConnection</a>()</pre> +<pre><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.74">getConnection</a>()</pre> <div class="block">Be careful RPC'ing from a Coprocessor context. RPC's will fail, stall, retry, and/or crawl because the remote side is not online, is struggling or it is on the other side of a network partition. Any use of Connection from @@ -264,21 +270,49 @@ extends <a href="../../../../../org/apache/hadoop/hbase/CoprocessorEnvironment.h <p>Using a Connection to get at a local resource -- say a Region that is on the local Server or using Admin Interface from a Coprocessor hosted on the Master -- will result in a - short-circuit of the RPC framework to make a direct invocation avoiding RPC (and - protobuf marshalling/unmarshalling).</div> + short-circuit of the RPC framework to make a direct invocation avoiding RPC. +<p> + Note: If you want to create Connection with your own Configuration and NOT use the RegionServer + Connection (though its cache of locations will be warm, and its life-cycle is not the concern + of the CP), see <a href="../../../../../org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#createConnection-org.apache.hadoop.conf.Configuration-"><code>createConnection(Configuration)</code></a>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The host's Connection to the Cluster.</dd> </dl> </li> </ul> +<a name="createConnection-org.apache.hadoop.conf.Configuration-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createConnection</h4> +<pre><a href="../../../../../org/apache/hadoop/hbase/client/Connection.html" title="interface in org.apache.hadoop.hbase.client">Connection</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.88">createConnection</a>(org.apache.hadoop.conf.Configuration conf) + throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> +<div class="block">Creates a cluster connection using the passed configuration. + <p>Using this Connection to get at a local resource -- say a Region that is on the local + Server or using Admin Interface from a Coprocessor hosted on the Master -- will result in a + short-circuit of the RPC framework to make a direct invocation avoiding RPC. + <p> + Note: HBase will NOT cache/maintain this Connection. If Coprocessors need to cache and reuse + this connection, it has to be done by Coprocessors. Also make sure to close it after use.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>conf</code> - configuration</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>Connection created using the passed conf.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> +</dl> +</li> +</ul> <a name="getMetricRegistryForRegionServer--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>getMetricRegistryForRegionServer</h4> -<pre><a href="../../../../../org/apache/hadoop/hbase/metrics/MetricRegistry.html" title="interface in org.apache.hadoop.hbase.metrics">MetricRegistry</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.87">getMetricRegistryForRegionServer</a>()</pre> +<pre><a href="../../../../../org/apache/hadoop/hbase/metrics/MetricRegistry.html" title="interface in org.apache.hadoop.hbase.metrics">MetricRegistry</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/coprocessor/RegionCoprocessorEnvironment.html#line.105">getMetricRegistryForRegionServer</a>()</pre> <div class="block">Returns a MetricRegistry that can be used to track metrics at the region server level. All metrics tracked at this level will be shared by all the coprocessor instances of the same class in the same region server process. Note that there will be one