Examples of ping()


Examples of net.kuujo.vertigo.cluster.Cluster.ping()

   * @param resultHandler An asynchronous handler to be called once complete.
   * @return The Vertigo instance.
   */
  public Vertigo getCluster(String address, Handler<AsyncResult<Cluster>> resultHandler) {
    Cluster cluster = new DefaultCluster(address, vertx, container);
    cluster.ping(resultHandler);
    return this;
  }

  /**
   * Deploys a bare network to an anonymous local-only cluster.<p>
View Full Code Here

Examples of net.kuujo.vertigo.cluster.impl.DefaultCluster.ping()

   * @param resultHandler An asynchronous handler to be called once complete.
   * @return The Vertigo instance.
   */
  public Vertigo getCluster(String address, Handler<AsyncResult<Cluster>> resultHandler) {
    Cluster cluster = new DefaultCluster(address, vertx, container);
    cluster.ping(resultHandler);
    return this;
  }

  /**
   * Deploys a bare network to an anonymous local-only cluster.<p>
View Full Code Here

Examples of net.xeoh.plugins.remotediscovery.impl.common.discoverymanager.DiscoveryManager.ping()

             * but, there is no TimeoutException....
             *
             * @sa DiscoveredPluginTest.testMultiplePlugins()
             */
            @SuppressWarnings("unused")
            int pingRes = newClient.ping(123321);

            // Execute collection asynchronously (TODO: cache pool usage could be
            // improved)
            final ExecutorService cachePool = Executors.newCachedThreadPool();
            final ExecutorCompletionService<String> ecs = new ExecutorCompletionService(cachePool);
View Full Code Here

Examples of net.xeoh.plugins.remotediscovery.impl.common.discoverymanager.DiscoveryManager.ping()

        final Future<String> future = ecs.submit(new Callable<String>() {

            public String call() throws Exception {
                return AccessController.doPrivileged(new PrivilegedAction<String>() {
                    public String run() {
                        return newClient.ping(667) == 667 ? "OK" : null;
                    }
                });
            }
        });
View Full Code Here

Examples of net.xeoh.plugins.remotediscovery.impl.common.discoverymanager.DiscoveryManager.ping()

                    public Object run() {
                        try {
                            final long start = System.nanoTime();

                            // Perform the ping
                            mgr.ping(new Random().nextInt());

                            // Obtain the time
                            final long stop = System.nanoTime();
                            final long time = (stop - start) / 1000;
View Full Code Here

Examples of org.apache.accumulo.core.client.admin.InstanceOperations.ping()

    int unreachable = 0;

    for (String tserver : args) {
      try {
        io.ping(tserver);
        System.out.println(tserver + " OK");
      } catch (AccumuloException ae) {
        System.out.println(tserver + " FAILED (" + ae.getMessage() + ")");
        unreachable++;
      }
View Full Code Here

Examples of org.apache.archiva.web.xmlrpc.api.PingService.ping()

        try
        {
            AdministrationService adminService = binder.bind( AdministrationService.class, new URL( args[0] ), info );
            PingService pingService = binder.bind( PingService.class, new URL( args[0] ), info );
                      
            System.out.println( "Ping : " + pingService.ping() );
           
            List<ManagedRepository> managedRepos = adminService.getAllManagedRepositories();
           
            System.out.println( "\n******** Managed Repositories ********" );
            for( ManagedRepository managedRepo : managedRepos )
View Full Code Here

Examples of org.apache.axis2.engine.Pingable.ping()

        if (msgReceiver != null && msgReceiver instanceof Pingable) {
            Pingable pingableMR = (Pingable) msgReceiver;
            //Adding the operation name to be pinged as a property
            inMessage.setProperty(Pingable.OPERATION_TO_PING, axisOperation.getName().getLocalPart());
            return pingableMR.ping();
        }

        return Pingable.PING_MODULE_LEVEL;
    }
}
View Full Code Here

Examples of org.apache.axis2.oasis.ping.PingPortStub.Ping()

        stub._getServiceClient().getOptions().setSoapVersionURI(soapNsURI);
        stub._getServiceClient().engageModule(
                new javax.xml.namespace.QName("rampart"));
       

        PingResponseDocument pingResDoc = stub.Ping(pingDoc);

        PingResponse pingRes = pingResDoc.getPingResponse();

        System.out.println(pingRes.getText());
    }
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.ping()

  }

  private void preconnectClients(String shardServer) {
    try {
      Iface client = org.apache.blur.thrift.BlurClient.getClient(shardServer);
      client.ping();
      LOG.debug("Pinging shard server [{0}]", shardServer);
    } catch (Exception e) {
      LOG.error("Error while trying to ping shard server [{0}]", shardServer);
    }
  }
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.