Package org.jgroups.tests
Class UnicastTestRpc
java.lang.Object
org.jgroups.tests.UnicastTestRpc
- All Implemented Interfaces:
Receiver
Tests performance of unicast RPCs between a caller and a recipient
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final Collection<Address> private booleanprivate JChannelprivate Addressprivate RpcDispatcherprivate Stringprivate Addressprivate static final Method[]private intprivate intprotected final AtomicIntegerprivate intprivate booleanprivate intprivate static final Methodprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate Address(package private) static voidhelp()void(package private) voidstatic void(package private) voidpopulateAnycastList(View view) (package private) voidstatic voidreceiveData(byte[] data) (package private) void(package private) void(package private) void(package private) void(package private) voidstop()voidviewAccepted(View new_view) Called when a change in membership has occurred.
-
Field Details
-
channel
-
local_addr
-
disp
-
groupname
-
sync
private boolean sync -
oob
private boolean oob -
anycasting
private boolean anycasting -
num_threads
private int num_threads -
num_msgs
private int num_msgs -
msg_size
private int msg_size -
print
private int print -
anycast_count
private int anycast_count -
anycast_mbrs
-
destination
-
RECEIVE
-
METHODS
-
num_requests
-
-
Constructor Details
-
UnicastTestRpc
public UnicastTestRpc()
-
-
Method Details
-
init
- Throws:
Exception
-
stop
void stop() -
receiveData
public static void receiveData(byte[] data) -
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
-
eventLoop
- Throws:
Throwable
-
invokeRpcs
- Throws:
Throwable
-
setSenderThreads
- Throws:
Exception
-
setNumMessages
- Throws:
Exception
-
setMessageSize
- Throws:
Exception
-
setAnycastCount
- Throws:
Exception
-
populateAnycastList
-
printView
void printView() -
getReceiver
-
getSites
-
main
-
help
static void help()
-