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);
}
}
}