org.apache.hadoop.hbase.replication
Interface ReplicationTracker

All Known Implementing Classes:
ReplicationTrackerZKImpl

@InterfaceAudience.Private
public interface ReplicationTracker

This is the interface for a Replication Tracker. A replication tracker provides the facility to subscribe and track events that reflect a change in replication state. These events are used by the ReplicationSourceManager to coordinate replication tasks such as addition/deletion of queues and queue failover. These events are defined in the ReplicationListener interface. If a class would like to listen to replication events it must implement the ReplicationListener interface and register itself with a Replication Tracker.


Method Summary
 List<String> getListOfRegionServers()
          Returns a list of other live region servers in the cluster.
 void registerListener(ReplicationListener listener)
          Register a replication listener to receive replication events.
 void removeListener(ReplicationListener listener)
           
 

Method Detail

registerListener

void registerListener(ReplicationListener listener)
Register a replication listener to receive replication events.

Parameters:
listener -

removeListener

void removeListener(ReplicationListener listener)

getListOfRegionServers

List<String> getListOfRegionServers()
Returns a list of other live region servers in the cluster.

Returns:
List of region servers.


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.