Class ProcessTree.UnixProcess
- java.lang.Object
-
- org.ow2.proactive.process_tree_killer.ProcessTree.OSProcess
-
- org.ow2.proactive.process_tree_killer.ProcessTree.UnixProcess
-
- All Implemented Interfaces:
java.io.Serializable,ProcessTreeRemoting.IOSProcess
- Enclosing class:
- ProcessTree
public abstract class ProcessTree.UnixProcess extends ProcessTree.OSProcess
A process.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUnixProcess(int pid)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.List<java.lang.String>getArguments()Obtains the argument list of this process.protected java.io.FilegetFile(java.lang.String relativePath)voidkill()Tries to kill this process.voidkillRecursively()Kills this process and all the descendants.-
Methods inherited from class org.ow2.proactive.process_tree_killer.ProcessTree.OSProcess
getChildren, getEnvironmentVariables, getParent, getPid, hasMatchingEnvVars
-
-
-
-
Method Detail
-
getFile
protected final java.io.File getFile(java.lang.String relativePath)
-
kill
public void kill() throws java.lang.InterruptedExceptionTries to kill this process.- Specified by:
killin interfaceProcessTreeRemoting.IOSProcess- Specified by:
killin classProcessTree.OSProcess- Throws:
java.lang.InterruptedException
-
killRecursively
public void killRecursively() throws java.lang.InterruptedExceptionDescription copied from class:ProcessTree.OSProcessKills 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:
killRecursivelyin interfaceProcessTreeRemoting.IOSProcess- Specified by:
killRecursivelyin classProcessTree.OSProcess- Throws:
java.lang.InterruptedException
-
getArguments
public abstract java.util.List<java.lang.String> getArguments()
Obtains the argument list of this process.- Specified by:
getArgumentsin interfaceProcessTreeRemoting.IOSProcess- Specified by:
getArgumentsin classProcessTree.OSProcess- Returns:
- empty list if failed (for example because the process is already dead, or the permission was denied.)
-
-