public class BuildRulePipelinesRunner extends Object
Constructor and Description |
---|
BuildRulePipelinesRunner() |
Modifier and Type | Method and Description |
---|---|
<T extends RulePipelineState> |
addRule(SupportsPipelining<T> rule,
java.util.function.Function<T,RunnableWithFuture<Optional<BuildResult>>> ruleStepRunnerFactory)
Gives the factory a way to construct a
RunnableWithFuture to build the given rule. |
com.google.common.util.concurrent.ListenableFuture<Optional<BuildResult>> |
getFuture(SupportsPipelining<?> rule) |
void |
removeRule(SupportsPipelining<?> rule)
Removes a rule from pipeline eligibility.
|
boolean |
runningPipelinesContainRule(SupportsPipelining<?> rule) |
<T extends RulePipelineState> |
runPipelineStartingAt(BuildContext context,
SupportsPipelining<T> rootRule,
ExecutorService executor) |
public <T extends RulePipelineState> void addRule(SupportsPipelining<T> rule, java.util.function.Function<T,RunnableWithFuture<Optional<BuildResult>>> ruleStepRunnerFactory)
RunnableWithFuture
to build the given rule.public void removeRule(SupportsPipelining<?> rule)
public boolean runningPipelinesContainRule(SupportsPipelining<?> rule)
public com.google.common.util.concurrent.ListenableFuture<Optional<BuildResult>> getFuture(SupportsPipelining<?> rule)
public <T extends RulePipelineState> com.google.common.util.concurrent.ListenableFuture<Optional<BuildResult>> runPipelineStartingAt(BuildContext context, SupportsPipelining<T> rootRule, ExecutorService executor)