org.apache.zookeeper.server.ZooKeeperServer.startdata()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(116)

本文整理了Java中org.apache.zookeeper.server.ZooKeeperServer.startdata()方法的一些代码示例,展示了ZooKeeperServer.startdata()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperServer.startdata()方法的具体详情如下:
包路径:org.apache.zookeeper.server.ZooKeeperServer
类名称:ZooKeeperServer
方法名:startdata

ZooKeeperServer.startdata介绍

暂无

代码示例

代码示例来源:origin: apache/zookeeper

@Override
public void startup(ZooKeeperServer zks, boolean startServer)
    throws IOException, InterruptedException {
  start();
  setZooKeeperServer(zks);
  if (startServer) {
    zks.startdata();
    zks.startup();
  }
}

代码示例来源:origin: apache/zookeeper

@Override
public void startup(ZooKeeperServer zks, boolean startServer)
    throws IOException, InterruptedException {
  start();
  setZooKeeperServer(zks);
  if (startServer) {
    zks.startdata();
    zks.startup();
  }
}

代码示例来源:origin: org.apache.zookeeper/zookeeper

@Override
public void startup(ZooKeeperServer zks) throws IOException,
    InterruptedException {
  start();
  setZooKeeperServer(zks);
  zks.startdata();
  zks.startup();
}

代码示例来源:origin: org.apache.zookeeper/zookeeper

@Override
public void startup(ZooKeeperServer zks) throws IOException,
    InterruptedException {
  start();
  setZooKeeperServer(zks);
  zks.startdata();
  zks.startup();
}

代码示例来源:origin: apache/zookeeper

zks.startdata();

代码示例来源:origin: apache/zookeeper

zks.startdata();
long zxid = zks.getZKDatabase().getDataTreeLastProcessedZxid();
LOG.info("After clean restart, zxid = " + zxid);
  zks.startdata();
  zxid = zks.getZKDatabase().loadDataBase();
  Assert.fail("Should have gotten exception for corrupted database");

代码示例来源:origin: apache/zookeeper

zks.startdata();
List<Proposal> committedLog = zks.getZKDatabase().getCommittedLog();
int logsize = committedLog.size();

代码示例来源:origin: apache/zookeeper

ClientBase.waitForServerDown(HOSTPORT, CONNECTION_TIMEOUT));
zks = new ZooKeeperServer(tmpDir, tmpDir, 3000);
zks.startdata();

相关文章

ZooKeeperServer类方法