Package org.jgroups.tests
Class RoundTripRpc
java.lang.Object
org.jgroups.tests.RoundTripRpc
- All Implemented Interfaces:
Receiver
Class that measure RTT for multicast messages between 2 cluster members. See
RpcDispatcherSpeedTest for
RPCs-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JChannelprotected booleanprotected RpcDispatcherprotected booleanprotected RoundTripRpc.Invoker[]protected intprotected intprotected booleanprotected static final Method -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidhelp()protected voidprotected voidloop()static voidprotected static Stringprint(AverageMinMax avg) static shortrequest(short id) protected voidvoidviewAccepted(View view) Called when a change in membership has occurred.
-
Field Details
-
channel
-
disp
-
num_msgs
protected int num_msgs -
num_senders
protected int num_senders -
oob
protected boolean oob -
dont_bundle
protected boolean dont_bundle -
details
protected boolean details -
invokers
-
requestMethod
-
-
Constructor Details
-
RoundTripRpc
public RoundTripRpc()
-
-
Method Details
-
start
- Throws:
Exception
-
request
public static short request(short id) -
viewAccepted
Description copied from interface:ReceiverCalled when a change in membership has occurred. No long running actions, sending of messages or anything that could block should be done in this callback. If some long running action needs to be performed, it should be done in a separate thread.Note that on reception of the first view (a new member just joined), the channel will not yet be in the connected state. This only happens when
JChannel.connect(String)returns.- Specified by:
viewAcceptedin interfaceReceiver
-
loop
protected void loop() -
invokeRequests
- Throws:
Exception
-
print
-
main
- Throws:
Exception
-
help
private static void help()
-