Interface MasterProcessChannelProcessorFactory

All Superinterfaces:
AutoCloseable, Closeable

public interface MasterProcessChannelProcessorFactory extends Closeable
The SPI interface, a factory of an encoder and a decoder.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canUse(String channelConfig)
    Evaluates the channelConfig.
    void
    connect(String channelConfig)
    Open a new connection.
    org.apache.maven.surefire.api.booter.MasterProcessChannelDecoder
    createDecoder(org.apache.maven.surefire.api.fork.ForkNodeArguments forkingArguments)
    Decoder factory method.
    org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder
    createEncoder(org.apache.maven.surefire.api.fork.ForkNodeArguments forkingArguments)
    Encoder factory method.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • canUse

      boolean canUse(String channelConfig)
      Evaluates the channelConfig.
      Parameters:
      channelConfig - a connection string used by the fork JVM
      Returns:
      true if channelConfig is applicable and thus this SPI is eligible in the fork
    • connect

      void connect(String channelConfig) throws IOException
      Open a new connection.
      Parameters:
      channelConfig - e.g. "pipe://3" or "tcp://localhost:65035"
      Throws:
      IOException - if cannot connect
    • createDecoder

      org.apache.maven.surefire.api.booter.MasterProcessChannelDecoder createDecoder(@Nonnull org.apache.maven.surefire.api.fork.ForkNodeArguments forkingArguments) throws IOException
      Decoder factory method.
      Parameters:
      forkingArguments - forking arguments
      Returns:
      a new instance of decoder
      Throws:
      IOException
    • createEncoder

      org.apache.maven.surefire.api.booter.MasterProcessChannelEncoder createEncoder(@Nonnull org.apache.maven.surefire.api.fork.ForkNodeArguments forkingArguments) throws IOException
      Encoder factory method.
      Parameters:
      forkingArguments - forking arguments
      Returns:
      a new instance of encoder
      Throws:
      IOException