Package com.opengamma.master.marketdatasnapshot.impl

Examples of com.opengamma.master.marketdatasnapshot.impl.MasterSnapshotSource


  }

  //-------------------------------------------------------------------------
  @Override
  protected MarketDataSnapshotSource createObject() {
    MarketDataSnapshotSource source = new MasterSnapshotSource(getSnapshotMaster());
    source = new DelegatingSnapshotSource(source);
    return source;
  }
View Full Code Here


    repo.getRestComponents().publish(infoSource, new DataSecuritySourceResource(source));
  }

  protected void initSnapshots(final ComponentRepository repo) {
    final MarketDataSnapshotMaster master = new InMemorySnapshotMaster();
    final MarketDataSnapshotSource source = new MasterSnapshotSource(master);

    final ComponentInfo infoMaster = new ComponentInfo(MarketDataSnapshotMaster.class, "test");
    repo.registerComponent(infoMaster, master);
    repo.getRestComponents().publish(infoMaster, new DataMarketDataSnapshotMasterResource(master));
View Full Code Here

      repo.getRestComponents().publish(info, new DataMarketDataSnapshotSourceResource(source));
    }
  }

  protected MarketDataSnapshotSource initUnderlying(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    MarketDataSnapshotSource source = new MasterSnapshotSource(getUnderlyingMarketDataSnapshotMaster());
    if (getUnderlyingClassifier() != null) {
      ComponentInfo info = new ComponentInfo(MarketDataSnapshotSource.class, getUnderlyingClassifier());
      info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
      info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteMarketDataSnapshotSource.class);
      repo.registerComponent(info, source);
View Full Code Here

  protected MarketDataSnapshotSource initUser(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
    if (getUserMarketDataSnapshotMaster() == null) {
      return null;
    }
    MarketDataSnapshotSource source = new MasterSnapshotSource(getUserMarketDataSnapshotMaster());
    if (getUserClassifier() != null) {
      ComponentInfo info = new ComponentInfo(MarketDataSnapshotSource.class, getUserClassifier());
      info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
      info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemoteMarketDataSnapshotSource.class);
      repo.registerComponent(info, source);
View Full Code Here

   *
   * @param repo  the component repository, only used to register secondary items like lifecycle, not null
   * @return the snapshot source, not null
   */
  protected MarketDataSnapshotSource createMarketDataSnapshotSource(ComponentRepository repo) {
    MarketDataSnapshotSource source = new MasterSnapshotSource(getMarketDataSnapshotMaster());
    source = new DelegatingSnapshotSource(source);
    return source;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.master.marketdatasnapshot.impl.MasterSnapshotSource

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.