public class RemoteExecutionStrategy extends Object
BuildRuleStrategy
that uses a Remote Execution service for executing BuildRules. It
currently only supports ModernBuildRule and creates a remote Action With ModernBuildRuleRemoteExecutionHelper
.
See https://docs.google.com/document/d/1AaGk7fOPByEvpAbqeXIyE8HX_A3_axxNnvroblTZ_6s/preview for a high-level description of the approach to remote execution.
Modifier and Type | Class and Description |
---|---|
static interface |
RemoteExecutionStrategy.RemoteExecutionStrategyBuildResult
StrategyBuildResult for Remote Execution Strategy which includes RuleContext
|
BuildRuleStrategy.StrategyBuildResult
Modifier and Type | Method and Description |
---|---|
BuildRuleStrategy.StrategyBuildResult |
build(BuildRule rule,
BuildStrategyContext strategyContext)
Builds the rule.
|
boolean |
canBuild(BuildRule instance)
A rule will be built by the custom strategy only if canBuild() returns true.
|
void |
close() |
public boolean canBuild(BuildRule instance)
BuildRuleStrategy
canBuild
in interface BuildRuleStrategy
public void close() throws IOException
close
in interface BuildRuleStrategy
close
in interface Closeable
close
in interface AutoCloseable
IOException
public BuildRuleStrategy.StrategyBuildResult build(BuildRule rule, BuildStrategyContext strategyContext)
BuildRuleStrategy