Package com.opengamma.engine.view

Examples of com.opengamma.engine.view.ViewResultModel


    @Override
    public void cycleCompleted(ViewComputationResultModel fullResult, ViewDeltaResultModel deltaResult) {
      EngineResourceReference<? extends ViewCycle> oldReference = _cycleReference;
      try {
        ViewResultModel results = deltaResult != null ? deltaResult : fullResult;
        // always retain a reference to the most recent cycle so the dependency graphs are available at all times.
        // without this it would be necessary to wait at least one cycle before it would be possible to access the graphs.
        // this allows dependency graphs grids to be opened and populated without any delay
        EngineResourceReference<? extends ViewCycle> cycleReference = _viewClient.createCycleReference(results.getViewCycleId());
        if (cycleReference == null) {
          // this shouldn't happen if everything in the engine is working as it should
          _cycleReference = EmptyViewCycle.REFERENCE;
        } else {
          _cycleReference = cycleReference;
View Full Code Here


    final ViewProcessImpl viewProcess = env.getViewProcess(vp, client.getUniqueId());
    assertTrue(viewProcess.getState() == ViewProcessState.RUNNING);

    resultListener.assertViewDefinitionCompiled(TIMEOUT);
    resultListener.assertCycleStarted(TIMEOUT);
    final ViewResultModel result1Fragment = resultListener.getCycleFragmentCompleted(TIMEOUT).getFullFragment();
    assertNotNull(result1Fragment);
    final ViewComputationResultModel result1 = resultListener.getCycleCompleted(TIMEOUT).getFullResult();
    assertNotNull(result1);

    Map<ValueRequirement, Object> expected = new HashMap<ValueRequirement, Object>();
View Full Code Here

TOP

Related Classes of com.opengamma.engine.view.ViewResultModel

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.