Class ExternalProcess


  • @ThreadSafe
    public final class ExternalProcess
    extends java.lang.Object
    Class for launching another class in a new processes.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExternalProcess​(java.util.Map<alluxio.conf.PropertyKey,​java.lang.String> conf, java.lang.Class<?> clazz, java.io.File outfile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start()
      Starts the process.
      void stop()
      Stops the process.
      • Methods inherited from class java.lang.Object

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

      • ExternalProcess

        public ExternalProcess​(java.util.Map<alluxio.conf.PropertyKey,​java.lang.String> conf,
                               java.lang.Class<?> clazz,
                               java.io.File outfile)
        Parameters:
        conf - alluxio configuration properties for the process
        clazz - the class to run
        outfile - the file to write process output to
    • Method Detail

      • start

        public void start()
                   throws java.io.IOException
        Starts the process.
        Throws:
        java.io.IOException
      • stop

        public void stop()
        Stops the process.