public class ParallelScriptBuilder extends AbstractScriptBuilder
A builder which's added steps will all be executed in parallel.
| Constructor and Description |
|---|
ParallelScriptBuilder()
Constructs a new
ParallelScriptBuilder. |
| Modifier and Type | Method and Description |
|---|---|
void |
addStep(ScriptStep step)
Adds a step which will be run in parallel with other steps on this builder.
|
void |
addStep(ScriptStep step,
int times)
Adds a step which will be run in parallel with other steps on this builder.
|
void |
addSteps(ParallelScriptBuilder parallelSteps)
Adds a set of parallel steps to this builder.
|
void |
addSteps(SequentialScriptBuilder sequentialSteps)
Adds a set of sequential steps which will be executed concurrently with other steps added to
this builder.
|
boolean |
hasSteps()
Checks if the builder has had at least one step added to it.
|
ParallelScriptBuilder |
makeCopy()
Make a copy of the script chain.
|
addProgressFuture, addSteps, build, getMaximumNeededThreadCount, setMaxScriptStepRatepublic ParallelScriptBuilder()
ParallelScriptBuilder. This can be used as either the start of a
execution chain, or can later be provided into
AbstractScriptBuilder.addSteps(ParallelScriptBuilder).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 ParallelScriptBuilder makeCopy()
AbstractScriptBuildermakeCopy in class AbstractScriptBuilderpublic void addStep(ScriptStep step)
addStep in class AbstractScriptBuilderstep - Test step to be addedpublic void addStep(ScriptStep step, int times)
step - Test step to be addedtimes - Quantity of times this step should be ran concurrentlypublic 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