Package com.opengamma.component

Examples of com.opengamma.component.ComponentInfo


   */
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    CurveCalculationConfigSource source = createCurveCalculationConfigSource(repo);
   
    ComponentInfo info = new ComponentInfo(CurveCalculationConfigSource.class, getClassifier());
    repo.registerComponent(info, source);
  }
View Full Code Here


    dataSource.setPartitionCount(getPartitionCount());
    dataSource.setAcquireIncrement(getAcquireIncrement());
    dataSource.setMinConnectionsPerPartition(getMinConnectionsPerPartition());
    dataSource.setMaxConnectionsPerPartition(getMaxConnectionsPerPartition());
   
    ComponentInfo info = new ComponentInfo(DataSource.class, getClassifier());
    repo.registerComponent(info, dataSource);
    return dataSource;
  }
View Full Code Here

  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    NonVersionedRedisHolidaySource source = new NonVersionedRedisHolidaySource(getRedisConnector().getJedisPool(), getRedisPrefix());
   
    ComponentInfo info = new ComponentInfo(HolidaySource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHolidaySource.class);
    repo.registerComponent(info, source);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataHolidaySourceResource(source));
    }

    info = new ComponentInfo(NonVersionedRedisHolidaySource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    repo.registerComponent(info, source);
  }
View Full Code Here


  @Override
  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final ExchangeMaster master = new InMemoryExchangeMaster();
    final ComponentInfo info = new ComponentInfo(ExchangeMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteExchangeMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryExchangeMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);

    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataExchangeMasterResource(master));
    }
View Full Code Here

   * @param repo the repository to register with, not null
   * @param appContext the Spring application context, not null
   */
  protected void initViewProcessor(final ComponentRepository repo, final GenericApplicationContext appContext) {
    final ViewProcessor viewProcessor = appContext.getBean(ViewProcessor.class);
    final ComponentInfo info = new ComponentInfo(ViewProcessor.class, getClassifier());
    if (getJmsBrokerUri() != null) {
      info.addAttribute(ComponentInfoAttributes.JMS_BROKER_URI, getJmsBrokerUri());
    }
    repo.registerComponent(info, viewProcessor);
    if (isPublishRest()) {
      final DataViewProcessorResource vpResource = new DataViewProcessorResource(viewProcessor, repo.getInstance(FunctionCompilationContext.class, "main").getRawComputationTargetResolver(),
          getVolatilityCubeDefinitionSource(), getJmsConnector(), getFudgeContext(), getScheduler(), getHistoricalTimeSeriesSource());
View Full Code Here

   * @param repo the repository to register with, not null
   * @param appContext the Spring application context, not null
   */
  protected void initAvailableOutputs(final ComponentRepository repo, final GenericApplicationContext appContext) {
    final AvailableOutputsProvider availableOutputs = appContext.getBean(AvailableOutputsProvider.class);
    final ComponentInfo info = new ComponentInfo(AvailableOutputsProvider.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteAvailableOutputsProvider.class);
    repo.registerComponent(info, availableOutputs);

    if (isPublishRest()) {
      final DataAvailableOutputsProviderResource aoResource = new DataAvailableOutputsProviderResource(availableOutputs);
      repo.getRestComponents().publish(info, aoResource);
View Full Code Here

   * @param repo the repository to register with, not null
   * @param appContext the Spring application context, not null
   */
  protected void initCalcNodeSocketConfiguration(final ComponentRepository repo, final GenericApplicationContext appContext) {
    final CalcNodeSocketConfiguration calcNodeSocketConfig = appContext.getBean(CalcNodeSocketConfiguration.class);
    final ComponentInfo info = new ComponentInfo(CalcNodeSocketConfiguration.class, getClassifier());
    repo.registerComponent(info, calcNodeSocketConfig);
  }
View Full Code Here

   * @param repo the repository to register with, not null
   * @param appContext the Spring application context, not null
   */
  protected void initFunctions(final ComponentRepository repo, final GenericApplicationContext appContext) {
    final CompiledFunctionService compiledFunctionService = appContext.getBean(CompiledFunctionService.class);
    final ComponentInfo infoCFS = new ComponentInfo(CompiledFunctionService.class, getClassifier());
    repo.registerComponent(infoCFS, compiledFunctionService);
    final ComponentInfo infoFR = new ComponentInfo(FunctionRepository.class, getClassifier());
    repo.registerComponent(infoFR, compiledFunctionService.getFunctionRepository());
    final FunctionExclusionGroups functionExclusionGroups = appContext.getBean(FunctionExclusionGroups.class);
    repo.registerComponent(new ComponentInfo(FunctionExclusionGroups.class, getClassifier()), functionExclusionGroups);
    final FunctionResolver functionResolver = appContext.getBean(FunctionResolver.class);
    repo.registerComponent(new ComponentInfo(FunctionResolver.class, getClassifier()), functionResolver);
    if (isPublishRest()) {
      repo.getRestComponents().publishResource(new DataFunctionRepositoryResource(compiledFunctionService.getFunctionRepository()));
    }
  }
View Full Code Here

   */
  @Override
  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    HolidaySource source = createHolidaySource(repo);
   
    ComponentInfo info = new ComponentInfo(HolidaySource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHolidaySource.class);
    repo.registerComponent(info, source);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataHolidaySourceResource(source));
    }
  }
View Full Code Here


  @Override
  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final HistoricalTimeSeriesMaster master = new InMemoryHistoricalTimeSeriesMaster();
    final ComponentInfo info = new ComponentInfo(HistoricalTimeSeriesMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHistoricalTimeSeriesMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryHistoricalTimeSeriesMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);

    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataHistoricalTimeSeriesMasterResource(master));
    }
View Full Code Here

TOP

Related Classes of com.opengamma.component.ComponentInfo

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.