Package org.jgroups.tests
Class ShmTest
- java.lang.Object
-
- org.jgroups.tests.ShmTest
-
public class ShmTest extends java.lang.ObjectTests the speed of message sending/receiving via shared memory. Start the server first, then the client. The server and client use a simple (and stupid) alternating bit protocol to rendezvous; this could be enhanced into a ring buffer to increase performance.- Since:
- 3.4
-
-
Field Summary
Fields Modifier and Type Field Description protected static intMAX_BUSY_SPINprotected static intNUMprotected static intPRINTprotected static intSIZE
-
Constructor Summary
Constructors Constructor Description ShmTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)protected static voidstart(boolean server)
-
-
-
Field Detail
-
NUM
protected static final int NUM
- See Also:
- Constant Field Values
-
SIZE
protected static final int SIZE
- See Also:
- Constant Field Values
-
PRINT
protected static final int PRINT
- See Also:
- Constant Field Values
-
MAX_BUSY_SPIN
protected static final int MAX_BUSY_SPIN
- See Also:
- Constant Field Values
-
-