|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.testbed.TearDownProcess
public class TearDownProcess
Framework for cleaning up temporary processes created as part of a test run.
Field Summary | |
---|---|
private static Log |
fine
|
private static Set |
pidsToKillDuringTearDown
A set of children that are to be killed off at the end of a test run during tearDown. |
Constructor Summary | |
---|---|
TearDownProcess()
|
Method Summary | |
---|---|
static void |
add(ProcessIdentifier pid)
Add the pid to the set of pidsToKillDuringTearDown that should be killed off during tearDown. |
private static ProcessIdentifier |
capturedSendDetachContKill(ProcessIdentifier pid)
Sequence a task through CONT, detach, and KILL. |
private static boolean |
capturedSendTkill(ProcessIdentifier pid)
Try to blow away the child, catch a failure. |
static boolean |
contains(ProcessIdentifier pid)
Return true if PID is a process identified for kill during tearDown. |
static void |
tearDown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Log fine
private static final Set pidsToKillDuringTearDown
Constructor Detail |
---|
public TearDownProcess()
Method Detail |
---|
public static void add(ProcessIdentifier pid)
public static boolean contains(ProcessIdentifier pid)
private static boolean capturedSendTkill(ProcessIdentifier pid)
private static ProcessIdentifier capturedSendDetachContKill(ProcessIdentifier pid)
public static void tearDown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |