Package com.opengamma.core.security.impl

Examples of com.opengamma.core.security.impl.RemoteSecuritySource


    factory.setClientBrokerUri(uri);
    final JmsConnector jmsConnector = factory.getObjectCreating();

    final ViewProcessor viewProcessor = new RemoteViewProcessor(viewProcessorInfo.getUri(), jmsConnector, Executors.newSingleThreadScheduledExecutor());
    // TODO: Not ideal; the published resolver should be used rather than an ad-hoc one created based just on the security source
    final ComputationTargetResolver targetResolver = new DefaultComputationTargetResolver(new RemoteSecuritySource(securitySourceInfo.getUri()));
    return new WatchListRecorder(viewProcessor, targetResolver);
  }
View Full Code Here


   * @param preferredClassifiers a list of names of classifiers in order of preference (most preferred first), or null
   * @return the best matching interface available
   */
  public SecuritySource getSecuritySource(final List<String> preferredClassifiers) {
    URI uri = getTopLevelComponent(preferredClassifiers, SecuritySource.class).getUri();
    return new RemoteSecuritySource(uri);
  }
View Full Code Here

   * @return a map of classifier names to requested interface type
   */
  public Map<String, SecuritySource> getSecuritySources() {
    Map<String, SecuritySource> result = new LinkedHashMap<String, SecuritySource>();
    for (ComponentInfo info : getComponentServer().getComponentInfos(SecuritySource.class)) {
      result.put(info.getClassifier(), new RemoteSecuritySource(info.getUri()));
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.security.impl.RemoteSecuritySource

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.