Package com.opengamma.engine.marketdata.live

Examples of com.opengamma.engine.marketdata.live.MarketDataAvailabilityNotification


          try {
            s_logger.info("Connecting to Bloomberg");
            connect();
            startExpirationManager();
            reestablishSubscriptions();
            MarketDataAvailabilityNotification notification = new MarketDataAvailabilityNotification(
                ImmutableSet.of(
                    ExternalSchemes.BLOOMBERG_BUID,
                    ExternalSchemes.BLOOMBERG_BUID_WEAK,
                    ExternalSchemes.BLOOMBERG_TCM,
                    ExternalSchemes.BLOOMBERG_TICKER,
                    ExternalSchemes.BLOOMBERG_TICKER_WEAK));
            FudgeSerializer serializer = new FudgeSerializer(OpenGammaFudgeContext.getInstance());
            s_logger.info("Sending notification that Bloomberg is available: {}", notification);
            _availabilityNotificationSender.send(notification.toFudgeMsg(serializer));
          } catch (Exception e) {
            s_logger.warn("Failed to connect to Bloomberg", e);
          }
        }
      }
View Full Code Here

TOP

Related Classes of com.opengamma.engine.marketdata.live.MarketDataAvailabilityNotification

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.