| java.lang.Object org.jgroups.ExtendedReceiverAdapter org.jgroups.tests.LargeState
LargeState | public class LargeState extends ExtendedReceiverAdapter (Code) | | Tests transfer of large states. Start first instance with -provider flag and -size flag (default = 1MB).
The start second instance without these flags: it should acquire the state from the first instance. Possibly
tracing should be turned on for FRAG to see the fragmentation taking place, e.g.:
trace1=FRAG DEBUG STDOUT
Note that because fragmentation might generate a lot of small fragments at basically the same time (e.g. size1MB,
FRAG.frag-size=4096 generates a lot of fragments), the send buffer of the unicast socket in UDP might be overloaded,
causing it to drop some packets (default size is 8096 bytes). Therefore the send (and receive) buffers for the unicast
socket have been increased (see ucast_send_buf_size and ucast_recv_buf_size below).
If we didn't do this, we would have some retransmission, slowing the state transfer down.
author: Bela Ban Dec 13 2001 |
STREAMING_CHUNK_SIZE | final int STREAMING_CHUNK_SIZE(Code) | | |
provider | boolean provider(Code) | | |
startstop | long startstop(Code) | | |
total_received | int total_received(Code) | | |
createLargeState | byte[] createLargeState(int size)(Code) | | |
getState | public byte[] getState()(Code) | | |
setState | public void setState(byte[] state)(Code) | | |
setState | public void setState(String state_id, byte[] state)(Code) | | |
viewAccepted | public void viewAccepted(View new_view)(Code) | | |
|
|