Examples of Ping


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

            return null;
        }
        System.out.println("Pinging node " + node.getId());
        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;
            System.out.println(String.format("PING %s %s %sms", i, node.getId(), delay));
            Thread.sleep(interval);
View Full Code Here

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

    }

    public long pingNode(String nodeId) throws Exception {
        Node node = clusterManager.findNodeById(nodeId);
        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

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

    protected Object doExecute() throws Exception {
        Node node = clusterManager.findNodeById(nodeId);
        System.out.println("Pinging node :" + node.getId());
        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;
            System.out.println(String.format("PING %s %s %sms", i, node.getId(), delay));
            Thread.sleep(interval);
View Full Code Here

Examples of org.glite.authz.pap.ui.cli.papmanagement.Ping

        policyMgmtCommandList.add(new Move());
        policyMgmtCommandList.add(new AddObligation());
        policyMgmtCommandList.add(new RemoveObligation());

        // PAP Management
        papMgmtCommandList.add(new Ping());
        papMgmtCommandList.add(new AddPap());
        papMgmtCommandList.add(new RemovePap());
        papMgmtCommandList.add(new UpdatePap());
        papMgmtCommandList.add(new ListPaps());
        papMgmtCommandList.add(new EnablePap());
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.wireformat.Ping

       */
      public void send()
      {
         // Send a ping

         Ping ping = new Ping(connectionTTL);

         Channel channel0 = connection.getChannel(0, -1);

         channel0.send(ping);

View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.wireformat.Ping

      public void handlePacket(final Packet packet)
      {
         if (packet.getType() == PacketImpl.PING)
         {
            Ping ping = (Ping)packet;

            if (config.getConnectionTTLOverride() == -1)
            {
               // Allow clients to specify connection ttl
               entry.ttl = ping.getConnectionTTL();
            }

            // Just send a ping back
            channel0.send(packet);
         }
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.wireformat.Ping

       */
      public void send()
      {
         // Send a ping

         Ping ping = new Ping(connectionTTL);

         Channel channel0 = connection.getChannel(0, -1);

         channel0.send(ping);

View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.wireformat.Ping

            }
         }

         // Send a ping

         Ping ping = new Ping(connectionTTL);

         Channel channel0 = connection.getChannel(0, -1);

         channel0.send(ping);
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.wireformat.Ping

      {
         public void handlePacket(final Packet packet)
         {
            if (packet.getType() == PacketImpl.PING)
            {
               Ping ping = (Ping)packet;

               if (config.getConnectionTTLOverride() == -1)
               {
                  // Allow clients to specify connection ttl
                  entry.ttl = ping.getConnectionTTL();
               }

               // Just send a ping back
               channel0.send(packet);
            }
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.wireformat.Ping

       */
      public void send()
      {
         // Send a ping

         Ping ping = new Ping(connectionTTL);

         Channel channel0 = connection.getChannel(0, -1);

         channel0.send(ping);

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.