|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.common.util.concurrent.AbstractService
org.apache.hadoop.hbase.replication.BaseReplicationEndpoint
org.apache.hadoop.hbase.replication.HBaseReplicationEndpoint
@InterfaceAudience.Private public abstract class HBaseReplicationEndpoint
A BaseReplicationEndpoint for replication endpoints whose
target cluster is an HBase cluster.
| Nested Class Summary | |
|---|---|
static class |
HBaseReplicationEndpoint.PeerRegionServerListener
Tracks changes to the list of region servers in a peer's cluster. |
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.replication.ReplicationEndpoint |
|---|
ReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContext |
| Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service |
|---|
com.google.common.util.concurrent.Service.State |
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hbase.replication.BaseReplicationEndpoint |
|---|
ctx |
| Constructor Summary | |
|---|---|
HBaseReplicationEndpoint()
|
|
| Method Summary | |
|---|---|
void |
abort(String why,
Throwable e)
|
protected void |
disconnect()
|
protected void |
doStart()
|
protected void |
doStop()
|
protected static List<ServerName> |
fetchSlavesAddresses(ZooKeeperWatcher zkw)
Get the list of all the region servers from the specified peer |
long |
getLastRegionServerUpdate()
Get the timestamp at which the last change occurred to the list of region servers to replicate to. |
UUID |
getPeerUUID()
Returns a UUID of the provided peer id. |
List<ServerName> |
getRegionServers()
Get a list of all the addresses of all the region servers for this peer cluster |
protected ZooKeeperWatcher |
getZkw()
Get the ZK connection to this peer |
boolean |
isAborted()
|
protected void |
reconnect(org.apache.zookeeper.KeeperException ke)
A private method used to re-establish a zookeeper session with a peer cluster. |
void |
setRegionServers(List<ServerName> regionServers)
Set the list of region servers for that peer |
| Methods inherited from class org.apache.hadoop.hbase.replication.BaseReplicationEndpoint |
|---|
canReplicateToSameCluster, getScopeWALEntryFilter, getTableCfWALEntryFilter, getWALEntryfilter, init |
| Methods inherited from class com.google.common.util.concurrent.AbstractService |
|---|
isRunning, notifyFailed, notifyStarted, notifyStopped, start, startAndWait, state, stop, stopAndWait, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.hadoop.hbase.replication.ReplicationEndpoint |
|---|
replicate |
| Methods inherited from interface com.google.common.util.concurrent.Service |
|---|
isRunning, start, startAndWait, state, stop, stopAndWait |
| Constructor Detail |
|---|
public HBaseReplicationEndpoint()
| Method Detail |
|---|
protected void disconnect()
protected void reconnect(org.apache.zookeeper.KeeperException ke)
ke - protected void doStart()
doStart in class com.google.common.util.concurrent.AbstractServiceprotected void doStop()
doStop in class com.google.common.util.concurrent.AbstractServicepublic UUID getPeerUUID()
ReplicationEndpoint
getPeerUUID in interface ReplicationEndpointprotected ZooKeeperWatcher getZkw()
public void abort(String why,
Throwable e)
abort in interface Abortablepublic boolean isAborted()
isAborted in interface Abortable
protected static List<ServerName> fetchSlavesAddresses(ZooKeeperWatcher zkw)
throws org.apache.zookeeper.KeeperException
zkw - zk connection to use
org.apache.zookeeper.KeeperExceptionpublic List<ServerName> getRegionServers()
org.apache.zookeeper.KeeperExceptionpublic void setRegionServers(List<ServerName> regionServers)
regionServers - list of addresses for the region serverspublic long getLastRegionServerUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||