Package pt.ul.jarmus

Examples of pt.ul.jarmus.JArmusController


  public void register(CyclicBarrier barrier) {
    getController().register(barrier, 1);
  }

  public void beforeAwait(CyclicBarrier barrier) {
    JArmusController controller = getController();
    int phase = controller.advance(barrier);
    controller.beforeAwait(barrier, phase);
  }
View Full Code Here


public class ForkJoinChecker implements ForkJoinListener {
 
  @Override
  public void beforeInvokeAll(Collection<? extends ForkJoinTask<?>> tasks) {
    JArmusController handler = getController();
    handler.beforeAwaitMany(tasks, 1);
    handler.beforeTask();
  }
View Full Code Here

    handler.beforeTask();
  }
 
  @Override
  public void afterInvokeAll() {
    JArmusController handler = getController();
    handler.afterTask();
    handler.afterAwait();
  }
View Full Code Here

    handler.afterAwait();
  }
 
  @Override
  public void beforeInvoke(ForkJoinTask<?> task) {
    JArmusController handler = getController();
    handler.beforeAwait(task, 1);
    handler.beforeTask();
  }
View Full Code Here

    handler.beforeTask();
  }
 
  @Override
  public void afterInvoke() {
    JArmusController handler = getController();
    handler.afterTask();
    handler.afterAwait();
  }
View Full Code Here

   * Before the blocking call
   * @param task
   */
  @Override
  public void beforeJoin(ForkJoinTask<?> task) {
    JArmusController handler = getController();
    handler.beforeAwait(task, 1);
  }
View Full Code Here

  /**
   * After the blocking call
   */
  @Override
  public void afterJoin() {
    JArmusController handler = getController();
    handler.afterAwait();
  }
View Full Code Here

   * Registers the thread from the join
   * @param task
   */
  @Override
  public void beforeExec(ForkJoinTask<?> task) {
    JArmusController handler = getController();
    handler.register(task, 1);
  }
View Full Code Here

   * Deregisters the thread from the join
   * @param task
   */
  @Override
  public void afterExec(ForkJoinTask<?> task) {
    JArmusController handler = getController();
    handler.deregister(task);
  }
View Full Code Here

    afterJoin();
  }

  @Override
  public void beforeInvokeAll(ForkJoinTask<?>... tasks) {
    JArmusController handler = getController();
    handler.beforeAwaitMany(Arrays.asList(tasks), 1);
    handler.beforeTask();
  }
View Full Code Here

TOP

Related Classes of pt.ul.jarmus.JArmusController

Copyright © 2018 www.massapicom. 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.