public static class ProcessTree.Remote extends ProcessTree implements Serializable
ProcessTree.Local, ProcessTree.OSProcess, ProcessTree.ProcessCallable<T>, ProcessTree.Remote, ProcessTree.UnixProcessenabled, processes| Constructor and Description |
|---|
Remote(ProcessTree proxy,
hudson.remoting.Channel ch) |
| Modifier and Type | Method and Description |
|---|---|
ProcessTree.OSProcess |
get(Process proc)
Try to convert
Process into this process object
or null if it fails (for example, maybe the snapshot is taken after
this process has already finished.) |
void |
killAll(Map<String,String> modelEnvVars)
Kills all the processes that have matching environment variables.
|
get, get, iterator, killAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Remote(ProcessTree proxy, hudson.remoting.Channel ch)
public ProcessTree.OSProcess get(Process proc)
ProcessTreeProcess into this process object
or null if it fails (for example, maybe the snapshot is taken after
this process has already finished.)get in class ProcessTreepublic void killAll(Map<String,String> modelEnvVars) throws InterruptedException
ProcessTreeIn this method, the method is given a "model environment variables", which is a list of environment variables and their values that are characteristic to the launched process. The implementation is expected to find processes in the system that inherit these environment variables, and kill them all. This is suitable for locating daemon processes that cannot be tracked by the regular ancestor/descendant relationship.
killAll in interface ProcessTreeRemoting.IProcessTreekillAll in class ProcessTreeInterruptedExceptionCopyright © 2019. All rights reserved.