Class StreamFeeder

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Runnable, org.apache.maven.surefire.extensions.Stoppable

    public class StreamFeeder
    extends org.apache.maven.surefire.extensions.CloseableDaemonThread
    Commands which are sent from plugin to the forked jvm.

    magic number : opcode [: opcode specific data]*
    or data encoded with Base64
    magic number : opcode [: Base64(opcode specific data)]*
    Since:
    3.0.0-M5
    Author:
    Tibor Digana (tibor17)
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamFeeder​(java.lang.String threadName, java.nio.channels.WritableByteChannel channel, org.apache.maven.surefire.extensions.CommandReader commandReader, org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void disable()  
      java.lang.Throwable getException()  
      void run()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StreamFeeder

        public StreamFeeder​(@Nonnull
                            java.lang.String threadName,
                            @Nonnull
                            java.nio.channels.WritableByteChannel channel,
                            @Nonnull
                            org.apache.maven.surefire.extensions.CommandReader commandReader,
                            @Nonnull
                            org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • disable

        public void disable()
      • getException

        public java.lang.Throwable getException()
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException