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
FakeSubscriptionSelector selectorVolatility = new ByTypeFakeSubscriptionSelector(
ImmutableSet.of("SWAPTION VOLATILITY", "OPTION VOLATILITY"));
FakeSubscriptionSelector selectorWeak = new BySchemeFakeSubscriptionSelector(
ImmutableSet.of(ExternalSchemes.BLOOMBERG_BUID_WEAK, ExternalSchemes.BLOOMBERG_TICKER_WEAK));
FakeSubscriptionSelector selector = new UnionFakeSubscriptionSelector(selectorVolatility, selectorWeak);
CombiningBloombergLiveDataServer combinedServer = new CombiningBloombergLiveDataServer(fakeServer,
realServer,
selector,
getCacheManager());
combinedServer.setDistributionSpecificationResolver(distSpecResolver);
combinedServer.setEntitlementChecker(entitlementChecker);
combinedServer.setMarketDataSenderFactory(senderFactory);
repo.registerMBean(new LiveDataServerMBean(combinedServer));
return combinedServer;
}