public class CookieBasedProcessTreeKiller extends Object
Modifier and Type | Method and Description |
---|---|
static CookieBasedProcessTreeKiller |
createAllChildrenKiller(String cookieNameSuffix)
A subsequent kill will terminate all children of the current process.
|
static CookieBasedProcessTreeKiller |
createProcessChildrenKiller(String cookieNameSuffix,
Map<String,String> processEnvironment)
A subsequent kill will terminate only children of the process whose environment is passed as a parameter.
|
String |
getCookieName() |
String |
getCookieValue() |
void |
kill() |
static void |
registerKillChildProcessesOnShutdown(String cookieNameSuffix)
Register a shutdown hook to kill children processes
|
public static CookieBasedProcessTreeKiller createAllChildrenKiller(String cookieNameSuffix)
public static CookieBasedProcessTreeKiller createProcessChildrenKiller(String cookieNameSuffix, Map<String,String> processEnvironment)
public void kill()
public static void registerKillChildProcessesOnShutdown(String cookieNameSuffix)
public String getCookieName()
public String getCookieValue()