public class SequentialScriptBuilder extends AbstractScriptBuilder
A builder which's added steps will all be executed in sequence.
| Constructor and Description |
|---|
SequentialScriptBuilder()
Constructs a new
SequentialScriptBuilder. |
| Modifier and Type | Method and Description |
|---|---|
void |
addStep(ScriptStep step)
Adds a step to be run sequentially.
|
void |
addSteps(ParallelScriptBuilder parallelSteps)
Adds a set of steps which will run in parallel.
|
void |
addSteps(SequentialScriptBuilder sequentialSteps)
Adds a set of steps to be run sequentially.
|
int |
getMaximumNeededThreadCount()
Call to check how many threads this script will need to execute at the current build point.
|
boolean |
hasSteps()
Checks if the builder has had at least one step added to it.
|
SequentialScriptBuilder |
makeCopy()
Make a copy of the script chain.
|
addProgressFuture, addSteps, build, setMaxScriptStepRatepublic SequentialScriptBuilder()
SequentialScriptBuilder. This can be used as either the start of a
execution chain, or can later be provided into
AbstractScriptBuilder.addSteps(SequentialScriptBuilder).public boolean hasSteps()
AbstractScriptBuilderfalse
then this builder is effectively a no-op.hasSteps in class AbstractScriptBuildertrue if at least one step is attached to this builderpublic SequentialScriptBuilder makeCopy()
AbstractScriptBuildermakeCopy in class AbstractScriptBuilderpublic int getMaximumNeededThreadCount()
AbstractScriptBuildergetMaximumNeededThreadCount in class AbstractScriptBuilderpublic void addStep(ScriptStep step)
addStep in class AbstractScriptBuilderstep - Test step to be addedpublic void addSteps(SequentialScriptBuilder sequentialSteps)
makeCopy().addSteps in class AbstractScriptBuildersequentialSteps - Sequential steps to add to this builderpublic void addSteps(ParallelScriptBuilder parallelSteps)
makeCopy().addSteps in class AbstractScriptBuilderparallelSteps - Parallel steps to add to this builder