本文整理了Java中org.apache.hadoop.hbase.zookeeper.ZKLeaderManager.<init>()
方法的一些代码示例,展示了ZKLeaderManager.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKLeaderManager.<init>()
方法的具体详情如下:
包路径:org.apache.hadoop.hbase.zookeeper.ZKLeaderManager
类名称:ZKLeaderManager
方法名:<init>
暂无
代码示例来源:origin: apache/hbase
public LeaderElector(ZKWatcher watcher, String serverName) {
setDaemon(true);
setName("ZKSecretWatcher-leaderElector");
zkLeader = new ZKLeaderManager(watcher,
ZNodePaths.joinZNode(zkWatcher.getRootKeyZNode(), "keymaster"),
Bytes.toBytes(serverName), this);
}
代码示例来源:origin: apache/hbase
public MockLeader(ZKWatcher watcher, int index) {
setDaemon(true);
setName("TestZKLeaderManager-leader-" + index);
this.index = index;
this.watcher = watcher;
this.zkLeader = new ZKLeaderManager(watcher, LEADER_ZNODE,
Bytes.toBytes(index), this);
}
代码示例来源:origin: harbby/presto-connectors
public LeaderElector(ZooKeeperWatcher watcher, String serverName) {
setDaemon(true);
setName("ZKSecretWatcher-leaderElector");
zkLeader = new ZKLeaderManager(watcher,
ZKUtil.joinZNode(zkWatcher.getRootKeyZNode(), "keymaster"),
Bytes.toBytes(serverName), this);
}
代码示例来源:origin: com.aliyun.hbase/alihbase-zookeeper
public MockLeader(ZKWatcher watcher, int index) {
setDaemon(true);
setName("TestZKLeaderManager-leader-" + index);
this.index = index;
this.watcher = watcher;
this.zkLeader = new ZKLeaderManager(watcher, LEADER_ZNODE,
Bytes.toBytes(index), this);
}
代码示例来源:origin: org.apache.hbase/hbase-zookeeper
public MockLeader(ZKWatcher watcher, int index) {
setDaemon(true);
setName("TestZKLeaderManager-leader-" + index);
this.index = index;
this.watcher = watcher;
this.zkLeader = new ZKLeaderManager(watcher, LEADER_ZNODE,
Bytes.toBytes(index), this);
}
内容来源于网络,如有侵权,请联系作者删除!