Examples of request()


Examples of org.apache.flex.forks.batik.ext.awt.image.URLImageCache.request()

        Filter      ret        = null;
        URLImageCache cache;
        if (needRawData) cache = rawCache;
        else             cache = imgCache;

        ret = cache.request(purl);
        if (ret == null) {
            cache.clear(purl);
            return null;
        }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.datanode.FSDataset.AsyncBlockReport.request()

      for (int i = 0; i < 3; i++) {
        HashMap<Block, File> mockResult = new HashMap<Block, File>();
        Mockito.doReturn(mockResult).when(mock).roughBlockScan();
       
        assertFalse(abr.isReady());
        abr.request();
        while (!abr.isReady()) {
          Thread.sleep(10);
        }
        assertSame(mockResult, abr.getAndReset());
        assertFalse(abr.isReady());
View Full Code Here

Examples of org.apache.harmony.x.print.ipp.IppClient.request()

        try {
            cupsuri = new URI(cups);
            c = new IppClient(cupsuri);

            response = c.request(request.getBytes());

            Vector gg = response
                    .getGroupVector(IppAttributeGroup.TAG_GET_PRINTER_ATTRIBUTES);
            if (gg != null) {
                for (int i = 0, ii = gg.size(); i < ii; i++) {
View Full Code Here

Examples of org.apache.servicemix.client.DefaultServiceMixClient.request()

        container.activateComponent(http, "http");

        container.start();

        ServiceMixClient client = new DefaultServiceMixClient(container);
        client.request(new ServiceNameEndpointResolver(new QName("urn:test", "s2")), null, null, new StreamSource(
                        getClass().getResourceAsStream("soap-request.xml")));

    }

    public void testSoapRoundtripConsumerProvider() throws Exception {
View Full Code Here

Examples of org.apache.servicemix.client.ServiceMixClient.request()

        TestBean bean = new TestBean();
        bean.setName("James");
        bean.setLength(12);
        bean.getAddresses().addAll(Arrays.asList(new String[] {"London", "LA"}));

        Object response = client.request(resolver, null, properties, bean);

        assertNotNull("Should have returned a non-null response!", response);

        log.info("Received result: " + response);
    }
View Full Code Here

Examples of org.apache.solr.client.solrj.SolrServer.request()

         HttpClient cli =HttpCommComponent.makeHttpClient();
           SolrServer server = new CommonsHttpSolrServer(url, cli);
       
           QueryRequest req = new QueryRequest(params);
           req.setMethod(SolrRequest.METHOD.POST);
           ssr.nl = server.request(req);
           cli.getHttpConnectionManager().closeIdleConnections(0);
          
           Map<String,String> timetaken=(Map<String,String>) ssr.nl.get("mdrill_shard_time");
           if(timetaken==null)
           {
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.CloudSolrServer.request()

        req.setParam("name", solrCollection);
        req.setParam("numShards", "2");
        req.setParam("replicationFactor", "2");
        req.setParam("collection.configName", "myconf");
        CloudSolrServer cloudSolrServer = new CloudSolrServer(host);
        NamedList<Object> request = cloudSolrServer.request(req);
//        cloudSolrServer.shutdown();
        return request != null && request.get("success") != null;
    }

    @Test
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request()

         HttpClient cli =HttpCommComponent.makeHttpClient();
           SolrServer server = new CommonsHttpSolrServer(url, cli);
       
           QueryRequest req = new QueryRequest(params);
           req.setMethod(SolrRequest.METHOD.POST);
           ssr.nl = server.request(req);
           cli.getHttpConnectionManager().closeIdleConnections(0);
          
           Map<String,String> timetaken=(Map<String,String>) ssr.nl.get("mdrill_shard_time");
           if(timetaken==null)
           {
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.HttpSolrServer.request()

                ContentStreamUpdateRequest contentStreamUpdateRequest = new ContentStreamUpdateRequest("/update/csv");
                contentStreamUpdateRequest.setParam("stream.contentType", "text/plain;charset=utf-8");
                contentStreamUpdateRequest.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
                contentStreamUpdateRequest.addFile(tempCsv, "text/plain;charset=utf-8");

                statisticsYearServer.request(contentStreamUpdateRequest);
            }
            statisticsYearServer.commit(true, true);


            //Delete contents of this year from our year query !
View Full Code Here

Examples of org.apache.solr.servlet.DirectSolrConnection.request()

    SolrRequestHandler handler = core.getRequestHandler("/udate/json");
    if (handler == null) {
      handler = new JsonUpdateRequestHandler();
      handler.init(null);
    }
    return connection.request(handler, args, json);
  }


  /////////////////////////////////////////////////////////////////////////////////////
  //////////////////////////// random document / index creation ///////////////////////
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.