Class FS.GobblerThread

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    FS

    private static class FS.GobblerThread
    extends java.lang.Thread
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      private java.lang.String desc  
      private java.lang.String dir  
      (package private) java.util.concurrent.atomic.AtomicReference<java.lang.String> errorMessage  
      (package private) java.util.concurrent.atomic.AtomicReference<java.lang.Throwable> exception  
      (package private) java.util.concurrent.atomic.AtomicBoolean fail  
      private java.lang.Process p  
      private static int PROCESS_EXIT_TIMEOUT  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      GobblerThread​(java.lang.Process p, java.lang.String[] command, java.io.File dir)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      private void setError​(java.io.IOException e, java.lang.String message, int exitCode)  
      private boolean waitForProcessCompletion​(java.io.IOException originalError)  
      • Methods inherited from class java.lang.Thread

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

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

      • p

        private final java.lang.Process p
      • desc

        private final java.lang.String desc
      • dir

        private final java.lang.String dir
      • fail

        final java.util.concurrent.atomic.AtomicBoolean fail
      • errorMessage

        final java.util.concurrent.atomic.AtomicReference<java.lang.String> errorMessage
      • exception

        final java.util.concurrent.atomic.AtomicReference<java.lang.Throwable> exception
    • Constructor Detail

      • GobblerThread

        GobblerThread​(java.lang.Process p,
                      java.lang.String[] command,
                      java.io.File dir)
    • Method Detail

      • run

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

        private boolean waitForProcessCompletion​(java.io.IOException originalError)
      • setError

        private void setError​(java.io.IOException e,
                              java.lang.String message,
                              int exitCode)