Class OSProcessHandler

    • Constructor Detail

      • OSProcessHandler

        public OSProcessHandler​(Process process,
                                String commandLine)
    • Method Detail

      • executeOnPooledThread

        protected Future<?> executeOnPooledThread​(Runnable task)
        Override this method in order to execute the task with a custom pool
        Parameters:
        task - a task to run
      • shutdownExecutorService

        protected static void shutdownExecutorService()
      • getProcess

        public Process getProcess()
      • onOSProcessTerminated

        protected void onOSProcessTerminated​(int exitCode)
      • createProcessOutReader

        protected Reader createProcessOutReader()
      • createProcessErrReader

        protected Reader createProcessErrReader()
      • getCommandLine

        public String getCommandLine()
      • getCharset

        public Charset getCharset()