Exemple #1
0
 public void clientEvent(Set<SocketClient> clients, String message) {
   int nbCores = 0;
   int nbThreads = 0;
   for (SocketClient client : clients) {
     nbCores += client.clientInfo().nbCores;
     nbThreads += client.clientInfo().nbThreads;
   }
   clientsLog.writeRow(chrono.getCurrentMillis(), clients.size(), nbThreads, nbCores);
   Messages.println(
       String.format(
           "%s %d[%d] client%s",
           message, clients.size(), nbThreads, clients.size() > 1 ? "s" : ""));
 }
 @BeforeClass
 public static void junitMode() {
   ClassLoading.enableForceNetworkClassResolution();
   Messages.disableVerbose();
   // Messages.enableDebug();
 }