Package org.jgroups.tests
Class PingPongDatagram
java.lang.Object
org.jgroups.tests.PingPongDatagram
Simple protocol to test round trip times. Requests are [PING], responses are [PONG]. Start multiple instances
and press 'return' to get the round trip times for all nodes in the cluster, This program doesn't use JGroups at all,
see
PingPong for a comparison.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) Log(package private) static final SocketAddress(package private) MulticastSocket(package private) static final byte(package private) static final byte[](package private) static final byte(package private) static final byte[](package private) long -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
mcast_sock
MulticastSocket mcast_sock -
MCAST_GROUP
-
log
Log log -
PING
static final byte PING- See Also:
-
PONG
static final byte PONG- See Also:
-
PING_REQ
static final byte[] PING_REQ -
PONG_RSP
static final byte[] PONG_RSP -
start
long start
-
-
Constructor Details
-
PingPongDatagram
public PingPongDatagram()
-
-
Method Details