Package com.opengamma.livedata.cogda.msg

Examples of com.opengamma.livedata.cogda.msg.CogdaLiveDataUpdateMessage


  /**
   * @param key
   * @param values
   */
  private void sendValueUpdate(LiveDataSpecification key, FudgeMsg values) {
    CogdaLiveDataUpdateMessage message = new CogdaLiveDataUpdateMessage();
    // REVIEW kirk 2012-07-23 -- This is a terrible terrible idea performance wise, this next line.
    message.setSubscriptionId(key.getIdentifiers().getExternalIds().iterator().next());
    message.setNormalizationScheme(key.getNormalizationRuleSetId());
    message.setValues(values);
    FudgeMsg msg = CogdaLiveDataUpdateBuilder.buildMessageStatic(new FudgeSerializer(getFudgeContext()), message);
    try {
      getMessageSender().send(msg);
    } catch (Exception e) {
      s_logger.info("Exception thrown; assuming socket closed and tearing down client.");
View Full Code Here


   * Dispatches a message to the server.
   *
   * @param msg  the message, not null
   */
  private void dispatchLiveDataUpdate(FudgeMsg msg) {
    CogdaLiveDataUpdateMessage updateMessage = CogdaLiveDataUpdateBuilder.buildObjectStatic(new FudgeDeserializer(getFudgeContext()), msg);
    LiveDataSpecification ldspec = new LiveDataSpecification(updateMessage.getNormalizationScheme(), updateMessage.getSubscriptionId());
    LiveDataValueUpdateBean valueUpdateBean = new LiveDataValueUpdateBean(0L, ldspec, updateMessage.getValues());
    super.valueUpdate(valueUpdateBean);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.livedata.cogda.msg.CogdaLiveDataUpdateMessage

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.