@InterfaceAudience.Private public class ReplicationTrackerZKImpl extends Object 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.
|
| Constructor and Description |
|---|
ReplicationTrackerZKImpl(ZKWatcher zookeeper,
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) |
public void registerListener(ReplicationListener listener)
ReplicationTrackerregisterListener in interface ReplicationTrackerpublic void removeListener(ReplicationListener listener)
removeListener in interface ReplicationTrackerpublic List<String> getListOfRegionServers()
getListOfRegionServers in interface ReplicationTrackerCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.