Examples of Ping


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

      switch (packetType)
      {
         case PING:
         {
            packet = new Ping();
            break;
         }
         case DISCONNECT:
         {
            packet = new DisconnectMessage();
View Full Code Here

Examples of org.jgroups.protocols.PING

        v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        bottom_prot=new PING();
        VIEW_SYNC view_sync=new VIEW_SYNC();
        Protocol[] stack=new Protocol[]{view_sync, barrier_prot, bottom_prot};
        s.setProtocolStack(stack);
        s.start();
    }
View Full Code Here

Examples of org.jgroups.protocols.PING

    JChannel channel = new JChannel(false);
    ProtocolStack stack = new ProtocolStack();
    channel.setProtocolStack(stack);
   
    stack.addProtocols(new UDP().setValue("bind_addr", InetAddress.getByName(BIND_ADDR)))
        .addProtocol(new PING())
        .addProtocol(new MERGE2())
        .addProtocol(new FD_SOCK())
        .addProtocol(new FD_ALL().setValue("timeout", 12000).setValue("interval", 3000))
        .addProtocol(new VERIFY_SUSPECT()).addProtocol(new BARRIER())
        .addProtocol(new NAKACK()).addProtocol(new UNICAST2())
View Full Code Here

Examples of org.jgroups.protocols.PING

    JChannel channel = new JChannel(false);
    ProtocolStack stack = new ProtocolStack();
    channel.setProtocolStack(stack);
   
    stack.addProtocols(new UDP().setValue("bind_addr", InetAddress.getByName("192.168.1.108")))
        .addProtocol(new PING())
        .addProtocol(new MERGE2())
        .addProtocol(new FD_SOCK())
        .addProtocol(new FD_ALL().setValue("timeout", 12000).setValue("interval", 3000))
        .addProtocol(new VERIFY_SUSPECT()).addProtocol(new BARRIER())
        .addProtocol(new NAKACK()).addProtocol(new UNICAST2())
View Full Code Here

Examples of org.jgroups.protocols.PING

            tunnel.setReconnectInterval(2000);
        }
    }

    private static void setRefreshInterval(JChannel channel) {
        PING ping=(PING)channel.getProtocolStack().findProtocol(PING.class);
        if(ping != null) {
            ping.setGossipRefresh(1000);
        }
    }
View Full Code Here

Examples of org.jgroups.protocols.PING

        v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        bottom_prot=new PING();
        Protocol[] stack=new Protocol[]{new VIEW_SYNC(), barrier_prot, bottom_prot};
        s.setProtocolStack(stack);
        s.start();
    }
View Full Code Here

Examples of org.jgroups.protocols.PING

        TUNNEL tunnel=(TUNNEL)stack.getTransport();
        if(tunnel != null) {
            tunnel.setReconnectInterval(2000);
        }

        PING ping=(PING)stack.findProtocol(PING.class);
        if(ping != null) {
            ping.setGossipRefresh(1000);
        }
    }
View Full Code Here

Examples of org.jivesoftware.smack.ping.packet.Ping

       
        if (pingInterval > 0) {
            periodicPingTask = periodicPingExecutorService.schedule(new Runnable() {
                @Override
                public void run() {
                    Ping ping = new Ping();
                    PacketFilter responseFilter = new PacketIDFilter(ping.getPacketID());
                    final PacketCollector response = connection.createPacketCollector(responseFilter);
                    connection.sendPacket(ping);
       
                    if (!pingFailedListeners.isEmpty()) {
                        // Schedule a collector for the ping reply, notify listeners if none is received.
View Full Code Here

Examples of org.jivesoftware.smackx.ping.packet.Ping

          if (!tryLock(5, TimeUnit.SECONDS)) {
              return;
          }
         
          try {
            connection.sendPacket(new Ping());
          } catch (NotConnectedException e) {
            // connection died, so lets scheduled task die, too
            throw new RuntimeException(e);
          } finally {
            unlock();
View Full Code Here

Examples of org.red5.server.net.rtmp.event.Ping

    //whether or not the packet will be dropped
    boolean drop = false;
    //whether or not the packet is video data
    boolean isVideo = false;
    if (message instanceof Ping) {
      final Ping pingMessage = (Ping) message;
      if (pingMessage.getEventType() == Ping.STREAM_PLAYBUFFER_CLEAR) {
        // client buffer cleared, make sure to reset timestamps for this stream
        final int channel = (4 + ((pingMessage.getValue2() - 1) * 5));
        ((RTMPConnection) Red5.getConnectionLocal()).getState().clearLastTimestampMapping(channel, channel + 1, channel + 2);
      }
      // never drop pings
      return false;
    }
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.