Package org.jgroups.tests
Class MessageSendTest
java.lang.Object
org.jgroups.tests.MessageSendTest
- All Implemented Interfaces:
Receiver
Tests sending different types of
Message implementations over a given protocol stack- Since:
- 5.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static classstatic classprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static intfindFragSize(JChannel ch) static voidvoidCalled when a message is received.protected voidprotected voidvoidviewAccepted(View view) Called when a change in membership has occurred.
-
Field Details
-
ch
-
acks
-
view
-
ID
protected static short ID
-
-
Constructor Details
-
MessageSendTest
public MessageSendTest()
-
-
Method Details
-
start
- Throws:
Exception
-
send
- Throws:
Exception
-
findFragSize
-
receive
Description copied from interface:ReceiverCalled when a message is received. -
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
-
main
- Throws:
Exception
-