public long getOutstandingRequests() { return zks.serverStats().getOutstandingRequests(); }
public long getOutstandingRequests() { return zks.serverStats().getOutstandingRequests(); }
@Override public String toString(){ StringBuilder sb = new StringBuilder(); sb.append("Latency min/avg/max: " + getMinLatency() + "/" + getAvgLatency() + "/" + getMaxLatency() + "\n"); sb.append("Received: " + getPacketsReceived() + "\n"); sb.append("Sent: " + getPacketsSent() + "\n"); sb.append("Connections: " + getNumAliveClientConnections() + "\n"); if (provider != null) { sb.append("Outstanding: " + getOutstandingRequests() + "\n"); sb.append("Zxid: 0x"+ Long.toHexString(getLastProcessedZxid())+ "\n"); } sb.append("Mode: " + getServerState() + "\n"); return sb.toString(); }
@Override public String toString(){ StringBuilder sb = new StringBuilder(); sb.append("Latency min/avg/max: " + getMinLatency() + "/" + getAvgLatency() + "/" + getMaxLatency() + "\n"); sb.append("Received: " + getPacketsReceived() + "\n"); sb.append("Sent: " + getPacketsSent() + "\n"); sb.append("Connections: " + getNumAliveClientConnections() + "\n"); if (provider != null) { sb.append("Outstanding: " + getOutstandingRequests() + "\n"); sb.append("Zxid: 0x"+ Long.toHexString(getLastProcessedZxid())+ "\n"); } sb.append("Mode: " + getServerState() + "\n"); return sb.toString(); }
print("num_alive_connections", stats.getNumAliveClientConnections()); print("outstanding_requests", stats.getOutstandingRequests());
print("num_alive_connections", stats.getNumAliveClientConnections()); print("outstanding_requests", stats.getOutstandingRequests());
print("num_alive_connections", stats.getNumAliveClientConnections()); print("outstanding_requests", stats.getOutstandingRequests());
response.put("num_alive_connections", stats.getNumAliveClientConnections()); response.put("outstanding_requests", stats.getOutstandingRequests()); response.put("uptime", stats.getUptime());
public long getOutstandingRequests() { return zks.serverStats().getOutstandingRequests(); }
@Override public String toString(){ StringBuilder sb = new StringBuilder(); sb.append("Latency min/avg/max: " + getMinLatency() + "/" + getAvgLatency() + "/" + getMaxLatency() + "\n"); sb.append("Received: " + getPacketsReceived() + "\n"); sb.append("Sent: " + getPacketsSent() + "\n"); if (provider != null) { sb.append("Outstanding: " + getOutstandingRequests() + "\n"); sb.append("Zxid: 0x"+ Long.toHexString(getLastProcessedZxid())+ "\n"); } sb.append("Mode: " + getServerState() + "\n"); return sb.toString(); } // mutators