public class LocalFallbackStrategy extends Object implements BuildRuleStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalFallbackStrategy.RemoteActionCancelledException
Thrown when execution needs to be halted because of cancellation
|
static class |
LocalFallbackStrategy.RemoteActionFailedException
Thrown when execution failed remotely and cannot be retried locally
|
BuildRuleStrategy.StrategyBuildResult| Constructor and Description |
|---|
LocalFallbackStrategy(BuildRuleStrategy mainBuildRuleStrategy,
BuckEventBus eventBus,
boolean localFallbackEnabled,
boolean localFallbackDisabledOnCorruptedArtifacts,
boolean localFallbackEnabledForCompletedAction) |
| 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 LocalFallbackStrategy(BuildRuleStrategy mainBuildRuleStrategy, BuckEventBus eventBus, boolean localFallbackEnabled, boolean localFallbackDisabledOnCorruptedArtifacts, boolean localFallbackEnabledForCompletedAction)
public void close()
throws IOException
close in interface BuildRuleStrategyclose in interface Closeableclose in interface AutoCloseableIOExceptionpublic BuildRuleStrategy.StrategyBuildResult build(BuildRule rule, BuildStrategyContext strategyContext)
BuildRuleStrategybuild in interface BuildRuleStrategypublic boolean canBuild(BuildRule instance)
BuildRuleStrategycanBuild in interface BuildRuleStrategy