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

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

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

ZKDatabase.getNodeCount介绍

[英]the node count of the datatree
[中]数据树的节点计数

代码示例

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

pw.print(serverStats.toString());
pw.print("Node count: ");
pw.println(zkServer.getZKDatabase().getNodeCount());
if (serverStats.getServerState().equals("leader")) {
  Leader leader = ((LeaderZooKeeperServer)zkServer).getLeader();

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

pw.print(serverStats.toString());
pw.print("Node count: ");
pw.println(zkServer.getZKDatabase().getNodeCount());
if (serverStats.getServerState().equals("leader")) {
  Leader leader = ((LeaderZooKeeperServer)zkServer).getLeader();

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

pw.print(serverStats.toString());
pw.print("Node count: ");
pw.println(zkServer.getZKDatabase().getNodeCount());
if (serverStats.getServerState().equals("leader")) {
  Leader leader = ((LeaderZooKeeperServer)zkServer).getLeader();

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

@Override
  public CommandResponse run(ZooKeeperServer zkServer, Map<String, String> kwargs) {
    CommandResponse response = initializeResponse();
    LOG.info("running stat");
    response.put("version", Version.getFullVersion());
    response.put("read_only", zkServer instanceof ReadOnlyZooKeeperServer);
    response.put("server_stats", zkServer.serverStats());
    response.put("client_response", zkServer.serverStats().getClientResponseStats());
    if (zkServer instanceof LeaderZooKeeperServer) {
      Leader leader = ((LeaderZooKeeperServer)zkServer).getLeader();
      response.put("proposal_stats", leader.getProposalStats());
    }
    response.put("node_count", zkServer.getZKDatabase().getNodeCount());
    return response;
  }
}

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

print("znode_count", zkdb.getNodeCount());

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

print("znode_count", zkdb.getNodeCount());

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

print("znode_count", zkdb.getNodeCount());

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

response.put("znode_count", zkdb.getNodeCount());

代码示例来源:origin: com.yahoo.pulsar/pulsar-zookeeper

@Override
  public double get() {
    return zkServer.getZKDatabase().getNodeCount();
  }
}).register();

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

@Override
  public double get() {
    return zkServer.getZKDatabase().getNodeCount();
  }
}).register();

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

pw.println(zk.getZKDatabase().getNodeCount());

相关文章