Package com.opengamma.bbg.livedata.faketicks

Examples of com.opengamma.bbg.livedata.faketicks.FakeSubscriptionBloombergLiveDataServer$CachedPerSecuritySnapshotResult


  public static CombiningBloombergLiveDataServer startTestServer(Class<?> testClass, FakeSubscriptionSelector subscriptionSelector, ReferenceDataProvider refDataProvider) {
    ReferenceDataProvider cachingRefDataProvider = getCachingReferenceDataProvider(refDataProvider, testClass);
    BloombergLiveDataServer underlying = getTestServer(cachingRefDataProvider);
   
    CacheManager cacheManager = EHCacheUtils.createCacheManager();
    FakeSubscriptionBloombergLiveDataServer fakeServer = new FakeSubscriptionBloombergLiveDataServer(underlying, ExternalSchemes.BLOOMBERG_BUID_WEAK, cacheManager);
    fakeServer.start();
   
    CombiningBloombergLiveDataServer combinedServer = new CombiningBloombergLiveDataServer(fakeServer, underlying, subscriptionSelector, cacheManager);
       
    combinedServer.start();
    return combinedServer;
View Full Code Here


    realServer.setMarketDataSenderFactory(senderFactory);
    repo.registerLifecycle(realServer);
    repo.registerMBean(new BloombergLiveDataServerMBean(realServer));

    // fake server
    FakeSubscriptionBloombergLiveDataServer fakeServer = createFakeBloombergLiveDataServer(realServer);
    repo.registerLifecycle(fakeServer);
    repo.registerMBean(new LiveDataServerMBean(fakeServer));

    // combined
    // TODO: stop using this selector, everything should switch to explicit weak, but we have to wait for that change to propagate
View Full Code Here

   *
   * @param realServer  the {@link BloombergLiveDataServer} instance, not null
   * @return the fake Bloomberg live data server, not null
   */
  protected FakeSubscriptionBloombergLiveDataServer createFakeBloombergLiveDataServer(BloombergLiveDataServer realServer) {
    return new FakeSubscriptionBloombergLiveDataServer(realServer, ExternalSchemes.BLOOMBERG_BUID_WEAK, getCacheManager());
  }
View Full Code Here

TOP

Related Classes of com.opengamma.bbg.livedata.faketicks.FakeSubscriptionBloombergLiveDataServer$CachedPerSecuritySnapshotResult

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.