Class CommandEncoder

  • All Implemented Interfaces:
    java.lang.AutoCloseable

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

      Constructors 
      Constructor Description
      CommandEncoder​(java.nio.channels.WritableByteChannel out)  
    • Constructor Detail

      • CommandEncoder

        public CommandEncoder​(java.nio.channels.WritableByteChannel out)
    • Method Detail

      • sendRunClass

        public void sendRunClass​(java.lang.String testClassName)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • sendTestSetFinished

        public void sendTestSetFinished()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • sendSkipSinceNextTest

        public void sendSkipSinceNextTest()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • sendShutdown

        public void sendShutdown​(java.lang.String shutdownData)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • sendNoop

        public void sendNoop()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • sendByeAck

        public void sendByeAck()
                        throws java.io.IOException
        Throws:
        java.io.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 java.nio.charset.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 java.nio.charset.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 java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException