You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by mi...@apache.org on 2016/06/22 16:14:55 UTC
[23/52] [partial] hbase-site git commit: Published site at
3e0602be1665e6170b0addec59bbe8785da300b0.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/ae5da13b/devapidocs/org/apache/hadoop/hbase/replication/ReplicationPeers.html
----------------------------------------------------------------------
diff --git a/devapidocs/org/apache/hadoop/hbase/replication/ReplicationPeers.html b/devapidocs/org/apache/hadoop/hbase/replication/ReplicationPeers.html
index e514b71..c83391f 100644
--- a/devapidocs/org/apache/hadoop/hbase/replication/ReplicationPeers.html
+++ b/devapidocs/org/apache/hadoop/hbase/replication/ReplicationPeers.html
@@ -121,41 +121,41 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#addPeer(java.lang.String,%20org.apache.hadoop.hbase.replication.ReplicationPeerConfig)">addPeer</a></strong>(<a href="http://docs.oracle.com/javase/7/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>
-<div class="block">Add a new remote slave cluster for replication.</div>
-</td>
-</tr>
-<tr class="rowColor">
-<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#disablePeer(java.lang.String)">disablePeer</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
<div class="block">Stop the replication to the specified remote slave cluster.</div>
</td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#enablePeer(java.lang.String)">enablePeer</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
<div class="block">Restart the replication to the specified remote slave cluster.</div>
</td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getAllPeerConfigs()">getAllPeerConfigs</a></strong>()</code>
<div class="block">List the cluster replication configs of all remote slave clusters (whether they are
enabled/disabled or connected/disconnected).</div>
</td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getAllPeerIds()">getAllPeerIds</a></strong>()</code>
<div class="block">List the peer ids of all remote slave clusters (whether they are enabled/disabled or
connected/disconnected).</div>
</td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeer.html" title="interface in org.apache.hadoop.hbase.replication">ReplicationPeer</a></code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getPeer(java.lang.String)">getPeer</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
-<div class="block">Returns the ReplicationPeer</div>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getConnectedPeer(java.lang.String)">getConnectedPeer</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
+<div class="block">Returns the ReplicationPeer for the specified connected peer.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getConnectedPeerIds()">getConnectedPeerIds</a></strong>()</code>
+<div class="block">Returns the set of peerIds of the clusters that have been connected and have an underlying
+ ReplicationPeer.</div>
</td>
</tr>
<tr class="altColor">
@@ -165,67 +165,74 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
</td>
</tr>
<tr class="rowColor">
-<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getPeerIds()">getPeerIds</a></strong>()</code>
-<div class="block">Returns the set of peerIds defined</div>
-</td>
-</tr>
-<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getPeerTableCFsConfig(java.lang.String)">getPeerTableCFsConfig</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
-<div class="block">Get the table and column-family list string of the peer from ZK.</div>
+<div class="block">Get the table and column-family list string of the peer from the underlying storage.</div>
</td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getReplicationPeerConfig(java.lang.String)">getReplicationPeerConfig</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
<div class="block">Returns the configured ReplicationPeerConfig for this peerId</div>
</td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getStatusOfPeer(java.lang.String)">getStatusOfPeer</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
<div class="block">Get the replication status for the specified connected remote slave cluster.</div>
</td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getStatusOfPeerFromBackingStore(java.lang.String)">getStatusOfPeerFromBackingStore</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
<div class="block">Get the replication status for the specified remote slave cluster, which doesn't
have to be connected.</div>
</td>
</tr>
-<tr class="altColor">
+<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#init()">init</a></strong>()</code>
<div class="block">Initialize the ReplicationPeers interface.</div>
</td>
</tr>
-<tr class="rowColor">
+<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#peerAdded(java.lang.String)">peerAdded</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code> </td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#peerConnected(java.lang.String)">peerConnected</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
+<div class="block">Method called after a peer has been connected.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#peerDisconnected(java.lang.String)">peerDisconnected</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
+<div class="block">Method called after a peer has been disconnected.</div>
+</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#peerRemoved(java.lang.String)">peerRemoved</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code> </td>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#registerPeer(java.lang.String,%20org.apache.hadoop.hbase.replication.ReplicationPeerConfig)">registerPeer</a></strong>(<a href="http://docs.oracle.com/javase/7/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>
+<div class="block">Add a new remote slave cluster for replication.</div>
+</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#removePeer(java.lang.String)">removePeer</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
-<div class="block">Removes a remote slave cluster and stops the replication to it.</div>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#setPeerTableCFsConfig(java.lang.String,%20java.util.Map)">setPeerTableCFsConfig</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId,
+ <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,? extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>> tableCFs)</code>
+<div class="block">Set the table and column-family list string of the peer to the underlying storage.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#setPeerTableCFsConfig(java.lang.String,%20java.util.Map)">setPeerTableCFsConfig</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,? extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>> tableCFs)</code>
-<div class="block">Set the table and column-family list string of the peer to ZK.</div>
+<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#unregisterPeer(java.lang.String)">unregisterPeer</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</code>
+<div class="block">Removes a remote slave cluster and stops the replication to it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#updatePeerConfig(java.lang.String,%20org.apache.hadoop.hbase.replication.ReplicationPeerConfig)">updatePeerConfig</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id,
- <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a> peerConfig)</code> </td>
+ <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a> peerConfig)</code>
+<div class="block">Update the peerConfig for the a given peer cluster</div>
+</td>
</tr>
</table>
</li>
@@ -255,54 +262,61 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<dd><code><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></code></dd></dl>
</li>
</ul>
-<a name="addPeer(java.lang.String, org.apache.hadoop.hbase.replication.ReplicationPeerConfig)">
+<a name="registerPeer(java.lang.String, org.apache.hadoop.hbase.replication.ReplicationPeerConfig)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>addPeer</h4>
-<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.54">addPeer</a>(<a href="http://docs.oracle.com/javase/7/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)
- throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
+<h4>registerPeer</h4>
+<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.54">registerPeer</a>(<a href="http://docs.oracle.com/javase/7/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)
+ throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
<div class="block">Add a new remote slave cluster for replication.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short that identifies the cluster</dd><dd><code>peerConfig</code> - configuration for the replication slave cluster</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></code></dd></dl>
</li>
</ul>
-<a name="removePeer(java.lang.String)">
+<a name="unregisterPeer(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>removePeer</h4>
-<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.61">removePeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
- throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
+<h4>unregisterPeer</h4>
+<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.61">unregisterPeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
+ throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
<div class="block">Removes a remote slave cluster and stops the replication to it.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short that identifies the cluster</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></code></dd></dl>
</li>
</ul>
-<a name="peerAdded(java.lang.String)">
+<a name="peerConnected(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>peerAdded</h4>
-<pre>boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.63">peerAdded</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
- throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
-<dl><dt><span class="strong">Throws:</span></dt>
+<h4>peerConnected</h4>
+<pre>boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.70">peerConnected</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
+ throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
+<div class="block">Method called after a peer has been connected. It will create a ReplicationPeer to track the
+ newly connected cluster.</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short that identifies the cluster</dd>
+<dt><span class="strong">Returns:</span></dt><dd>whether a ReplicationPeer was successfully created</dd>
+<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></code></dd></dl>
</li>
</ul>
-<a name="peerRemoved(java.lang.String)">
+<a name="peerDisconnected(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>peerRemoved</h4>
-<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.65">peerRemoved</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</pre>
+<h4>peerDisconnected</h4>
+<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.77">peerDisconnected</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</pre>
+<div class="block">Method called after a peer has been disconnected. It will remove the ReplicationPeer that
+ tracked the disconnected cluster.</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short that identifies the cluster</dd></dl>
</li>
</ul>
<a name="enablePeer(java.lang.String)">
@@ -311,7 +325,7 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>enablePeer</h4>
-<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.71">enablePeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
+<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.83">enablePeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
<div class="block">Restart the replication to the specified remote slave cluster.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short that identifies the cluster</dd>
@@ -325,7 +339,7 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>disablePeer</h4>
-<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.77">disablePeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
+<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.89">disablePeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
<div class="block">Stop the replication to the specified remote slave cluster.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short that identifies the cluster</dd>
@@ -339,9 +353,9 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>getPeerTableCFsConfig</h4>
-<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/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/replication/ReplicationPeers.html#line.83">getPeerTableCFsConfig</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
+<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/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/replication/ReplicationPeers.html#line.95">getPeerTableCFsConfig</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
-<div class="block">Get the table and column-family list string of the peer from ZK.</div>
+<div class="block">Get the table and column-family list string of the peer from the underlying storage.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short that identifies the cluster</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></code></dd></dl>
@@ -353,35 +367,38 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>setPeerTableCFsConfig</h4>
-<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.91">setPeerTableCFsConfig</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId,
+<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.103">setPeerTableCFsConfig</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>,? extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>> tableCFs)
throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
-<div class="block">Set the table and column-family list string of the peer to ZK.</div>
+<div class="block">Set the table and column-family list string of the peer to the underlying storage.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short that identifies the cluster</dd><dd><code>tableCFs</code> - the table and column-family list which will be replicated for this peer</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></code></dd></dl>
</li>
</ul>
-<a name="getPeer(java.lang.String)">
+<a name="getConnectedPeer(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>getPeer</h4>
-<pre><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeer.html" title="interface in org.apache.hadoop.hbase.replication">ReplicationPeer</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.100">getPeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</pre>
-<div class="block">Returns the ReplicationPeer</div>
+<h4>getConnectedPeer</h4>
+<pre><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeer.html" title="interface in org.apache.hadoop.hbase.replication">ReplicationPeer</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.114">getConnectedPeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</pre>
+<div class="block">Returns the ReplicationPeer for the specified connected peer. This ReplicationPeer will
+ continue to track changes to the Peer's state and config. This method returns null if no
+ peer has been connected with the given peerId.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - id for the peer</dd>
<dt><span class="strong">Returns:</span></dt><dd>ReplicationPeer object</dd></dl>
</li>
</ul>
-<a name="getPeerIds()">
+<a name="getConnectedPeerIds()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>getPeerIds</h4>
-<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://docs.oracle.com/javase/7/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/replication/ReplicationPeers.html#line.106">getPeerIds</a>()</pre>
-<div class="block">Returns the set of peerIds defined</div>
+<h4>getConnectedPeerIds</h4>
+<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://docs.oracle.com/javase/7/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/replication/ReplicationPeers.html#line.121">getConnectedPeerIds</a>()</pre>
+<div class="block">Returns the set of peerIds of the clusters that have been connected and have an underlying
+ ReplicationPeer.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a Set of Strings for peerIds</dd></dl>
</li>
</ul>
@@ -391,7 +408,7 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>getStatusOfPeer</h4>
-<pre>boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.116">getStatusOfPeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</pre>
+<pre>boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.131">getStatusOfPeer</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)</pre>
<div class="block">Get the replication status for the specified connected remote slave cluster.
The value might be read from cache, so it is recommended to
use <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeers.html#getStatusOfPeerFromBackingStore(java.lang.String)"><code>getStatusOfPeerFromBackingStore(String)</code></a>
@@ -406,7 +423,7 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>getStatusOfPeerFromBackingStore</h4>
-<pre>boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.125">getStatusOfPeerFromBackingStore</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
+<pre>boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.140">getStatusOfPeerFromBackingStore</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
<div class="block">Get the replication status for the specified remote slave cluster, which doesn't
have to be connected. The state is read directly from the backing store.</div>
@@ -422,7 +439,7 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>getAllPeerConfigs</h4>
-<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.132">getAllPeerConfigs</a>()</pre>
+<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.147">getAllPeerConfigs</a>()</pre>
<div class="block">List the cluster replication configs of all remote slave clusters (whether they are
enabled/disabled or connected/disconnected).</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A map of peer ids to peer cluster keys</dd></dl>
@@ -434,7 +451,7 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>getAllPeerIds</h4>
-<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/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/replication/ReplicationPeers.html#line.139">getAllPeerIds</a>()</pre>
+<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/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/replication/ReplicationPeers.html#line.154">getAllPeerIds</a>()</pre>
<div class="block">List the peer ids of all remote slave clusters (whether they are enabled/disabled or
connected/disconnected).</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A list of peer ids</dd></dl>
@@ -446,7 +463,7 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>getReplicationPeerConfig</h4>
-<pre><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.146">getReplicationPeerConfig</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
+<pre><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.161">getReplicationPeerConfig</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
<div class="block">Returns the configured ReplicationPeerConfig for this peerId</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short name that identifies the cluster</dd>
@@ -461,7 +478,7 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockList">
<li class="blockList">
<h4>getPeerConf</h4>
-<pre><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/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a>,org.apache.hadoop.conf.Configuration> <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.153">getPeerConf</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
+<pre><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/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a>,org.apache.hadoop.conf.Configuration> <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.168">getPeerConf</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> peerId)
throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
<div class="block">Returns the configuration needed to talk to the remote slave cluster.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>peerId</code> - a short that identifies the cluster</dd>
@@ -476,10 +493,12 @@ public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/replic
<ul class="blockListLast">
<li class="blockList">
<h4>updatePeerConfig</h4>
-<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.155">updatePeerConfig</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id,
+<pre>void <a href="../../../../../src-html/org/apache/hadoop/hbase/replication/ReplicationPeers.html#line.176">updatePeerConfig</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id,
<a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationPeerConfig.html" title="class in org.apache.hadoop.hbase.replication">ReplicationPeerConfig</a> peerConfig)
throws <a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></pre>
-<dl><dt><span class="strong">Throws:</span></dt>
+<div class="block">Update the peerConfig for the a given peer cluster</div>
+<dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - a short that identifies the cluster</dd><dd><code>peerConfig</code> - new config for the peer cluster</dd>
+<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/replication/ReplicationException.html" title="class in org.apache.hadoop.hbase.replication">ReplicationException</a></code></dd></dl>
</li>
</ul>