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)
BuildRuleStrategycanBuild in interface BuildRuleStrategypublic void close()
throws IOException
close in interface BuildRuleStrategyclose in interface Closeableclose in interface AutoCloseableIOExceptionpublic BuildRuleStrategy.StrategyBuildResult build(BuildRule rule, BuildStrategyContext strategyContext)
BuildRuleStrategy