public abstract class ProcessTree.UnixProcess extends ProcessTree.OSProcess
Modifier | Constructor and Description |
---|---|
protected |
UnixProcess(int pid) |
Modifier and Type | Method and Description |
---|---|
abstract List<String> |
getArguments()
Obtains the argument list of this process.
|
protected File |
getFile(String relativePath) |
void |
kill()
Tries to kill this process.
|
void |
killRecursively()
Kills this process and all the descendants.
|
act, getChildren, getEnvironmentVariables, getParent, getPid, getVeto, hasMatchingEnvVars
public void kill() throws InterruptedException
kill
in interface ProcessTreeRemoting.IOSProcess
kill
in class ProcessTree.OSProcess
InterruptedException
public void killRecursively() throws InterruptedException
ProcessTree.OSProcess
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.
killRecursively
in interface ProcessTreeRemoting.IOSProcess
killRecursively
in class ProcessTree.OSProcess
InterruptedException
public abstract List<String> getArguments()
getArguments
in interface ProcessTreeRemoting.IOSProcess
getArguments
in class ProcessTree.OSProcess
Copyright © 2019. All rights reserved.