|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.testbed.Offspring frysk.testbed.SynchronizedOffspring frysk.testbed.ExecOffspring
public class ExecOffspring
Create a process running funit-exec as described by ExecCommand. The funit-exec program is created in two steps; first the ExecCommand is created. and second the ExecOffspring running that command. This two step process makes it easier to construct a chain of funit-execs. For instance, to create an funit-exec proces will invoke funit-exec and then invoke /bin/echo, use: new ExecOffspring(new ExecCommnand(new ExecCommand(new String[] { "/bin/echo", "hi"}))). The program funit-exec, when sent a signal, will exec its arguments.
Field Summary | |
---|---|
private static Log |
fine
|
Fields inherited from class frysk.testbed.SynchronizedOffspring |
---|
START_ACK |
Constructor Summary | |
---|---|
ExecOffspring()
Invoke funit-exec in a way that allows it to repeatedly re-exec itself. |
|
ExecOffspring(ExecCommand command)
Invoke funit-exec as specified by COMMAND. |
Method Summary | |
---|---|
void |
assertRunExec(String why)
Request an exec and then wait for the new program to signal back that it is running. |
void |
assertRunThreadExec(String why)
Request that a random non-main thread do an exec and then wait for the new program to signal back that it is running. |
void |
requestExec()
Request that the process perform an exec. |
void |
requestThreadExec()
Request that a random thread does an exec. |
Methods inherited from class frysk.testbed.SynchronizedOffspring |
---|
getPid |
Methods inherited from class frysk.testbed.Offspring |
---|
assertIs, assertRunToFindProc, assertRunUntil, assertSendStop, findTaskUsingRefresh, kill, signal |
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
Constructor Detail |
---|
public ExecOffspring(ExecCommand command)
public ExecOffspring()
Method Detail |
---|
public void requestExec()
public void requestThreadExec()
public void assertRunExec(String why)
public void assertRunThreadExec(String why)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |