Package jadex.commons

Class ProcessStarter


  • public class ProcessStarter
    extends java.lang.Object
    The process starter allows for starting another process in a completely detached way, i.e. the std.out and std.err streams are automatically read. The process that starts the process starter can be savely terminated.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.Set<java.lang.String> reserved  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessStarter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void close​(java.io.OutputStream os)
      Close a stream.
      static void main​(java.lang.String[] args)
      Start a java or non-java process.
      protected static java.util.Map<java.lang.String,​java.lang.Object> processArguments​(java.lang.String[] args)
      Process the cmd line args.
      static void startExternalProcess​(java.lang.String dir, java.lang.String cmd, java.io.OutputStream out, java.io.OutputStream err)
      Start an external process.
      static void startJavaProcess​(java.lang.String[] parts, java.io.OutputStream out, java.io.OutputStream err)
      Start a java process.
      • Methods inherited from class java.lang.Object

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

      • reserved

        protected static final java.util.Set<java.lang.String> reserved
    • Constructor Detail

      • ProcessStarter

        public ProcessStarter()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Start a java or non-java process.
      • processArguments

        protected static java.util.Map<java.lang.String,​java.lang.Object> processArguments​(java.lang.String[] args)
        Process the cmd line args.
      • startExternalProcess

        public static void startExternalProcess​(java.lang.String dir,
                                                java.lang.String cmd,
                                                java.io.OutputStream out,
                                                java.io.OutputStream err)
        Start an external process.
      • startJavaProcess

        public static void startJavaProcess​(java.lang.String[] parts,
                                            java.io.OutputStream out,
                                            java.io.OutputStream err)
        Start a java process.
      • close

        protected static void close​(java.io.OutputStream os)
        Close a stream.