Examples of fetch()


Examples of org.perl6.nqp.sixmodel.ContainerSpec.fetch()

    }
    public static SixModelObject decont(SixModelObject obj, ThreadContext tc) {
        if (obj == null)
            return null;
        ContainerSpec cs = obj.st.ContainerSpec;
        return cs == null || obj instanceof TypeObject ? obj : cs.fetch(tc, obj);
    }
    public static SixModelObject assign(SixModelObject cont, SixModelObject value, ThreadContext tc) {
        ContainerSpec cs = cont.st.ContainerSpec;
        if (cs != null)
            cs.store(tc, cont, decont(value, tc));
View Full Code Here

Examples of org.platformlayer.ops.metrics.MetricFetcher.fetch()

  }

  @Override
  public MetricDataSource getMetricValues(ItemBase item, MetricQuery query) throws OpsException {
    MetricFetcher metricFetcher = injector.getInstance(MetricFetcher.class);
    return metricFetcher.fetch(this, item, query);
  }

  @Override
  public Class<?> getJavaClass(ItemType itemType) {
    ModelClass<?> modelClass = findModelClass(itemType);
View Full Code Here

Examples of org.rioproject.servicecore.Service.fetch()

                OperationalStringManager opMgr = ((DeployAdmin)monitor.getAdmin()).getOperationalStringManager(elem.getOperationalStringName());
                handle.setElem(elem);
                handle.setOpMgr(opMgr);
                for(String watch : watches) {
                    try {
                        WatchDataSource wds = s.fetch(watch);
                        logger.debug("WatchDataSource for watch [{}]: {}", watch, wds);
                        if(wds==null)
                            continue;
                        handle.addToWatchMap(watch, wds);
                        ThresholdValues tVals = wds.getThresholdValues();
View Full Code Here

Examples of org.rioproject.test.scaling.SettableLoadService.fetch()

        Assert.assertNotNull(testManager);
        SettableLoadService service = (SettableLoadService)testManager.waitForService(SettableLoadService.class);
        Assert.assertNotNull(service);
        Throwable thrown = null;
        try {           
            WatchDataSource systemCPU = service.fetch(SystemWatchID.SYSTEM_CPU);
            Assert.assertNotNull(systemCPU);
            WatchDataSource load = service.fetch("load");
            Assert.assertNotNull(load);
        } catch (RemoteException e) {
            thrown = e;
View Full Code Here

Examples of org.sf.mustru.utils.DbTools.fetch()

     retv.append("Document: " + i + Constants.NEWLINE);
     explanation = is.explain(query, hits.id(i))
     Document doc = hits.doc(i);
     String key = doc.get("key");
     DatabaseEntry data = new DatabaseEntry();
     if (!dbt.fetch(key, data)) continue LOOP;

     //*-- extract the text
     IndexableDoc idoc = new IndexableDoc();
     idoc = (IndexableDoc) idoc.getBdbBinding().entryToObject(data);
     String line= idoc.getContents().toString();
View Full Code Here

Examples of org.voltdb.client.ClientStatsContext.fetch()

// ---------------------------------------------------------------------------------------------------------------------------------------------------

            // Now print application results:

            // stop and fetch the stats
            ClientStats stats = fullStatsContext.fetch().getStats();

            // 1. Store statistics as tracked by the application (ops counts, payload traffic)
            System.out.printf(
              "\n-------------------------------------------------------------------------------------\n"
            + " Store Results\n"
View Full Code Here

Examples of play.db.Model.Factory.fetch()

      Logger.info("Reindexing %s entities of type %s", count, modelClass);

      long offset = 0;
      // loop over pages
      while (offset < count) {
        final List results = factory.fetch((int) offset, PAGE_SIZE, null, null, null, null, null);
        // loop over individual entities within one page
        for (final Object o : results) {
          ElasticSearch.index((Model) o, deliveryMode);
        }
        offset += PAGE_SIZE;
View Full Code Here

Examples of play.db.jpa.GenericModel.JPAQuery.fetch()

                    .bind("member", member)
                    .bind("interests", member.interests);
            if (!member.links.isEmpty()) {
                    jpaQuery.bind("links", member.links);
            }
            List<Object[]> result = jpaQuery.fetch(limit);
            suggestions = Lists.transform(result, MEMBER_SUGGESTIONS_FUNCTION);
        }
        return suggestions;
    }
   
View Full Code Here

Examples of spiderman.plugin.util.PageFetcherImpl.fetch()

    fetcher.init(null);
    try {
      String url = "http://www.livingsocial.com/cities/1964-klang-valley-kuala-lumpur/deals/638602-patong-bay-resotel-return-flight?append_ref_code=source_cities_show";
      FetchRequest req = new FetchRequest();
      req.setUrl(url);
      FetchResult rs = fetcher.fetch(req);
      System.out.println(rs);
      System.out.println(rs.getPage().getContent());
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of voldemort.store.readonly.fetcher.HdfsFetcher.fetch()

        // check if fetching works
        HdfsFetcher fetcher = new HdfsFetcher();

        // Fetch to version directory
        File versionDir = new File(storeDir, "version-0");
        fetcher.fetch(nodeFile.getAbsolutePath(), versionDir.getAbsolutePath());
        Assert.assertTrue(versionDir.exists());

        // open store
        @SuppressWarnings("unchecked")
        Serializer<Object> serializer = (Serializer<Object>) new DefaultSerializerFactory().getSerializer(serDef);
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.