Class ProcessTree.UnixProcess

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected UnixProcess​(int pid)  
    • Method Summary

      Modifier and Type Method Description
      abstract java.util.List<java.lang.String> getArguments()
      Obtains the argument list of this process.
      protected java.io.File getFile​(java.lang.String relativePath)  
      void kill()
      Tries to kill this process.
      void killRecursively()
      Kills this process and all the descendants.
      • Methods inherited from class java.lang.Object

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

      • UnixProcess

        protected UnixProcess​(int pid)
    • Method Detail

      • getFile

        protected final java.io.File getFile​(java.lang.String relativePath)
      • killRecursively

        public void killRecursively()
                             throws java.lang.InterruptedException
        Description copied from class: ProcessTree.OSProcess
        Kills this process and all the descendants.

        Note that the notion of "descendants" is somewhat vague, in the presence of such things like daemons. On platforms where the recursive operation is not supported, this just kills the current process.

        Specified by:
        killRecursively in interface ProcessTreeRemoting.IOSProcess
        Specified by:
        killRecursively in class ProcessTree.OSProcess
        Throws:
        java.lang.InterruptedException