org.apache.hadoop.hbase.replication
Class ReplicationTrackerZKImpl
java.lang.Object
org.apache.hadoop.hbase.replication.ReplicationStateZKBase
org.apache.hadoop.hbase.replication.ReplicationTrackerZKImpl
- All Implemented Interfaces:
- ReplicationTracker
public class ReplicationTrackerZKImpl
- extends ReplicationStateZKBase
- implements ReplicationTracker
This class is a Zookeeper implementation of the ReplicationTracker interface. This class is
responsible for handling replication events that are defined in the ReplicationListener
interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicationTrackerZKImpl
public ReplicationTrackerZKImpl(ZooKeeperWatcher zookeeper,
ReplicationPeers replicationPeers,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable,
Stoppable stopper)
registerListener
public void registerListener(ReplicationListener listener)
- Description copied from interface:
ReplicationTracker
- Register a replication listener to receive replication events.
- Specified by:
registerListener
in interface ReplicationTracker
removeListener
public void removeListener(ReplicationListener listener)
- Specified by:
removeListener
in interface ReplicationTracker
getListOfRegionServers
public List<String> getListOfRegionServers()
- Return a snapshot of the current region servers.
- Specified by:
getListOfRegionServers
in interface ReplicationTracker
- Returns:
- List of region servers.
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.