Package hudson.util
Class ProcessTree.Remote
- java.lang.Object
-
- hudson.util.ProcessTree
-
- hudson.util.ProcessTree.Remote
-
- All Implemented Interfaces:
ProcessTreeRemoting.IProcessTree,Serializable,Iterable<ProcessTree.OSProcess>,org.jenkinsci.remoting.SerializableOnlyOverRemoting
- Enclosing class:
- ProcessTree
public static class ProcessTree.Remote extends ProcessTree
Represents a process tree over a channel.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.util.ProcessTree
ProcessTree.Local, ProcessTree.OSProcess, ProcessTree.ProcessCallable<T>, ProcessTree.Remote, ProcessTree.UnixProcess
-
-
Field Summary
-
Fields inherited from class hudson.util.ProcessTree
processes
-
-
Constructor Summary
Constructors Constructor Description Remote(ProcessTree proxy, hudson.remoting.Channel ch)Deprecated.Remote(ProcessTree proxy, hudson.remoting.Channel ch, boolean vetoersExist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessTree.OSProcessget(Process proc)Try to convertProcessinto this process object or null if it fails (for example, maybe the snapshot is taken after this process has already finished.)voidkillAll(Map<String,String> modelEnvVars)Kills all the processes that have matching environment variables.-
Methods inherited from class hudson.util.ProcessTree
get, get, iterator, killAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
Remote
@Deprecated public Remote(ProcessTree proxy, hudson.remoting.Channel ch)
Deprecated.
-
Remote
public Remote(ProcessTree proxy, hudson.remoting.Channel ch, boolean vetoersExist)
-
-
Method Detail
-
get
@CheckForNull public ProcessTree.OSProcess get(@NonNull Process proc)
Description copied from class:ProcessTreeTry to convertProcessinto this process object or null if it fails (for example, maybe the snapshot is taken after this process has already finished.)- Specified by:
getin classProcessTree
-
killAll
public void killAll(@NonNull Map<String,String> modelEnvVars) throws InterruptedExceptionDescription copied from class:ProcessTreeKills all the processes that have matching environment variables.In 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.
- Specified by:
killAllin interfaceProcessTreeRemoting.IProcessTree- Specified by:
killAllin classProcessTree- Throws:
InterruptedException
-
-