Examples of LiveDataClient


Examples of com.opengamma.livedata.LiveDataClient

   */
  @Override
  protected void doRun() {
    String fileName = getCommandLine().getOptionValue(FILE_NAME_OPT);
    String userName = getCommandLine().getOptionValue(USER_NAME_OPT);
    LiveDataClient ldc = ComponentRepository.getThreadLocal().getInstance(LiveDataClient.class, "main");
    PeriodicLiveDataTimeSeriesStorageServer server = new PeriodicLiveDataTimeSeriesStorageServer(
        userName,
        ldc,
        getToolContext().getHistoricalTimeSeriesMaster(),
        getCommandLine().getOptionValue(TIME_SERIES_DATASOURCE_OPT),
View Full Code Here

Examples of com.opengamma.livedata.LiveDataClient

    initNamedMarketDataSpecificationRepository(repo);
  }

  private MarketDataProviderFactory initLiveMarketDataProviderFactory(final ComponentRepository repo) {
    final LiveDataMetaDataProvider provider = getServerMetaDataProvider();
    final LiveDataClient liveDataClient = createLiveDataClient(provider);

    final MarketDataAvailabilityFilter availability = createAvailabilityFilter(provider);
    final LiveDataFactory defaultFactory = new LiveDataFactory(liveDataClient, availability);
    final Map<String, LiveDataFactory> factoryMap = ImmutableMap.of(SIMULATED_LIVE_SOURCE_NAME, defaultFactory);
    final MarketDataProviderFactory marketDataProviderFactory = new InMemoryLKVLiveMarketDataProviderFactory(defaultFactory, factoryMap);
View Full Code Here

Examples of com.opengamma.livedata.LiveDataClient

    final RemoteLiveDataClientFactoryBean ldcFb = new RemoteLiveDataClientFactoryBean();
    ldcFb.setJmsConnector(jmsConnector);
    ldcFb.setSubscriptionTopic(metaData.getJmsSubscriptionTopic());
    ldcFb.setEntitlementTopic(metaData.getJmsEntitlementTopic());
    ldcFb.setHeartbeatTopic(metaData.getJmsHeartbeatTopic());
    final LiveDataClient ldcDistributed = ldcFb.getObjectCreating();
    return ldcDistributed;
  }
View Full Code Here

Examples of com.opengamma.livedata.LiveDataClient

    ldcFb.setJmsConnector(getJmsConnector());
    ldcFb.setSubscriptionTopic(getSubscriptionTopic());
    ldcFb.setEntitlementTopic(getEntitlementTopic());
    ldcFb.setHeartbeatTopic(getHeartbeatTopic());
   
    LiveDataClient ldc = ldcFb.getObjectCreating();
    ComponentInfo info = new ComponentInfo(LiveDataClient.class, getClassifier());
    repo.registerComponent(info, ldc);
  }
View Full Code Here

Examples of com.opengamma.livedata.LiveDataClient

    final RemoteLiveDataClientFactoryBean liveDataClientFactory = new RemoteLiveDataClientFactoryBean();
    liveDataClientFactory.setJmsConnector(jmsConnector);
    liveDataClientFactory.setSubscriptionTopic(metaData.getJmsSubscriptionTopic());
    liveDataClientFactory.setEntitlementTopic(metaData.getJmsEntitlementTopic());
    liveDataClientFactory.setHeartbeatTopic(metaData.getJmsHeartbeatTopic());
    final LiveDataClient liveDataClient = liveDataClientFactory.getObjectCreating();

    final MarketDataAvailabilityFilter availability = BloombergDataUtils.createAvailabilityFilter();
    final LiveDataFactory liveDataFactory = new LiveDataFactory(liveDataClient, availability);
    final MarketDataProviderFactory liveMarketDataProviderFactory = new InMemoryLKVLiveMarketDataProviderFactory(liveDataFactory, ImmutableMap.of(description, liveDataFactory));
    final ComponentInfo providerFactoryInfo = new ComponentInfo(MarketDataProviderFactory.class, getClassifier());
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.