@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)
ReplicationTracker
registerListener
in interface ReplicationTracker
public void removeListener(ReplicationListener listener)
removeListener
in interface ReplicationTracker
public List<String> getListOfRegionServers()
getListOfRegionServers
in interface ReplicationTracker
Copyright © 2007–2019 Cloudera. All rights reserved.