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, toByteArraypublic ReplicationTrackerZKImpl(ZooKeeperWatcher zookeeper, ReplicationPeers replicationPeers, org.apache.hadoop.conf.Configuration conf, Abortable abortable, Stoppable stopper)
public void registerListener(ReplicationListener listener)
ReplicationTrackerregisterListener in interface ReplicationTrackerpublic void removeListener(ReplicationListener listener)
removeListener in interface ReplicationTrackerpublic List<String> getListOfRegionServers()
getListOfRegionServers in interface ReplicationTrackerCopyright © 2014 The Apache Software Foundation. All rights reserved.