コード例 #1
0
 public Stats getStats() {
   Stats stats = new Stats();
   stats.uptime = (int) ((Clock.currentTimeMillis() - startTime) / 1000);
   stats.threads = parallelExecutor.getActiveCount();
   stats.waiting_requests = parallelExecutor.getPoolSize();
   stats.cmd_get = gets.get();
   stats.cmd_set = sets.get();
   stats.cmd_delete = deletes.get();
   stats.get_hits = getHits.get();
   stats.get_misses = gets.get() - getHits.get();
   stats.curr_connections = node.connectionManager.getCurrentClientConnections();
   stats.total_connections = node.connectionManager.getAllTextConnections();
   return stats;
 }