com.pmease.quickbuild.execution.killtree
Class ProcessTree.UnixProcess

java.lang.Object
  extended by com.pmease.quickbuild.execution.killtree.ProcessTree.OSProcess
      extended by com.pmease.quickbuild.execution.killtree.ProcessTree.UnixProcess
All Implemented Interfaces:
ProcessTreeRemoting.IOSProcess
Enclosing class:
ProcessTree

public abstract class ProcessTree.UnixProcess
extends ProcessTree.OSProcess

A process.


Constructor Summary
protected ProcessTree.UnixProcess(int pid)
           
 
Method Summary
protected  java.io.File getFile(java.lang.String relativePath)
           
 void kill(boolean forcibly)
          Tries to kill this process.
 void killRecursively(boolean forcibly)
          Kills this process and all the descendants.
 
Methods inherited from class com.pmease.quickbuild.execution.killtree.ProcessTree.OSProcess
getArguments, getChildren, getEnvironmentVariables, getParent, getPid, hasMatchingEnvVars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessTree.UnixProcess

protected ProcessTree.UnixProcess(int pid)
Method Detail

getFile

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

kill

public void kill(boolean forcibly)
          throws java.lang.InterruptedException
Tries to kill this process.

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

killRecursively

public void killRecursively(boolean forcibly)
                     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


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.