Examples of DistributionSpecification


Examples of com.opengamma.livedata.server.DistributionSpecification

    assertEquals(0, _serverC.getSubscriptions().size());
  }

  public void matchingResolution() {
    LiveDataSpecification spec = new LiveDataSpecification("No Normalization", ExternalId.of(_domainC, "X"));
    DistributionSpecification combined = _combiningServer.getDefaultDistributionSpecificationResolver().resolve(spec);
    DistributionSpecification direct = _serverC.getDistributionSpecificationResolver().resolve(spec);
    assertEquals(direct, combined);
  }
View Full Code Here

Examples of com.opengamma.livedata.server.DistributionSpecification

      _lock.release();
    }
  }

  private void send() {
    DistributionSpecification distributionSpec = getDistributor().getDistributionSpec();
   
    LiveDataValueUpdateBean liveDataValueUpdateBean = new LiveDataValueUpdateBean(
        _lastSequenceNumber,
        distributionSpec.getFullyQualifiedLiveDataSpecification(),
        _cumulativeDelta.getLastKnownValues());
    s_logger.debug("{}: Sending Live Data update {}", this, liveDataValueUpdateBean);
   
    FudgeMsg fudgeMsg = LiveDataValueUpdateBeanFudgeBuilder.toFudgeMsg(new FudgeSerializer(_fudgeContext), liveDataValueUpdateBean);
    String destinationName = distributionSpec.getJmsTopic();
    final byte[] bytes = _fudgeContext.toByteArray(fudgeMsg);
   
    _jmsConnector.getJmsTemplateTopic().send(destinationName, new MessageCreator() {
      @Override
      public Message createMessage(Session session) throws JMSException {
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.