| |
|
| java.lang.Object java.lang.Thread org.jgroups.stack.UpHandler org.jgroups.protocols.AUTOCONF
AUTOCONF | public class AUTOCONF extends Protocol (Code) | | Senses the network configuration when it is initialized (in init()) and sends a CONFIG event up
and down the stack. The CONFIG event contains a hashmap, with strings as keys (e.g. "frag_size")
and Objects as values. Certain protocols can set some of their properties when receiving the CONFIG
event.
This protocol should be placed above the transport protocol (e.g. UDP). It is not needed for TCP.
Example: senses the network send and receive buffers, plus the max size of a message to be sent and
generates a CONFIG event containing "frag_size", "send_buf_size" and "receive_buf_size" keys.
author: Bela Ban |
frag_overhead | static int frag_overhead(Code) | | Number of bytes to subtract from computed fragmentation size, due to (a) headers and
(b) serialization overhead
|
num_iterations | static int num_iterations(Code) | | |
senseMaxFragSize | public int senseMaxFragSize()(Code) | | Tries to find out the max number of bytes in a DatagramPacket we can send by sending increasingly
larger packets, until there is an exception (e.g., java.io.IOException: message too long).
|
senseMaxFragSizeStatic | public static int senseMaxFragSizeStatic()(Code) | | |
senseMaxReceiveBufferSize | void senseMaxReceiveBufferSize(HashMap map)(Code) | | |
senseMaxSendBufferSize | void senseMaxSendBufferSize(HashMap map)(Code) | | |
senseNetworkConfiguration | void senseNetworkConfiguration()(Code) | | |
setProperties | public boolean setProperties(Properties props)(Code) | | Setup the Protocol instance acording to the configuration string
|
startDownHandler | public void startDownHandler()(Code) | | Leave empty: no down_thread will be created, but the down_thread of the neighbor above us will be used
|
startUpHandler | public void startUpHandler()(Code) | | Leave empty: no up_thread will be created, but the up_thread of the neighbor below us will be used
|
Fields inherited from org.jgroups.stack.UpHandler | final protected Log log(Code)(Java Doc)
|
|
|
|