Package com.opengamma.engine.view.impl

Examples of com.opengamma.engine.view.impl.ViewProcessorImpl.stop()


   * @throws java.lang.Exception
   */
  @AfterMethod
  public void tearDown() throws Exception {
    ViewProcessorImpl viewProcessor = _env.getViewProcessor();
    viewProcessor.stop();
    //Ensure the ViewProcessor stop clears all mbeans from the MBeanServer
    assertMBeanCount(0);
  }

  private MBeanServer createMBeanServer() {
View Full Code Here


    final ViewClient client2 = vp.createViewClient(ViewProcessorTestEnvironment.TEST_USER);
    client2.attachToViewProcess(env.getViewDefinition().getUniqueId(), ExecutionOptions.infinite(MarketData.live(), ExecutionFlags.none().get()));

    final ViewProcessImpl view = env.getViewProcess(vp, client1.getUniqueId());

    vp.stop();

    assertFalse(vp.isRunning());
    assertFalse(view.isRunning());
    assertTrue(view.getState() == ViewProcessState.TERMINATED);
View Full Code Here

    client.setResultListener(null);
    client.shutdown();
    assertEquals(ViewProcessState.TERMINATED, viewProcess.getState());

    vp.stop();
  }

  @Test
  public void testOldRecalculationThreadDies() throws InterruptedException {
    final ViewProcessorTestEnvironment env = new ViewProcessorTestEnvironment();
View Full Code Here

    final ViewProcessWorker worker2 = env.getCurrentWorker(viewProcess2);

    assertFalse(viewProcess1 == viewProcess2);
    assertTrue(worker1.join(TIMEOUT));

    vp.stop();

    assertTrue(worker2.join(TIMEOUT));
  }

  //-------------------------------------------------------------------------
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.