Package com.sun.sgs.test.util

Examples of com.sun.sgs.test.util.AwaitDone.await()


      for (int j = 0; j < threads; j++) {
    new RandomWorkTask(
        node, done, bindings, repeat).scheduleTask();
      }
  }
  done.await(wait, SECONDS);
  /* Remove all bindings */
  new RunChunkedTask(serverNode) { boolean runChunk() {
      ManagedInteger remaining;
      try {
    remaining =
View Full Code Here


    waitB.taskSucceeded();
    dataService.getBinding("a");
    ok = true;
      }
  }.runTask();
  done.await(1, SECONDS);
  /* Clean up */
  new RunTask(appNodes.get(0)) { public void run() {
      dataService.removeBinding("a");
  } }.runTask();
  new RunTask(appNodes.get(1)) { public void run() {
View Full Code Here

    waitB.taskSucceeded();
    dataService.setBinding("a", new ManagedInteger(2));
    ok = true;
      }
  }.runTask();
  done.await(1, SECONDS);
  /* Clean up */
  new RunTask(appNodes.get(0)) { public void run() {
      dataService.removeBinding("a");
  } }.runTask();
  new RunTask(appNodes.get(1)) { public void run() {
View Full Code Here

    waitB.taskSucceeded();
    dataService.removeBinding("a");
    ok = true;
      }
  }.runTask();
  done.await(1, SECONDS);
  /* Clean up */
  new RunTask(appNodes.get(0)) { public void run() {
      try {
    dataService.removeBinding("a");
      } catch (NameNotBoundException e) {
View Full Code Here

    waitB.taskSucceeded();
    assertEquals("b", dataService.nextBoundName("a"));
    ok = true;
      }
  }.runTask();
  done.await(1, SECONDS);
  /* Clean up */
  new RunTask(appNodes.get(0)) { public void run() {
      dataService.removeBinding("b");
  } }.runTask();
  new RunTask(appNodes.get(1)) { public void run() {
View Full Code Here

    waitB.taskSucceeded();
    dataService.setBinding("b", new ManagedInteger(3));
    ok = true;
      }
  }.runTask();
  done.await(1, SECONDS);
  /* Clean up */
  new RunTask(appNodes.get(0)) { public void run() {
      dataService.removeBinding("a");
  } }.runTask();
  new RunTask(appNodes.get(1)) { public void run() {
View Full Code Here

    } catch (NameNotBoundException e) {
    }
    ok = true;
      }
  }.runTask();
  done.await(1, SECONDS);
  Thread.sleep(1000);
  /* Clean up */
  new RunTask(appNodes.get(0)) { public void run() {
      dataService.removeBinding("a");
  } }.runTask();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.