Class RemoteExecutionStrategy
- java.lang.Object
-
- com.facebook.buck.rules.modern.builders.RemoteExecutionStrategy
-
- All Implemented Interfaces:
BuildRuleStrategy
,Closeable
,AutoCloseable
public class RemoteExecutionStrategy extends Object
ABuildRuleStrategy
that uses a Remote Execution service for executing BuildRules. It currently only supports ModernBuildRule and creates a remote Action WithModernBuildRuleRemoteExecutionHelper
.See https://docs.google.com/document/d/1AaGk7fOPByEvpAbqeXIyE8HX_A3_axxNnvroblTZ_6s/preview for a high-level description of the approach to remote execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RemoteExecutionStrategy.RemoteExecutionStrategyBuildResult
StrategyBuildResult for Remote Execution Strategy which includes RuleContext-
Nested classes/interfaces inherited from interface com.facebook.buck.core.rules.build.strategy.BuildRuleStrategy
BuildRuleStrategy.StrategyBuildResult
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
canBuild
public boolean canBuild(BuildRule instance)
Description copied from interface:BuildRuleStrategy
A rule will be built by the custom strategy only if canBuild() returns true.- Specified by:
canBuild
in interfaceBuildRuleStrategy
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceBuildRuleStrategy
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
build
public BuildRuleStrategy.StrategyBuildResult build(BuildRule rule, BuildStrategyContext strategyContext)
Description copied from interface:BuildRuleStrategy
Builds the rule.
-
-