Examples of ViewDefinitionCompiledCall


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

    return _viewClient.getUser();
  }

  @Override
  public void viewDefinitionCompiled(CompiledViewDefinition compiledViewDefinition, boolean hasMarketDataPermissions) {
    send(new ViewDefinitionCompiledCall(compiledViewDefinition, hasMarketDataPermissions));
 
View Full Code Here

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

  public void assertViewDefinitionCompiled(long timeoutMillis) {
    assertViewDefinitionCompiled(timeoutMillis, null);
  }
 
  public void assertViewDefinitionCompiled(long timeoutMillis, CompiledViewDefinition expectedCompiledViewDefinition) {
    ViewDefinitionCompiledCall call;
    try {
      call = getViewDefinitionCompiled(timeoutMillis);
    } catch (Exception e) {
      throw new AssertionError("Expected viewDefinitionCompiled call error: " + e.getMessage());
    }
View Full Code Here

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

    return UserPrincipal.getTestUser();
  }
 
  @Override
  public void viewDefinitionCompiled(CompiledViewDefinition compiledViewDefinition, boolean hasMarketDataPermissions) {
    callReceived(new ViewDefinitionCompiledCall(compiledViewDefinition, hasMarketDataPermissions));
  }
View Full Code Here

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

    _mergerLock.lock();
    try {
      if (isPassThrough()) {
        getUnderlying().viewDefinitionCompiled(compiledViewDefinition, hasMarketDataPermissions);
      } else {
        _callQueue.add(new ViewDefinitionCompiledCall(compiledViewDefinition, hasMarketDataPermissions));
      }
      _lastUpdateMillis.set(System.currentTimeMillis());
    } finally {
      _mergerLock.unlock();
    }
View Full Code Here

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

  @Override
  public ViewDefinitionCompiledCall buildObject(FudgeDeserializer deserializer, FudgeMsg msg) {
    CompiledViewDefinition compiledViewDefinition = deserializer.fieldValueToObject(CompiledViewDefinition.class, msg.getByName(COMPILED_VIEW_DEFINITION_FIELD));
    boolean hasMarketDataPermissions = msg.getBoolean(HAS_MARKET_DATA_PERMISSIONS_FIELD);
    return new ViewDefinitionCompiledCall(compiledViewDefinition, hasMarketDataPermissions);
  }
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.