Class CommandEncoder

java.lang.Object
org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
org.apache.maven.surefire.stream.CommandEncoder
All Implemented Interfaces:
AutoCloseable

public class CommandEncoder extends org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand> implements AutoCloseable
  • Constructor Details

  • Method Details

    • sendRunClass

      public void sendRunClass(String testClassName) throws IOException
      Throws:
      IOException
    • sendTestSetFinished

      public void sendTestSetFinished() throws IOException
      Throws:
      IOException
    • sendSkipSinceNextTest

      public void sendSkipSinceNextTest() throws IOException
      Throws:
      IOException
    • sendShutdown

      public void sendShutdown(String shutdownData) throws IOException
      Throws:
      IOException
    • sendNoop

      public void sendNoop() throws IOException
      Throws:
      IOException
    • sendByeAck

      public void sendByeAck() throws IOException
      Throws:
      IOException
    • getEncodedMagicNumber

      @Nonnull protected final byte[] getEncodedMagicNumber()
      Specified by:
      getEncodedMagicNumber in class org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
    • enumToByteArray

      @Nonnull protected final byte[] enumToByteArray(org.apache.maven.surefire.api.booter.MasterProcessCommand masterProcessCommand)
      Specified by:
      enumToByteArray in class org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
    • getEncodedCharsetName

      @Nonnull protected final byte[] getEncodedCharsetName()
      Specified by:
      getEncodedCharsetName in class org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
    • getCharset

      @Nonnull protected final Charset getCharset()
      Specified by:
      getCharset in class org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
    • newCharsetEncoder

      @Nonnull protected final CharsetEncoder newCharsetEncoder()
      Specified by:
      newCharsetEncoder in class org.apache.maven.surefire.api.stream.AbstractStreamEncoder<org.apache.maven.surefire.api.booter.MasterProcessCommand>
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException