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,
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.
|
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, terminate
public ForkedStepRunner()
public ForkedStepRunner(StepRunner parent)
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 String encodeStep(Sequence root, Step step)
public static void main(String[] args)
Abbot is hosted on