本文整理了Java中org.apache.zookeeper.server.ZooKeeperServer.getZxid()
方法的一些代码示例,展示了ZooKeeperServer.getZxid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperServer.getZxid()
方法的具体详情如下:
包路径:org.apache.zookeeper.server.ZooKeeperServer
类名称:ZooKeeperServer
方法名:getZxid
[英]This should be called from a synchronized block on this!
[中]这应该是从同步块中调用的!
代码示例来源:origin: apache/zookeeper
public String getCurrentZxid() {
return "0x" + Long.toHexString(zks.getZxid());
}
代码示例来源:origin: org.apache.zookeeper/zookeeper
public String getCurrentZxid() {
return "0x" + Long.toHexString(zks.getZxid());
}
代码示例来源:origin: apache/zookeeper
/** Reset the next zxid to be near epoch end */
private void adjustEpochNearEnd() {
zksLeader.setZxid((zksLeader.getZxid() & 0xffffffff00000000L) | 0xfffffffcL);
}
代码示例来源:origin: apache/zookeeper
private void verifyState(QuorumUtil qu, int index, Leader leader) {
LOG.info("Verifying state");
assertTrue("Not following", qu.getPeer(index).peer.follower != null);
long epochF = (qu.getPeer(index).peer.getActiveServer().getZxid() >> 32L);
long epochL = (leader.getEpoch() >> 32L);
assertTrue("Zxid: " + qu.getPeer(index).peer.getActiveServer().getZKDatabase().getDataTreeLastProcessedZxid() +
代码示例来源:origin: org.apache.zookeeper/zookeeper
request.zxid = zks.getZxid();
nextProcessor.processRequest(request);
代码示例来源:origin: apache/zookeeper
request.zxid = zks.getZxid();
nextProcessor.processRequest(request);
代码示例来源:origin: org.apache.hadoop/zookeeper
public String getCurrentZxid() {
return "0x" + Long.toHexString(zks.getZxid());
}
代码示例来源:origin: org.apache.hadoop/zookeeper
request.zxid = zks.getZxid();
nextProcessor.processRequest(request);
内容来源于网络,如有侵权,请联系作者删除!