Esempio n. 1
0
 /**
  * Waits for a host to be down by pinging the TCP socket directly, without using the Java driver's
  * API.
  */
 public void waitForDown(int node) {
   try {
     InetAddress address = InetAddress.getByName(ipOfNode(node));
     CCMBridge.busyWaitForPort(address, 9042, false);
   } catch (UnknownHostException e) {
     Assert.fail("Unknown host " + ipOfNode(node) + "( node " + node + " of CCMBridge)");
   }
 }