public class UdpPerf
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
protected class |
UdpPerf.Receiver |
protected class |
UdpPerf.Sender |
限定符和类型 | 字段和说明 |
---|---|
protected long |
last_interval |
protected int |
log_interval |
protected boolean |
looping |
protected java.net.MulticastSocket |
mcast_sock |
protected int |
msg_size |
protected int |
num_msgs |
protected int |
num_threads |
protected int |
receive_log_interval |
protected UdpPerf.Receiver |
receiver |
protected java.net.SocketAddress |
sock_addr |
protected java.util.concurrent.atomic.AtomicLong |
total_received_msgs
Maintains stats per sender, will be sent to perf originator when all messages have been received
|
构造器和说明 |
---|
UdpPerf() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
handleData() |
protected void |
loop() |
static void |
main(java.lang.String[] args) |
protected void |
send(byte[] payload) |
protected void |
sendMessages() |
void |
start() |
void |
stop() |
protected java.net.MulticastSocket mcast_sock
protected java.net.SocketAddress sock_addr
protected UdpPerf.Receiver receiver
protected int num_msgs
protected int msg_size
protected int num_threads
protected int log_interval
protected int receive_log_interval
protected final java.util.concurrent.atomic.AtomicLong total_received_msgs
protected boolean looping
protected long last_interval
public void start() throws java.lang.Exception
java.lang.Exception
protected void loop()
protected void send(byte[] payload) throws java.lang.Exception
java.lang.Exception
public void stop()
protected void handleData()
protected void sendMessages()
public static void main(java.lang.String[] args)