Examples of CycleCompletedCall


Examples of com.opengamma.engine.view.listener.CycleCompletedCall

    send(new CycleFragmentCompletedCall(fullFragment, deltaFragment));
  }

  @Override
  public void cycleCompleted(ViewComputationResultModel fullResult, ViewDeltaResultModel deltaResult) {
    send(new CycleCompletedCall(fullResult, deltaResult));
  }
View Full Code Here

Examples of com.opengamma.engine.view.listener.CycleCompletedCall

  public void assertCycleCompleted(long timeoutMillis) {
    assertCycleCompleted(timeoutMillis, null, null);
  }
 
  public void assertCycleCompleted(long timeoutMillis, ViewComputationResultModel expectedFullResult, ViewDeltaResultModel expectedDeltaResult) {
    CycleCompletedCall call;
    try {
      call = getCycleCompleted(timeoutMillis);
    } catch (Exception e) {
      throw new AssertionError("Expected cycleCompleted call error: " + e.getMessage());
    }
    if (expectedFullResult != null) {
      assertEquals(expectedFullResult, call.getFullResult());
    }
    if (expectedDeltaResult != null) {
      assertEquals(expectedDeltaResult, call.getDeltaResult());
    }
  }
View Full Code Here

Examples of com.opengamma.engine.view.listener.CycleCompletedCall

    callReceived(new CycleStartedCall(cycleMetadata), true);
  }

  @Override
  public void cycleCompleted(ViewComputationResultModel fullResult, ViewDeltaResultModel deltaResult) {
    callReceived(new CycleCompletedCall(fullResult, deltaResult), true);
  }
View Full Code Here

Examples of com.opengamma.engine.view.listener.CycleCompletedCall

        //  - the updated result call is repositioned to the end of the queue
       
        // Result collapsing
        if (_cycleCompletedIndex != -1) {
          // There's an old cycle completed call in the queue - find it and move to end
          CycleCompletedCall cycleCompletedCall = pullCallToEnd(_cycleCompletedIndex);
          // Merge new cycle completed call into old one
          cycleCompletedCall.update(fullResult, deltaResult);
        } else {
          // No existing cycle completed call - add new one
          CycleCompletedCall cycleCompletedCall = new CycleCompletedCall(fullResult, deltaResult);
          _cycleCompletedIndex = _callQueue.size();
          _callQueue.add(cycleCompletedCall);
        }
       
        // Only keep the cycle started call for the latest complete result
View Full Code Here

Examples of com.opengamma.engine.view.listener.CycleCompletedCall

  public CycleCompletedCall buildObject(FudgeDeserializer deserializer, FudgeMsg msg) {
    FudgeField fullResultField = msg.getByName(FULL_RESULT_FIELD);
    ViewComputationResultModel fullResult = fullResultField != null ? deserializer.fieldValueToObject(ViewComputationResultModel.class, fullResultField) : null;
    FudgeField deltaResultField = msg.getByName(DELTA_RESULT_FIELD);
    ViewDeltaResultModel deltaResult = deltaResultField != null ? deserializer.fieldValueToObject(ViewDeltaResultModel.class, deltaResultField) : null;
    return new CycleCompletedCall(fullResult, deltaResult);
  }
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.