Class CommandProcess

java.lang.Object
com.auto.framework.operation.commmand.runner.CommandProcess
All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>

public class CommandProcess
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Integer>
User: Priytam Jee Pandey Date: 01/06/20 Time: 7:41 pm email: priytam.pandey@cleartrip.com
  • Constructor Summary

    Constructors 
    Constructor Description
    CommandProcess​(java.lang.String[] cmd, java.lang.String[] environment, java.io.File wd, java.io.OutputStream out, java.io.OutputStream err)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Integer call()  
    static void pipe​(boolean fromProcess, java.io.InputStream from, java.io.OutputStream to)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommandProcess

      public CommandProcess​(java.lang.String[] cmd, java.lang.String[] environment, java.io.File wd, java.io.OutputStream out, java.io.OutputStream err)
  • Method Details

    • pipe

      public static void pipe​(boolean fromProcess, java.io.InputStream from, java.io.OutputStream to) throws java.io.IOException
      Throws:
      java.io.IOException
    • call

      public java.lang.Integer call() throws java.lang.Exception
      Specified by:
      call in interface java.util.concurrent.Callable<java.lang.Integer>
      Throws:
      java.lang.Exception