public abstract class HBaseReplicationEndpoint extends BaseReplicationEndpoint
BaseReplicationEndpoint for replication endpoints whose
target cluster is an HBase cluster.| Modifier and Type | Class and Description |
|---|---|
static class |
HBaseReplicationEndpoint.PeerRegionServerListener
Tracks changes to the list of region servers in a peer's cluster.
|
ReplicationEndpoint.Context, ReplicationEndpoint.ReplicateContextctx, REPLICATION_WALENTRYFILTER_CONFIG_KEY| Constructor and Description |
|---|
HBaseReplicationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(java.lang.String why,
java.lang.Throwable e) |
protected void |
disconnect() |
protected void |
doStart() |
protected void |
doStop() |
protected static java.util.List<ServerName> |
fetchSlavesAddresses(ZKWatcher 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.
|
java.util.UUID |
getPeerUUID()
Returns a UUID of the provided peer id.
|
java.util.List<ServerName> |
getRegionServers()
Get a list of all the addresses of all the region servers
for this peer cluster
|
protected ZKWatcher |
getZkw()
Get the ZK connection to this peer
|
boolean |
isAborted() |
protected void |
reconnect(KeeperException ke)
A private method used to re-establish a zookeeper session with a peer cluster.
|
void |
setRegionServers(java.util.List<ServerName> regionServers)
Set the list of region servers for that peer
|
void |
start()
Initiates service startup and returns immediately.
|
void |
stop()
If the service is starting or running, this initiates service shutdown and returns immediately.
|
canReplicateToSameCluster, getNamespaceTableCfWALEntryFilter, getScopeWALEntryFilter, getWALEntryfilter, init, isStarting, peerConfigUpdatedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, replicateprotected void disconnect()
protected void reconnect(KeeperException ke)
ke - public void start()
ReplicationEndpointpublic void stop()
ReplicationEndpointprotected void doStart()
protected void doStop()
public java.util.UUID getPeerUUID()
ReplicationEndpointprotected ZKWatcher getZkw()
public void abort(java.lang.String why,
java.lang.Throwable e)
public boolean isAborted()
protected static java.util.List<ServerName> fetchSlavesAddresses(ZKWatcher zkw)
throws KeeperException
zkw - zk connection to useKeeperExceptionpublic java.util.List<ServerName> getRegionServers()
public void setRegionServers(java.util.List<ServerName> regionServers)
regionServers - list of addresses for the region serverspublic long getLastRegionServerUpdate()