public class ForkedStepRunner extends StepRunner
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ForkedStepRunner.ForkedError
An exception that for all purposes looks like another exception.
|
(package private) class |
ForkedStepRunner.ForkedFailure
An exception that looks almost exactly like
some other exception, without actually having access
to the instance of the original exception.
|
protected static class |
ForkedStepRunner.SlaveStepRunner
When actually within the separate VM, this is what gets run.
|
StepRunner.ExitHandler| Modifier and Type | Field and Description |
|---|---|
(package private) int |
LAUNCH_TIMEOUT |
(package private) int |
TERMINATE_TIMEOUT |
helper, hierarchy| Constructor and Description |
|---|
ForkedStepRunner() |
ForkedStepRunner(StepRunner parent) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Step |
decodeStep(Sequence root,
java.lang.String code) |
(package private) static java.lang.String |
encodeStep(Sequence root,
Step step)
Encode the given step into a set of indices.
|
(package private) java.lang.Process |
fork(java.lang.String vmargs)
Launch a new process, using this class as the main class.
|
(package private) java.lang.Process |
fork(java.lang.String vmargs,
java.lang.String[] cmdArgs) |
static void |
main(java.lang.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.
|
addStepListener, checkFile, clearErrors, createSecurityManager, fireStepEnd, fireStepError, fireStepEvent, fireStepFailure, fireStepProgress, fireStepStart, getCurrentContext, getError, getHierarchy, getStopOnError, getStopOnFailure, getTerminateOnError, installSecurityManager, launch, removeSecurityManager, removeStepListener, run, setError, setStopOnError, setStopOnFailure, setTerminateOnError, stop, stop, stopped, terminatepublic ForkedStepRunner()
public ForkedStepRunner(StepRunner parent)
java.lang.Process fork(java.lang.String vmargs,
java.lang.String[] cmdArgs)
throws java.io.IOException
java.io.IOExceptionjava.lang.Process fork(java.lang.String vmargs)
throws java.net.UnknownHostException,
java.io.IOException
java.net.UnknownHostExceptionjava.io.IOExceptionpublic void runStep(Step step) throws java.lang.Throwable
runStep in class StepRunnerjava.lang.Throwablestatic java.lang.String encodeStep(Sequence root, Step step)
public static void main(java.lang.String[] args)
Abbot is hosted on