Package com.opengamma.engine.view.compilation

Examples of com.opengamma.engine.view.compilation.ViewCompilationServices


    final FunctionExclusionGroups functionExclusionGroups = _repo.getInstance(FunctionExclusionGroups.class, "main");
    final DependencyGraphBuilderFactory dependencyGraphBuilder = new DependencyGraphBuilderFactory();
    dependencyGraphBuilder.setFunctionExclusionGroups(functionExclusionGroups);
    configureDependencyGraphBuilder(dependencyGraphBuilder);
    final MarketDataAvailabilityProvider mdap = new OptimisticMarketDataAvailabilityFilter().withProvider(new DefaultMarketDataAvailabilityProvider());
    return new ViewCompilationServices(mdap, functionResolver, cfs.getFunctionCompilationContext(), cfs.getExecutorService(), dependencyGraphBuilder);
  }
View Full Code Here


  public CompiledViewDefinitionWithGraphsImpl compileViewDefinition(final Instant valuationTime, final VersionCorrection versionCorrection) {
    if (getViewProcessor() == null) {
      throw new IllegalStateException(ViewProcessorTestEnvironment.class.getName() + " has not been initialised");
    }
    final ViewCompilationServices compilationServices = new ViewCompilationServices(
        getMarketDataProvider().getAvailabilityProvider(MarketData.live()),
        getFunctionResolver(),
        getFunctionCompilationContext(),
        getViewProcessor().getFunctionCompilationService().getExecutorService(),
        (getDependencyGraphBuilderFactory() != null) ? getDependencyGraphBuilderFactory() : generateDependencyGraphBuilderFactory());
View Full Code Here

          executionCacheLocks.getFirst().lock();
          broadLock = true;
        }
      }
      final MarketDataAvailabilityProvider availabilityProvider = _marketDataManager.getAvailabilityProvider();
      final ViewCompilationServices compilationServices = getProcessContext().asCompilationServices(availabilityProvider);
      if (previousGraphs != null) {
        s_logger.info("Performing incremental graph compilation");
        _compilationTask = ViewDefinitionCompiler.incrementalCompileTask(getViewDefinition(), compilationServices, valuationTime, versionCorrection, previousGraphs, previousResolutions,
            changedPositions, unchangedNodes);
      } else {
View Full Code Here

   *
   * @param marketDataAvailabilityProvider the availability provider corresponding to the desired source of market data, not null
   * @return the services, not null
   */
  public ViewCompilationServices asCompilationServices(final MarketDataAvailabilityProvider marketDataAvailabilityProvider) {
    return new ViewCompilationServices(marketDataAvailabilityProvider, getFunctionResolver(), getFunctionCompilationService().getFunctionCompilationContext(), getFunctionCompilationService()
        .getExecutorService(), getDependencyGraphBuilderFactory());
  }
View Full Code Here

TOP

Related Classes of com.opengamma.engine.view.compilation.ViewCompilationServices

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.