Class LegacyMasterProcessChannelProcessorFactory
java.lang.Object
org.apache.maven.surefire.booter.spi.AbstractMasterProcessChannelProcessorFactory
org.apache.maven.surefire.booter.spi.LegacyMasterProcessChannelProcessorFactory
- All Implemented Interfaces:
Closeable,AutoCloseable,MasterProcessChannelProcessorFactory
public class LegacyMasterProcessChannelProcessorFactory
extends AbstractMasterProcessChannelProcessorFactory
Producer of encoder and decoder for process pipes.
- Since:
- 3.0.0-M5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates thechannelConfig.voidOpen a new connection.createDecoder(ForkNodeArguments forkingArguments) Decoder factory method.createEncoder(ForkNodeArguments forkingArguments) Encoder factory method.Methods inherited from class org.apache.maven.surefire.booter.spi.AbstractMasterProcessChannelProcessorFactory
close, schedulePeriodicFlusher
-
Field Details
-
FLUSH_PERIOD_MILLIS
private static final int FLUSH_PERIOD_MILLIS- See Also:
-
-
Constructor Details
-
LegacyMasterProcessChannelProcessorFactory
public LegacyMasterProcessChannelProcessorFactory()
-
-
Method Details
-
canUse
Description copied from interface:MasterProcessChannelProcessorFactoryEvaluates thechannelConfig.- Parameters:
channelConfig- a connection string used by the fork JVM- Returns:
trueifchannelConfigis applicable and thus this SPI is eligible in the fork
-
connect
Description copied from interface:MasterProcessChannelProcessorFactoryOpen a new connection.- Parameters:
channelConfig- e.g. "pipe://3" or "tcp://localhost:65035"- Throws:
IOException- if cannot connect
-
createDecoder
Description copied from interface:MasterProcessChannelProcessorFactoryDecoder factory method.- Parameters:
forkingArguments- forking arguments- Returns:
- a new instance of decoder
-
createEncoder
Description copied from interface:MasterProcessChannelProcessorFactoryEncoder factory method.- Parameters:
forkingArguments- forking arguments- Returns:
- a new instance of encoder
-