Package com.opengamma.core.historicaltimeseries.impl

Examples of com.opengamma.core.historicaltimeseries.impl.DataHistoricalTimeSeriesSourceResource


    repo.registerLifecycle(jmsContainer);
  }

  private void initHistoricalTimeSeries(ComponentRepository repo) {
    HistoricalTimeSeriesSource source = new BloombergHistoricalTimeSeriesSource(getHistoricalTimeSeriesProvider());
    DataHistoricalTimeSeriesSourceResource resource = new DataHistoricalTimeSeriesSourceResource(source);
    repo.getRestComponents().publishResource(resource);
  }
View Full Code Here


    ComponentInfo info = new ComponentInfo(HistoricalTimeSeriesSource.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHistoricalTimeSeriesSource.class);
    repo.registerComponent(info, source);
    if (isPublishRest()) {
      repo.getRestComponents().publish(info, new DataHistoricalTimeSeriesSourceResource(source));
    }

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

    infoSource.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    infoSource.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteHistoricalTimeSeriesSource.class);
    repo.registerComponent(infoSource, source);
    if (isPublishRest()) {
      repo.getRestComponents().publish(infoResolver, new DataHistoricalTimeSeriesResolverResource(resolver, OpenGammaFudgeContext.getInstance()));
      repo.getRestComponents().publish(infoSource, new DataHistoricalTimeSeriesSourceResource(source));
    }
  }
View Full Code Here

  public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
    HistoricalTimeSeriesSource source = initHistoricalTimeSeriesSource(repo);
    ComponentInfo info = new ComponentInfo(BloombergHistoricalTimeSeriesSource.class, getClassifier());
    repo.registerComponent(info, source);
    if (isPublishRest()) {
      repo.getRestComponents().publishResource(new DataHistoricalTimeSeriesSourceResource(source))// publish in old way
    }
  }
View Full Code Here

    repo.registerComponent(infoRedis, instance);

    // Is caching needed? assume no for now
    if (_publishRest) {
      repo.getRestComponents().publish(infoResolver, new DataHistoricalTimeSeriesResolverResource(resolver, OpenGammaFudgeContext.getInstance()));
      repo.getRestComponents().publish(infoSource, new DataHistoricalTimeSeriesSourceResource(instance));
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.historicaltimeseries.impl.DataHistoricalTimeSeriesSourceResource

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.