public class NioServerPerfTest extends Object
NioClientTest
as client test driverModifier and Type | Field and Description |
---|---|
protected ByteBuffer |
buffer |
static long |
BYTES_TO_SEND |
protected ServerSocketChannel |
ch |
protected boolean |
running |
protected Selector |
selector |
static int |
SIZE |
protected AtomicLong |
start |
protected AtomicLong |
total_bytes_received |
protected AtomicLong |
total_msgs |
Constructor and Description |
---|
NioServerPerfTest() |
Modifier and Type | Method and Description |
---|---|
protected static ByteBuffer |
create(int size,
boolean direct) |
protected boolean |
handle(SocketChannel ch,
ByteBuffer buf) |
static void |
main(String[] args) |
protected void |
start(boolean direct) |
protected ServerSocketChannel ch
protected Selector selector
protected volatile boolean running
protected ByteBuffer buffer
protected final AtomicLong total_bytes_received
protected final AtomicLong total_msgs
protected final AtomicLong start
public static final long BYTES_TO_SEND
public static final int SIZE
protected static ByteBuffer create(int size, boolean direct)
protected boolean handle(SocketChannel ch, ByteBuffer buf)
Copyright © 2022 JBoss, a division of Red Hat. All rights reserved.