public class ClusterSwitchTracker extends Object implements org.apache.zookeeper.Watcher
| 限定符和类型 | 字段和说明 |
|---|---|
String |
redirectNode |
| 构造器和说明 |
|---|
ClusterSwitchTracker(org.apache.hadoop.conf.Configuration conf,
Switchable switchable) |
ClusterSwitchTracker(org.apache.hadoop.conf.Configuration conf,
Switchable switchable,
CountDownLatch syncLatch) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connectionEvent(org.apache.zookeeper.WatchedEvent event) |
String |
getQuorum() |
String |
getRedirectNode() |
org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper |
getZooKeeper() |
void |
process(org.apache.zookeeper.WatchedEvent event) |
void |
stop() |
String |
toString() |
public String redirectNode
public ClusterSwitchTracker(org.apache.hadoop.conf.Configuration conf,
Switchable switchable)
throws IOException
IOExceptionpublic ClusterSwitchTracker(org.apache.hadoop.conf.Configuration conf,
Switchable switchable,
CountDownLatch syncLatch)
throws IOException
IOExceptionpublic String getRedirectNode()
public String getQuorum()
public void process(org.apache.zookeeper.WatchedEvent event)
process 在接口中 org.apache.zookeeper.Watcherpublic void connectionEvent(org.apache.zookeeper.WatchedEvent event)
public void stop()
public org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper getZooKeeper()
Copyright © 2019. All rights reserved.