Package org.jgroups.tests
Class UnicastTestTcpSlow
java.lang.Object
org.jgroups.tests.UnicastTestTcpSlow
Same as UnicastTest, but uses pure TCP instead of JGroups
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UnicastTestTcpSlow.Acceptorprotected AtomicLongprotected static final byteprotected booleanprotected InetSocketAddressprotected intprotected longprotected intprotected intprotected booleanprotected DataOutputStreamprotected final Lockprotected longprotected InetSocketAddressprotected Socketprotected static final intprotected static final intprotected ServerSocketprotected longprotected static final byteprotected longprotected static final booleanprotected AtomicLongprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid(package private) static voidhelp()voidstatic voidprotected static MessagereadMessage(byte[] buf, int offset, int length) void(package private) void(package private) void(package private) void(package private) void
-
Field Details
-
oob
protected boolean oob -
dont_bundle
protected boolean dont_bundle -
num_threads
protected int num_threads -
num_msgs
protected int num_msgs -
msg_size
protected int msg_size -
local
-
remote
-
sock
-
output
-
output_lock
-
srv_sock
-
acceptor
-
start
protected long start -
stop
protected long stop -
total_time
protected long total_time -
msgs_per_sec
protected long msgs_per_sec -
print
protected long print -
current_value
-
total_bytes
-
TCP_NODELAY
protected static final boolean TCP_NODELAY- See Also:
-
SOCK_SEND_BUF_SIZE
protected static final int SOCK_SEND_BUF_SIZE- See Also:
-
SOCK_RECV_BUF_SIZE
protected static final int SOCK_RECV_BUF_SIZE- See Also:
-
START
protected static final byte START- See Also:
-
DATA
protected static final byte DATA- See Also:
-
-
Constructor Details
-
UnicastTestTcpSlow
public UnicastTestTcpSlow()
-
-
Method Details
-
init
public void init(String local_addr, String remote_addr, int local_port, int remote_port) throws Exception - Throws:
Exception
-
eventLoop
- Throws:
Exception
-
sendMessages
- Throws:
Exception
-
setSenderThreads
- Throws:
Exception
-
setNumMessages
- Throws:
Exception
-
setMessageSize
- Throws:
Exception
-
main
-
help
static void help() -
receive
-
readMessage
- Throws:
Exception
-