Class ProcessExecutor


  • public class ProcessExecutor
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SUDO  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessExecutor()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Output execute​(java.lang.String commandPath, boolean asSudo, boolean redirectStreamToFile, long timeoutInMilliseconds, java.util.List<java.lang.String> args)  
      Output execute​(java.lang.String commandPath, boolean asSudo, long timeoutInMilliseconds, java.util.List<java.lang.String> args)  
      static ProcessExecutor getInstance()  
      • Methods inherited from class java.lang.Object

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

      • ProcessExecutor

        public ProcessExecutor()
    • Method Detail

      • execute

        public Output execute​(java.lang.String commandPath,
                              boolean asSudo,
                              long timeoutInMilliseconds,
                              java.util.List<java.lang.String> args)
        Parameters:
        commandPath -
        asSudo -
        timeoutInMilliseconds -
        args -
        Returns:
      • execute

        public Output execute​(java.lang.String commandPath,
                              boolean asSudo,
                              boolean redirectStreamToFile,
                              long timeoutInMilliseconds,
                              java.util.List<java.lang.String> args)
        Parameters:
        commandPath -
        asSudo -
        redirectStreamToFile -
        timeoutInMilliseconds -
        args -
        Returns: