public class NetIoTestAll extends AbstractNetIoTest
Monitoring must be enabled via the agent JVM parameter!
Note that this class reuses AbstractNetIoTest so that the inner
classes defined there are accounted by AnnotationId.ID_NET_IO and
by the entire program.
This class may cause fileIO as it reads internal Java security policies.
| Modifier and Type | Class and Description |
|---|---|
private static class |
NetIoTestAll.ServerMainThread
Implements a simple thread for accepting network connections.
|
private static class |
NetIoTestAll.ServerWorkThread
Implements a thread which is started on an accepted connection.
|
| Modifier | Constructor and Description |
|---|---|
protected |
NetIoTestAll()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
asserts()
The automated tests using assert statements.
|
protected AbstractNetIoTest.ServerMainThread |
createServerThread()
Factory method for the server main thread.
|
protected void |
executeClient()
Starts the server part, executes the client part and prints out the
results.
|
static void |
main(java.lang.String[] args)
Starts the test.
|
executeServer, getAllRead, getAllWrite, getClientRead, getClientWrite, getServerRead, getServerWrite, mainprotected NetIoTestAll()
protected AbstractNetIoTest.ServerMainThread createServerThread()
createServerThread in class AbstractNetIoTestprotected void executeClient()
throws java.io.IOException
executeClient in class AbstractNetIoTestjava.io.IOException - any kind of network I/O problem in the clientpublic 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 clientpublic static void asserts()
EndSystem
annotation.