Package io.molr.mole.core.runnable.lang
Class RunnableLeafsMissionSupport
- java.lang.Object
-
- io.molr.mole.core.runnable.lang.RunnableLeafsMissionSupport
-
public abstract class RunnableLeafsMissionSupport extends java.lang.Object
An abstract class which is intended to describe a tree of runnables, which can be used as simple test case for parallel tree execution.
-
-
Constructor Summary
Constructors Constructor Description RunnableLeafsMissionSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected <T> io.molr.commons.domain.Placeholder<T>
addParameter(io.molr.commons.domain.MissionParameter<T> missionParameter)
RunnableLeafsMission
build()
protected OngoingExecutionStrategyConfiguration
executionStrategy()
Configure the execution strategies that can be used for that mission.protected io.molr.commons.domain.Block
latestBlock()
Retrieves the most recently created block.protected <T> io.molr.commons.domain.Placeholder<T>
mandatory(io.molr.commons.domain.Placeholder<T> placeholder)
protected <T> io.molr.commons.domain.Placeholder<T>
mandatory(io.molr.commons.domain.Placeholder<T> placeholder, java.util.Set<T> allowedValues)
protected <T> io.molr.commons.domain.Placeholder<T>
mandatory(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue)
protected <T> io.molr.commons.domain.Placeholder<T>
mandatory(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue, java.util.Set<T> allowedValues)
protected <T> io.molr.commons.domain.Placeholder<T>
optional(io.molr.commons.domain.Placeholder<T> placeholder)
protected <T> io.molr.commons.domain.Placeholder<T>
optional(io.molr.commons.domain.Placeholder<T> placeholder, java.util.Set<T> allowedValues)
protected <T> io.molr.commons.domain.Placeholder<T>
optional(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue)
protected <T> io.molr.commons.domain.Placeholder<T>
optional(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue, java.util.Set<T> allowedValues)
protected void
parallel(java.lang.String newName, java.util.function.Consumer<SimpleBranch> branchConsumer)
Deprecated.protected OngoingRootBranch
root(java.lang.String missionName)
protected void
sequential(java.lang.String newName, java.util.function.Consumer<SimpleBranch> branchConsumer)
Deprecated.
-
-
-
Method Detail
-
root
protected OngoingRootBranch root(java.lang.String missionName)
-
sequential
@Deprecated protected void sequential(java.lang.String newName, java.util.function.Consumer<SimpleBranch> branchConsumer)
Deprecated.
-
parallel
@Deprecated protected void parallel(java.lang.String newName, java.util.function.Consumer<SimpleBranch> branchConsumer)
Deprecated.
-
executionStrategy
protected OngoingExecutionStrategyConfiguration executionStrategy()
Configure the execution strategies that can be used for that mission. This includes the default execution strategy and allowed execution strategies that can be selected during mission instantiation. If the configuration is omitted the the default configuration is used.- Returns:
- an configuration object for execution strategy configuration
-
mandatory
protected <T> io.molr.commons.domain.Placeholder<T> mandatory(io.molr.commons.domain.Placeholder<T> placeholder)
-
mandatory
protected <T> io.molr.commons.domain.Placeholder<T> mandatory(io.molr.commons.domain.Placeholder<T> placeholder, java.util.Set<T> allowedValues)
-
mandatory
protected <T> io.molr.commons.domain.Placeholder<T> mandatory(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue)
-
mandatory
protected <T> io.molr.commons.domain.Placeholder<T> mandatory(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue, java.util.Set<T> allowedValues)
-
addParameter
protected <T> io.molr.commons.domain.Placeholder<T> addParameter(io.molr.commons.domain.MissionParameter<T> missionParameter)
-
optional
protected <T> io.molr.commons.domain.Placeholder<T> optional(io.molr.commons.domain.Placeholder<T> placeholder)
-
optional
protected <T> io.molr.commons.domain.Placeholder<T> optional(io.molr.commons.domain.Placeholder<T> placeholder, java.util.Set<T> allowedValues)
-
optional
protected <T> io.molr.commons.domain.Placeholder<T> optional(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue)
-
optional
protected <T> io.molr.commons.domain.Placeholder<T> optional(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue, java.util.Set<T> allowedValues)
-
latestBlock
protected io.molr.commons.domain.Block latestBlock()
Retrieves the most recently created block. NOTE: This is only intended for internal testing purposes!- Returns:
- the most recently added block.
-
build
public RunnableLeafsMission build()
-
-