@InterfaceAudience.Private public class ReplicationTrackerZKImpl extends ReplicationStateZKBase implements ReplicationTracker
Modifier and Type | Class and Description |
---|---|
class |
ReplicationTrackerZKImpl.OtherRegionServerWatcher
Watcher used to be notified of the other region server's death in the local cluster.
|
class |
ReplicationTrackerZKImpl.PeersWatcher
Watcher used to follow the creation and deletion of peer clusters.
|
abortable, conf, DISABLED_ZNODE_BYTES, ENABLED_ZNODE_BYTES, ourClusterKey, peerStateNodeName, peersZNode, queuesZNode, replicationZNode, zookeeper
Constructor and Description |
---|
ReplicationTrackerZKImpl(ZooKeeperWatcher zookeeper,
ReplicationPeers replicationPeers,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable,
Stoppable stopper) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getListOfRegionServers()
Return a snapshot of the current region servers.
|
void |
registerListener(ReplicationListener listener)
Register a replication listener to receive replication events.
|
void |
removeListener(ReplicationListener listener) |
getListOfReplicators, isPeerPath, peerExists, toByteArray
public ReplicationTrackerZKImpl(ZooKeeperWatcher zookeeper, ReplicationPeers replicationPeers, org.apache.hadoop.conf.Configuration conf, Abortable abortable, Stoppable stopper)
public void registerListener(ReplicationListener listener)
ReplicationTracker
registerListener
in interface ReplicationTracker
public void removeListener(ReplicationListener listener)
removeListener
in interface ReplicationTracker
public List<String> getListOfRegionServers()
getListOfRegionServers
in interface ReplicationTracker
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.