Package org.openfeed.proto.inst

Examples of org.openfeed.proto.inst.InstrumentDefinition


          log.debug("Starting remote lookup for {}", lookup);
         
          final String symbolURI = urlInstrumentLookup(lookup);
          final Element root = HelperXML.xmlDocumentDecode(symbolURI);
          final Element tag = xmlFirstChild(root, "instrument", XML_STOP);
          final InstrumentDefinition instDOM = InstrumentXML.decodeXML(tag);
         
          if(instDOM == null || instDOM == InstrumentDefinition.getDefaultInstance()) {
            log.trace("Empty instrument def returned from remote lookup: {}", lookup);
            failedRemoteQueue.add(lookup);
            return InstrumentDefinition.getDefaultInstance();
View Full Code Here


         
          for(final Future<Map<String, InstrumentDefinition>> f : futures) {
           
            for(final Entry<String, InstrumentDefinition> e : f.get().entrySet()) {
             
              final InstrumentDefinition def = e.getValue();
             
              if(def == null || def == InstrumentDefinition.getDefaultInstance()) {
                observer.onNext(new InstDefResult(e.getKey(),
                    new Throwable("Could not find " + e.getKey())));
              } else {
View Full Code Here

          log.debug("Starting remote lookup for {}", lookup);
         
          final String symbolURI = urlInstrumentLookup(lookup);
          final Element root = HelperXML.xmlDocumentDecode(symbolURI);
          final Element tag = xmlFirstChild(root, "instrument", XML_STOP);
          final InstrumentDefinition instDOM = InstrumentXML.decodeXML(tag);
         
          if(instDOM == null || instDOM == InstrumentDefinition.getDefaultInstance()) {
            log.warn("Empty instrument def returned from remote lookup: {}", lookup);
            failedRemoteQueue.add(lookup);
            return InstrumentDefinition.getDefaultInstance();
View Full Code Here

TOP

Related Classes of org.openfeed.proto.inst.InstrumentDefinition

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.