Class SurefireForkChannel

java.lang.Object
org.apache.maven.surefire.extensions.ForkChannel
org.apache.maven.plugin.surefire.extensions.SurefireForkChannel
All Implemented Interfaces:
Closeable, AutoCloseable

final class SurefireForkChannel extends ForkChannel
The TCP/IP server accepting only one client connection. The forked JVM connects to the server using the connection string. The main purpose of this class is to conect with tthe client, bind the command reader to the internal socket's InputStream, and bind the event handler writing the event objects to the event handler.
The objects WritableByteChannel and ReadableByteChannel are forked process streams (standard input and output). Both are ignored in this implementation but they are used in LegacyForkChannel.
The channel is closed after the forked JVM has finished normally or the shutdown hook is executed in the plugin.