Package com.opengamma.bbg.model

Examples of com.opengamma.bbg.model.SecurityMasterResponseMessage


      Thread.currentThread().interrupt();
      s_logger.info("InterruptedException, request cannot be serviced right now");
      throw new OpenGammaRuntimeException("Unable to getSecurities because of InterruptedException", e);
    }
    byte[] data = receiver.getMessage();
    SecurityMasterResponseMessage response = toSecurityMasterResponseMessage(data);
    return response.getSecurities();
  }
View Full Code Here


      Thread.currentThread().interrupt();
      s_logger.info("InterruptedException, request cannot be serviced right now");
      throw new OpenGammaRuntimeException("Unable to getSecurity because of InterruptedException", e);
    }
    byte[] data = receiver.getMessage();
    SecurityMasterResponseMessage response = toSecurityMasterResponseMessage(data);
    return response.getSecurity();
  }
View Full Code Here

    SecurityMasterRequestMessage secMasterRequest = SecurityMasterRequestMessage.fromFudgeMsg(new FudgeDeserializer(_fudgeContext), requestFudgeMsg);
    MessageType messageType = secMasterRequest.getMessageType();
    String secDes = secMasterRequest.getUniqueId() != null ? secMasterRequest.getUniqueId().getValue() : secMasterRequest.getSecKey().toString();
    s_logger.debug("Received {} request for {} ", new Object[] {secMasterRequest.getMessageType(), secDes });
    Security sec = null;
    SecurityMasterResponseMessage responseMessage = new SecurityMasterResponseMessage();
    switch (messageType) {
      case GET_SECURITIES_BY_KEY:
        Collection<? extends Security> securities = _securitySource.get(secMasterRequest.getSecKey());
        responseMessage.setSecurities(Collections.unmodifiableCollection(securities));
        break;
      case GET_SECURITY_BY_KEY:
        sec = _securitySource.getSingle(secMasterRequest.getSecKey());
        responseMessage.setSecurity(sec);
        break;
      case GET_SECURITY_BY_IDENTITY:
        sec = _securitySource.get(secMasterRequest.getUniqueId());
        responseMessage.setSecurity(sec);
        break;
      default:
        s_logger.warn("Unsupported SecurityMasterRequest {}", messageType);
        throw new OpenGammaRuntimeException("Unsupported SecurityMasterRequest");
    }
View Full Code Here

      Thread.currentThread().interrupt();
      s_logger.info("InterruptedException, request cannot be serviced right now");
      throw new OpenGammaRuntimeException("Unable to getSecurity because of InterruptedException", e);
    }
    byte[] data = receiver.getMessage();
    SecurityMasterResponseMessage response = toSecurityMasterResponseMessage(data);
    return response.getSecurity();
  }
View Full Code Here

      Thread.currentThread().interrupt();
      s_logger.info("InterruptedException, request cannot be serviced right now");
      throw new OpenGammaRuntimeException("Unable to getOptionChain because of InterruptedException", e);
    }
    byte[] data = receiver.getMessage();
    SecurityMasterResponseMessage response = toSecurityMasterResponseMessage(data);
    return response.getOptionChain();
  }
View Full Code Here

TOP

Related Classes of com.opengamma.bbg.model.SecurityMasterResponseMessage

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.