Examples of ping()


Examples of com.sun.enterprise.ee.admin.lbadmin.writer.LbConfigPublisher.ping()

                if(lb == null)
                    throw new Exception( _strMgr.getString("LbDoesNotExist", lbName));
                configName = lb.getLbConfigName();
            }
            LbConfigPublisher lbp = new LbConfigPublisher(ctx, configName, lbName);
            result = lbp.ping();
            _logger.log(Level.INFO, _sMgr.getString(
                    "http_lb_admin.TestConnection", Boolean.toString(result), lbName));
        } catch (Exception e) {
            String msg = _strMgr.getString("LbTestConnectionFailed",
                         lbName);
View Full Code Here

Examples of com.xeiam.xchange.coinsetter.service.polling.CoinsetterPingServiceRaw.ping()

  public static void main(String[] args) throws IOException {

    Exchange coinsetter = CoinsetterExamplesUtils.getExchange();
    CoinsetterPingServiceRaw pingService = new CoinsetterPingServiceRaw(coinsetter.getExchangeSpecification());

    String text = pingService.ping("HelloWorld");
    log.info("ping result: {}", text);
  }

}
View Full Code Here

Examples of edu.berkeley.sparrow.thrift.PongService.AsyncClient.ping()

    while (true) {
      Long t = System.nanoTime();
      AsyncClient client = pongClientPool.borrowClient(address);
      System.out.println("Getting client took " + ((System.nanoTime() - t) / (1000 * 1000)) +
                         "ms");
      client.ping("PING", new Callback(address, System.nanoTime()));
      Thread.sleep(30);
    }
  }

  public static void main(String[] args) throws Exception {
View Full Code Here

Examples of freenet.node.PeerNode.ping()

        //node1.usm.setDropProbability(4);
        while(true) {
            Logger.error(RealNodePingTest.class, "Sending PING "+pingID);
            boolean success;
            try {
                success = pn.ping(pingID);
            } catch (NotConnectedException e1) {
                Logger.error(RealNodePingTest.class, "Not connected");
                continue;
            }
            if(success)
View Full Code Here

Examples of freenet.node.SeedServerTestPeerNode.ping()

        int uptime = seednode.getUptime();
        long timeDelta = seednode.getClockDelta();
        if(seednode.isRealConnection())
          continue;
        countConnectedSeednodes++;
        boolean ping = seednode.ping(pingID++);
        if(ping)
          System.out.println(seednode.getIdentityString()+
            " uptime="+uptime+
            " ping="+ping+
            " pingTime="+pingTime+
View Full Code Here

Examples of helper.OfficeWatcher.ping()

        OfficeWatcher ow = (OfficeWatcher) param.get(PropertyName.OFFICE_WATCHER);

        while (changedText && !procHdl.isFinished()) {
            count++;
            if (ow != null) {
                ow.ping();
            }
            log.println("CheckModuleAPI: waiting... " + count);
            utils.shortWait(timeOut);
            if (ow != null) {
                ow.ping();
View Full Code Here

Examples of helper.OfficeWatcher.ping()

                ow.ping();
            }
            log.println("CheckModuleAPI: waiting... " + count);
            utils.shortWait(timeOut);
            if (ow != null) {
                ow.ping();
            }
            // check for changes in the output stream. If there are no changes, the process maybe hangs
            if (procHdl.getOutputText().equals(memText)) {
                changedText = false;
            }
View Full Code Here

Examples of interopbaseaddress.interop.IPingService.ping()

                Ping ping = new Ping();
                ping.setOrigin("CXF");
                ping.setScenario("Scenario5");
                ping.setText("ping");
                params.setPing(ping);
                PingResponse output = port.ping(params);
                if (!OUT.equals(output.getPingResponse().getText())) {
                    System.err.println(
                        "Expected " + OUT + " but got " + output.getPingResponse().getText()
                    );
                    results.add("Unexpected output " + output.getPingResponse().getText());
View Full Code Here

Examples of jade.core.Node.ping()

      try {
        ContainerID oldCid = impl.getContainerID(agentID);
        Node n = impl.getContainerNode(oldCid).getNode();
       
        // Perform a non-blocking ping to check...
        n.ping(false);
       
        // Ping succeeded: rethrow the NameClashException
        throw nce;
      }
      catch(NameClashException nce2) {
View Full Code Here

Examples of lejos.nxt.UltrasonicSensor.ping()

    // Continous-Modus testen (ist der default-Modus):
    sensor.continuous();
    assertEquals(255, sensor.getDistance());

    // Ping-Modus testen:
    sensor.ping();
    assertEquals(255, sensor.getDistance());
  }
 
  @Test
  public void testCercaContextConfig() {
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.