|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabbot.script.StepRunner
abbot.script.ForkedStepRunner
A StepRunner that runs the step in a separate VM. Behavior should be indistinguishable from the base StepRunner.
Nested Class Summary | |
(package private) class |
ForkedStepRunner.ForkedError
An exception that for all purposes looks like another exception. |
(package private) class |
ForkedStepRunner.ForkedFailure
An exception that for all purposes looks like another exception. |
protected static class |
ForkedStepRunner.SlaveStepRunner
When actually within the separate VM, this is what gets run. |
Field Summary | |
(package private) int |
LAUNCH_TIMEOUT
|
(package private) int |
TERMINATE_TIMEOUT
|
Fields inherited from class abbot.script.StepRunner |
hierarchy |
Constructor Summary | |
ForkedStepRunner()
|
|
ForkedStepRunner(StepRunner parent)
|
Method Summary | |
(package private) static Step |
decodeStep(Sequence root,
String code)
|
(package private) static String |
encodeStep(Sequence root,
Step step)
Encode the given step into a set of indices. |
(package private) Process |
fork(String vmargs)
Launch a new process, using this class as the main class. |
(package private) Process |
fork(String vmargs,
String[] cmdArgs)
|
static void |
main(String[] args)
Provide means to control execution and feedback of a script in a separate process. |
void |
runStep(Step step)
Running the step in a separate VM should be indistinguishable from running a regular script. |
Methods inherited from class abbot.script.StepRunner |
addStepListener, checkFile, clearErrors, fireStepEnd, fireStepError, fireStepEvent, fireStepFailure, fireStepProgress, fireStepStart, getError, getHierarchy, getStopOnError, getStopOnFailure, getTerminateOnError, launch, removeStepListener, restore, run, save, setError, setStopOnError, setStopOnFailure, setTerminateOnError, setUp, stop, stop, stopped, terminate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
int LAUNCH_TIMEOUT
int TERMINATE_TIMEOUT
Constructor Detail |
public ForkedStepRunner()
public ForkedStepRunner(StepRunner parent)
Method Detail |
Process fork(String vmargs, String[] cmdArgs) throws IOException
IOException
Process fork(String vmargs) throws UnknownHostException, IOException
UnknownHostException
IOException
public void runStep(Step step) throws Throwable
runStep
in class StepRunner
Throwable
static Step decodeStep(Sequence root, String code)
static String encodeStep(Sequence root, Step step)
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |