Examples of ExampleLiveDataServer


Examples of com.opengamma.examples.simulated.livedata.ExampleLiveDataServer

  private CacheManager _cacheManager;

  //-------------------------------------------------------------------------
  @Override
  protected StandardLiveDataServer initServer(final ComponentRepository repo) {
    final ExampleLiveDataServer server = new ExampleLiveDataServer(getCacheManager(), getSimulatedData());

    final Collection<NormalizationRuleSet> rules = ImmutableList.of(StandardRules.getNoNormalization(), NormalizationRules.getMarketValueNormalization());
    final DefaultDistributionSpecificationResolver distSpecResolver = new DefaultDistributionSpecificationResolver(
        new SyntheticIdResolver(),
        new StandardRuleResolver(rules),
        new ExampleJmsTopicNameResolver());
    server.setDistributionSpecificationResolver(distSpecResolver);

    final JmsSenderFactory senderFactory = new JmsSenderFactory(getJmsConnector());
    server.setMarketDataSenderFactory(senderFactory);

    repo.registerMBean(new ExampleLiveDataServerMBean(server));
    return server;
  }
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.