Examples of metadata()


Examples of akka.persistence.SnapshotOffer.metadata()

                numReplicated += 1;
                System.out.println(String.format("view received %s (num replicated = %d)", message, numReplicated));
            } else if (message instanceof SnapshotOffer) {
                SnapshotOffer so = (SnapshotOffer)message;
                numReplicated = (Integer)so.snapshot();
                System.out.println(String.format("view received snapshot offer %s (metadata = %s)", numReplicated, so.metadata()));
            } else if (message.equals("snap")) {
                saveSnapshot(numReplicated);
            } else {
              unhandled(message);
            }
View Full Code Here

Examples of com.opengamma.master.security.SecurityMaster.metaData()

  private List<ManageablePosition> loadSomePositions(boolean includeTrades) {
    List<ManageablePosition> positions = new ArrayList<ManageablePosition>();
    SecurityMaster securityMaster = getToolContext().getSecurityMaster();
    SecurityMetaDataRequest metaRequest = new SecurityMetaDataRequest();
    SecurityMetaDataResult metaData = securityMaster.metaData(metaRequest);
    for (String securityType : metaData.getSecurityTypes()) {
      if (UNSUPPORTED_SECURITY_TYPES.contains(securityType)) {
        continue;
      }
      s_logger.info("Processing security type " + securityType);
View Full Code Here

Examples of com.opengamma.provider.livedata.LiveDataMetaDataProvider.metaData()

      ComponentInfo infoProvider = repo.findInfo(LiveDataMetaDataProvider.class, info.getClassifier());
      if (infoProvider == null) {
        throw new OpenGammaRuntimeException("Unable to find matching LiveDataMetaDataProvider: " + info);
      }
      LiveDataMetaDataProvider provider = (LiveDataMetaDataProvider) repo.getInstance(infoProvider);
      LiveDataMetaData metaData = provider.metaData();
      schemes.addAll(metaData.getSupportedSchemes());
      buf.appendSeparator(", ").append(metaData.getDescription());
    }
    return new LiveDataMetaData(ImmutableList.copyOf(schemes), LiveDataServerTypes.STANDARD, buf.toString());
  }
View Full Code Here

Examples of de.anomic.crawler.retrieval.Request.metadata()

                entry = sb.indexSegments.urlMetadata(Segments.Process.PUBLIC).load(ASCII.getBytes(urlhashes.substring(12 * i, 12 * (i + 1))));
                if (entry == null) continue;
                // find referrer, if there is one
                referrer = sb.getURL(Segments.Process.PUBLIC, entry.referrerHash());
                // create RSS entry
                metadata = entry.metadata();
                prop.put("item_" + c + "_title", metadata.dc_title());
                prop.putXML("item_" + c + "_link", metadata.url().toNormalform(true, false));
                prop.putXML("item_" + c + "_referrer", (referrer == null) ? "" : referrer.toNormalform(true, false));
                prop.putXML("item_" + c + "_description", metadata.dc_title());
                prop.put("item_" + c + "_author", metadata.dc_creator());
View Full Code Here

Examples of eu.planets_project.services.datatypes.DigitalObject.Builder.metadata()

                  log.info("OAIDigitalObjectManagerKBImpl list() filename: " + filename +
                      ", pdURI.toString(): " + pdURI.toString() + ", url: " + url);

                   URI permanentUri = URI.create(getBaseRegistryURI() +"/"+ filename).normalize();           
            builder.permanentUri(permanentUri);
            builder.metadata(new Metadata(namespaceURI, record.getMetadataAsString()));
              long endtime = System.currentTimeMillis();
              log.info("OAIDigitalObjectManagerDCImpl retrieve() timediff: " + (endtime - starttime));
            DigitalObject o = builder.build();
            if (url != null && !leafMap.containsKey(URI.create(url))) {
                log.info("OAIDigitalObjectManagerDCImpl retrieve() add to map uri: " + URI.create(url));
View Full Code Here

Examples of facebook4j.Reading.metadata()

        final Reading source = new Reading();
        source.fields("field1", "field2");
        source.filter("testFilter");
        source.limit(100);
        source.locale(Locale.US);
        source.metadata();
        source.offset(1000);
        source.since(new Date());
        source.until(new Date());
        source.withLocation();
       
View Full Code Here

Examples of it.unimi.di.big.mg4j.document.DocumentCollection.metadata()

      int added = 0;
      for (int i = 0; i < retrieved && added < capacity; i++) {
        DocumentScoreInfo dsi = results.get(i);
        Document document = collection.document(dsi.document);
                System.err.println("URI: " + document.uri());
                System.err.println("URI["+dsi.document+"]: " + collection.metadata(dsi.document).get(PropertyBasedDocumentFactory.MetadataKeys.URI));
        final String docno = (String) collection.metadata(dsi.document).get(PropertyBasedDocumentFactory.MetadataKeys.URI);

        // If it was not a discarded document
        if (discardedDocuments == null
            || !discardedDocuments.contains(docno)) {
View Full Code Here

Examples of javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder.metadata()

        DOMResult result = new DOMResult();
        transformer.writePropertiesTo(slPropertiesImpl, result);
        Document docResult = (Document) result.getNode();

        builder.metadata(docResult.getDocumentElement());

        expectedRef = builder.build();

        endpointRef = lps.lookupEndpoint(SERVICE_NAME, null);
View Full Code Here

Examples of net.sf.jabref.BasePanel.metaData()

                            tableModel.setContent((String) o);
                            if (tableModel.getRowCount() == 0)
                                return;
                            FileListEntry fl = tableModel.getEntry(0);
                            (new ExternalFileMenuItem(frame, entry, "", fl.getLink(), null,
                                p.metaData(), fl.getType())).actionPerformed(null);
                        }
                        break;
                    case URL_COL:
                        Object link = entry.getField("url");
                        try {
View Full Code Here

Examples of net.sf.jabref.BasePanel.metaData()

                        break;
                    case URL_COL:
                        Object link = entry.getField("url");
                        try {
                            if (link != null)
                                Util.openExternalViewer(p.metaData(), (String) link, "url");
                        } catch (IOException ex) {
                            ex.printStackTrace();
                        }
                        break;
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.