|
||||||||||
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)
Abort the server or client. |
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()
Check if the server or client was aborted. |
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, peerConfigUpdated |
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.AbstractService
protected void doStop()
doStop
in class com.google.common.util.concurrent.AbstractService
public UUID getPeerUUID()
ReplicationEndpoint
getPeerUUID
in interface ReplicationEndpoint
protected ZooKeeperWatcher getZkw()
public void abort(String why, Throwable e)
Abortable
abort
in interface Abortable
why
- Why we're aborting.e
- Throwable that caused abort. Can be null.public boolean isAborted()
Abortable
isAborted
in interface Abortable
protected static List<ServerName> fetchSlavesAddresses(ZooKeeperWatcher zkw) throws org.apache.zookeeper.KeeperException
zkw
- zk connection to use
org.apache.zookeeper.KeeperException
public List<ServerName> getRegionServers()
org.apache.zookeeper.KeeperException
public 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 |