Package com.opengamma.engine.exec.DependencyGraphExecutionFuture

Examples of com.opengamma.engine.exec.DependencyGraphExecutionFuture.Listener


  public void testAddListenerBeforeCompletion() throws Throwable {
    final NormalExecutionJobDispatcher dispatcher = new NormalExecutionJobDispatcher();
    final PlanExecutor executor = new PlanExecutor(createCycle(dispatcher), createPlan());
    final AtomicReference<String> result = new AtomicReference<String>();
    executor.setListener(new Listener() {
      @Override
      public void graphCompleted(final String calculationConfiguration) {
        assertEquals(result.getAndSet(calculationConfiguration), null);
      }
    });
View Full Code Here


  public void testAddListenerAfterCompletion() throws Throwable {
    final NormalExecutionJobDispatcher dispatcher = new NormalExecutionJobDispatcher();
    final PlanExecutor executor = new PlanExecutor(createCycle(dispatcher), createPlan());
    dispatcher.execute(executor);
    final AtomicReference<String> result = new AtomicReference<String>();
    executor.setListener(new Listener() {
      @Override
      public void graphCompleted(final String calculationConfiguration) {
        assertEquals(result.getAndSet(calculationConfiguration), null);
      }
    });
View Full Code Here

TOP

Related Classes of com.opengamma.engine.exec.DependencyGraphExecutionFuture.Listener

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.