Examples of ping()


Examples of org.apache.hadoop.test.system.AbstractDaemonClient.ping()

    cluster.start();
    cli = cluster.getJTClient();
    i = 1;
    while (i < 40) {
      try {
        cli.ping();
        break;
      } catch (Exception e) {
        i++;
        Thread.sleep(1000);
        LOG.info("Waiting for Jobtracker on host : "
View Full Code Here

Examples of org.apache.marmotta.ldclient.api.ldclient.LDClientService.ping()

        ClientConfiguration config = new ClientConfiguration();
        config.addEndpoint(new StanbolEndpoint("DBPedia (Stanbol Cache)","http://dev.iks-project.eu:8080/entityhub/site/dbpedia/","^http://dbpedia\\.org/resource/.*"));

        LDClientService ldclient = new TestLDClient(new LDClient(config));

        Assume.assumeTrue(ldclient.ping("http://dev.iks-project.eu:8080/"));

        String uriBerlin = "http://dbpedia.org/resource/Berlin";
        ClientResponse respBerlin = ldclient.retrieveResource(uriBerlin);

        RepositoryConnection conBerlin = respBerlin.getTriples().getConnection();
View Full Code Here

Examples of org.apache.marmotta.ldclient.test.helper.TestLDClient.ping()

        ClientConfiguration config = new ClientConfiguration();
        config.addEndpoint(new StanbolEndpoint("DBPedia (Stanbol Cache)","http://dev.iks-project.eu:8080/entityhub/site/dbpedia/","^http://dbpedia\\.org/resource/.*"));

        LDClientService ldclient = new TestLDClient(new LDClient(config));

        Assume.assumeTrue(ldclient.ping("http://dev.iks-project.eu:8080/"));

        String uriBerlin = "http://dbpedia.org/resource/Berlin";
        ClientResponse respBerlin = ldclient.retrieveResource(uriBerlin);

        RepositoryConnection conBerlin = respBerlin.getTriples().getConnection();
View Full Code Here

Examples of org.apache.sandesha2.interop.RMInteropServiceStub.Ping()

    setUpOptions(options);
   
    options.setProperty(SandeshaClientConstants.MESSAGE_NUMBER,new Long(1));
    Ping ping = new Ping ();
    ping.setText("ping1");
    stub.Ping(ping);
   
    options.setProperty(SandeshaClientConstants.MESSAGE_NUMBER,new Long(3));
    ping = new Ping ();
    ping.setText("ping2");
    stub.Ping(ping);
View Full Code Here

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

                    log.debug("found a Solr index definition {}", entry.getName());
                }
                try {
                    SolrServer solrServer = solrServerProvider.getSolrServer();
                    // the query engine should be returned only if the server is alive, otherwise other indexes should be used
                    if (solrServer != null && 0 == solrServer.ping().getStatus()) {
                        tempIndexes.add(new SolrQueryIndex(
                                entry.getName(),
                                solrServer,
                                oakSolrConfigurationProvider.getConfiguration()));
                    }
View Full Code Here

Examples of org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.ping()

                } finally {
                    Thread.currentThread().setContextClassLoader(classLoader);
                }

                EmbeddedSolrServer server = new EmbeddedSolrServer(coreContainer, coreName);
                if (server.ping().getStatus() == 0) {
                    return server;
                } else {
                    throw new IOException("the embedded Solr server is not alive");
                }
            }
View Full Code Here

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

        // SolrCloud may need some time to sync on collection creation (to spread it over the shards / replicas)
        int i = 0;
        while (i < 3) {
            try {
                SolrPingResponse ping = cloudSolrServer.ping();
                if (ping != null && 0 == ping.getStatus()) {
                    return cloudSolrServer;
                } else {
                    throw new IOException("the found HTTP Solr server is not alive");
                }
View Full Code Here

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

    }

    private SolrServer initializeWithExistingHttpServer() throws IOException, SolrServerException {
        // try basic Solr HTTP client
        HttpSolrServer httpSolrServer = new HttpSolrServer(solrHttpUrl);
        SolrPingResponse ping = httpSolrServer.ping();
        if (ping != null && 0 == ping.getStatus()) {
            return httpSolrServer;
        } else {
            throw new IOException("the found HTTP Solr server is not alive");
        }
View Full Code Here

Examples of org.apache.stanbol.commons.jobs.api.JobManager.ping()

        JobManager m = getJobManager();

        // If the job exists
        if (m.hasJob(id)) {
            log.info("Found job with id {}", id);
            Future<?> f = m.ping(id);
            this.info = new JobInfoImpl();
            if(f.isDone()){
                // The job is finished
                if(f.isCancelled()){
                    // NOTE: Canceled jobs should never exist.
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.test.extension.TestService.ping()

    public void testInvoke() throws Exception {
        ServiceReference<TestService> serviceReference = domain.getServiceReference(TestService.class, "TestServiceComponent");
        assertNotNull(serviceReference);
        TestService service = serviceReference.getService();
        String result = service.ping("Bob");
        assertEquals("Hello Bob", result);
    }

    @Override
    protected void tearDown() throws Exception {
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.