public class NetIoChannelTest
extends java.lang.Object
Monitoring must be enabled via the agent JVM parameter!
| Modifier and Type | Class and Description |
|---|---|
private static class |
NetIoChannelTest.ServerMainThread
Implements a simple thread for accepting network connections.
|
private static class |
NetIoChannelTest.ServerWorkThread
Implements a thread which is started on an accepted connection.
|
| Modifier and Type | Field and Description |
|---|---|
private static int |
NET_OVERHEAD_STRING
The overhead of a string over the data in/out streams (size).
|
private static int |
NET_SIZE_INT
The size of an int over the data in/out streams.
|
private static int |
PORT
Defines the port used for communication operations.
|
| Modifier | Constructor and Description |
|---|---|
private |
NetIoChannelTest()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Starts the server part, executes the client part and prints out the
results.
|
private static final int PORT
private static final int NET_SIZE_INT
private static final int NET_OVERHEAD_STRING
private NetIoChannelTest()
public static void main(java.lang.String[] args)
throws java.io.IOException
args - command line arguments (ignored)java.io.IOException - any kind of network I/O problem in the client