File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\hudson\util\ProcessTreeRemoting.java.html

1 package hudson.util;
2
3 import hudson.EnvVars;
4 import hudson.util.ProcessTree.ProcessCallable;
5
6 import java.io.IOException;
7 import java.lang.reflect.Proxy;
8 import java.util.List;
9 import java.util.Map;
10
11 /**
12 * Remoting interfaces of {@link ProcessTree}.
13 *
14 * These classes need to be public due to the way {@link Proxy} works.
15 *
16 * @author Kohsuke Kawaguchi
17 */
18 public class ProcessTreeRemoting {
19 public interface IProcessTree {
20 void killAll(Map<String, String> modelEnvVars) throws InterruptedException;
21 }
22
23 public interface IOSProcess {
24 int getPid();
25 IOSProcess getParent();
26 void kill() throws InterruptedException;
27 void killRecursively() throws InterruptedException;
28 List<String> getArguments();
29 EnvVars getEnvironmentVariables();
30 <T> T act(ProcessCallable<T> callable) throws IOException, InterruptedException;
31 }
32 }
33