Package com.opengamma.engine.view.listener

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


    send(new ViewDefinitionCompiledCall(compiledViewDefinition, hasMarketDataPermissions));
 

  @Override
  public void viewDefinitionCompilationFailed(Instant valuationTime, Exception exception) {
    send(new ViewDefinitionCompilationFailedCall(valuationTime, exception));
  }
View Full Code Here


  public void assertViewDefinitionCompilationFailed(long timeoutMillis) {
    assertViewDefinitionCompilationFailed(timeoutMillis, null);
  }

  public void assertViewDefinitionCompilationFailed(long timeoutMillis, String exceptionMessage) {
    ViewDefinitionCompilationFailedCall call;
    try {
      call = getViewDefinitionCompilationFailed(timeoutMillis);
    } catch (Exception e) {
      throw new AssertionError("Expected viewDefinitionCompilationFailed call error: " + e.getMessage());
    }
    if (exceptionMessage != null) {
      assertEquals(exceptionMessage, call.getException().getMessage());
    }
  }
View Full Code Here

    callReceived(new ViewDefinitionCompiledCall(compiledViewDefinition, hasMarketDataPermissions));
  }

  @Override
  public void viewDefinitionCompilationFailed(Instant valuationTime, Exception exception) {
    callReceived(new ViewDefinitionCompilationFailedCall(valuationTime, exception));
  }
View Full Code Here

    _mergerLock.lock();
    try {
      if (isPassThrough()) {
        getUnderlying().viewDefinitionCompilationFailed(valuationTime, exception);
      } else {
        _callQueue.add(new ViewDefinitionCompilationFailedCall(valuationTime, exception));
      }
    } finally {
      _mergerLock.unlock();
    }
  }
View Full Code Here

  @Override
  public ViewDefinitionCompilationFailedCall buildObject(FudgeDeserializer deserializer, FudgeMsg msg) {
    Instant valuationTime = deserializer.fieldValueToObject(Instant.class, msg.getByName(VALUATION_TIME_FIELD));
    Exception exception = deserializer.fieldValueToObject(Exception.class, msg.getByName(EXCEPTION_FIELD));
    return new ViewDefinitionCompilationFailedCall(valuationTime, exception);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.engine.view.listener.ViewDefinitionCompilationFailedCall

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.