/hudson-core/src/main/java/hudson/util/ProcessTreeRemoting.java
http://github.com/hudson/hudson · Java · 32 lines · 21 code · 4 blank · 7 comment · 0 complexity · add4cc43da0144b2fe1ac216eb7edab4 MD5 · raw file
- package hudson.util;
- import hudson.EnvVars;
- import hudson.util.ProcessTree.ProcessCallable;
- import java.io.IOException;
- import java.lang.reflect.Proxy;
- import java.util.List;
- import java.util.Map;
- /**
- * Remoting interfaces of {@link ProcessTree}.
- *
- * These classes need to be public due to the way {@link Proxy} works.
- *
- * @author Kohsuke Kawaguchi
- */
- public class ProcessTreeRemoting {
- public interface IProcessTree {
- void killAll(Map<String, String> modelEnvVars) throws InterruptedException;
- }
- public interface IOSProcess {
- int getPid();
- IOSProcess getParent();
- void kill() throws InterruptedException;
- void killRecursively() throws InterruptedException;
- List<String> getArguments();
- EnvVars getEnvironmentVariables();
- <T> T act(ProcessCallable<T> callable) throws IOException, InterruptedException;
- }
- }