Examples of Ping


Examples of com.art.anette.common.network.Ping

            boolean problem = false;
            try {
                if (NetworkControl.getInstance().isConnected()) {
                    final Response obj = NetworkControl.getInstance().receive();
                    if (obj instanceof Ping) {
                        Ping ping = (Ping) obj;
                        cdbc.getSyncUpThread().addObject(new Pong(ping.getValue()));
                        cdbc.getSyncUpThread().wakeup();
                    } else if (obj instanceof DataResponse) {
                        DataResponse dataResponse = (DataResponse) obj;
                        cdbc.adoptList(dataResponse.getObjects());
                    }
View Full Code Here

Examples of com.esotericsoftware.kryonet.FrameworkMessage.Ping

        client.updateReturnTripTime();
      }

      public void received (Connection connection, Object object) {
        if (object instanceof Ping) {
          Ping ping = (Ping)object;
          if (ping.isReply) System.out.println("Ping: " + connection.getReturnTripTime());
          client.updateReturnTripTime();
        }
      }
    });
View Full Code Here

Examples of com.esotericsoftware.kryonet.FrameworkMessage.Ping

   * Requests the connection to communicate with the remote computer to determine a new value for the
   * {@link #getReturnTripTime() return trip time}. When the connection receives a {@link FrameworkMessage.Ping} object with
   * {@link Ping#isReply isReply} set to true, the new return trip time is available.
   */
  public void updateReturnTripTime () {
    Ping ping = new Ping();
    ping.id = lastPingID++;
    lastPingSendTime = System.currentTimeMillis();
    sendTCP(ping);
  }
View Full Code Here

Examples of com.esotericsoftware.kryonet.FrameworkMessage.Ping

      listeners[i].disconnected(this);
  }

  void notifyReceived (Object object) {
    if (object instanceof Ping) {
      Ping ping = (Ping)object;
      if (ping.isReply) {
        if (ping.id == lastPingID - 1) {
          returnTripTime = (int)(System.currentTimeMillis() - lastPingSendTime);
          if (TRACE) trace("kryonet", this + " return trip time: " + returnTripTime);
        }
View Full Code Here

Examples of com.guokr.simbase.command.Ping

    public SimBase(SimConfig conf) throws IOException {
        SimEngine engine = new SimEngineImpl(conf.getSub("engine", "engine"));
        SimRegistry registry = new SimRegistry();

        registry.add("ping", new Ping());
        registry.add("info", new Info());
        registry.add("save", new Save());
        registry.add("load", new Load());
        registry.add("del", new Del());
View Full Code Here

Examples of com.redhat.gss.redhat_support_lib.infrastructure.Ping

    products = new Products(connectionManager);
    comments = new Comments(connectionManager);
    entitlements = new Entitlements(connectionManager);
    problems = new Problems(connectionManager);
    attachments = new Attachments(connectionManager);
    ping = new Ping(connectionManager);
    groups = new Groups(connectionManager);
    symptoms = new Symptoms(connectionManager);
  }
View Full Code Here

Examples of com.uwyn.drone.protocol.commands.Ping

            }
           
            mReadTimeOutCount++;
            try
            {
              send(new Ping(mConnectedHost));
            }
            catch (CoreException e2)
            {
              throw e;
            }
View Full Code Here

Examples of org.apache.axis2.oasis.ping.databinding.org.xmlsoap.Ping

   
    public void invokeWithStaticConfig(String clientRepo, String url) throws Exception {
        TicketType ticket = TicketType.Factory.newInstance();
        ticket.setId("My ticket Id");

        Ping ping = Ping.Factory.newInstance();
        ping.setText("Testing axis2-wss4j module");
        ping.setTicket(ticket);

        PingDocument pingDoc = PingDocument.Factory.newInstance();
        pingDoc.setPing(ping);

        PingPortStub stub = new PingPortStub(clientRepo,url);
View Full Code Here

Examples of org.apache.karaf.cellar.utils.ping.Ping

        System.out.println("PING " + node.getId());
        try {
            for (int i = 1; i <= iterations; i++) {
                Long start = System.currentTimeMillis();
                Ping ping = new Ping(clusterManager.generateId());
                ping.setDestination(new HashSet(Arrays.asList(node)));
                executionContext.execute(ping);
                Long stop = System.currentTimeMillis();
                Long delay = stop - start;
                if (delay >= TIMEOUT) {
                    System.err.println(String.format("TIMEOUT %s %s", i, node.getId()));
View Full Code Here

Examples of org.apache.karaf.cellar.utils.ping.Ping

        Node node = clusterManager.findNodeById(nodeId);
        if (node == null) {
            throw new IllegalArgumentException("Cluster group " + nodeId + " doesn't exist");
        }
        Long start = System.currentTimeMillis();
        Ping ping = new Ping(clusterManager.generateId());
        ping.setDestination(new HashSet(Arrays.asList(node)));
        executionContext.execute(ping);
        Long stop = System.currentTimeMillis();
        return (stop - start);
    }
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.