public class BuildRuleScopeManager extends Object
Once the rule has been marked as finished, any further scope() calls will fail.
Constructor and Description |
---|
BuildRuleScopeManager(RuleKeyFactories ruleKeyFactories,
OnDiskBuildInfo onDiskBuildInfo,
BuildRuleDurationTracker buildRuleDurationTracker,
RuleKeyDiagnostics<RuleKey,String> defaultRuleKeyDiagnostics,
RuleKeyDiagnosticsMode ruleKeyDiagnosticsMode,
BuildRule rule,
RuleDepsCache ruleDeps,
RuleKey defaultKey,
BuckEventBus eventBus) |
Modifier and Type | Method and Description |
---|---|
void |
finished(BuildResult input,
Optional<Long> outputSize,
Optional<com.google.common.hash.HashCode> outputHash,
Optional<BuildRuleSuccessType> successType,
UploadToCacheResultType UploadToCacheResultType,
Optional<Pair<Long,Long>> ruleKeyCacheCheckTimestamps,
Optional<Pair<Long,Long>> inputRuleKeyCacheCheckTimestamps,
Optional<Pair<Long,Long>> manifestRuleKeyCacheCheckTimestamps,
Optional<Pair<Long,Long>> buildTimestamps) |
Scope |
scope() |
void |
setManifestFetchResult(ManifestFetchResult manifestFetchResult) |
void |
setManifestStoreResult(ManifestStoreResult manifestStoreResult) |
public BuildRuleScopeManager(RuleKeyFactories ruleKeyFactories, OnDiskBuildInfo onDiskBuildInfo, BuildRuleDurationTracker buildRuleDurationTracker, RuleKeyDiagnostics<RuleKey,String> defaultRuleKeyDiagnostics, RuleKeyDiagnosticsMode ruleKeyDiagnosticsMode, BuildRule rule, RuleDepsCache ruleDeps, RuleKey defaultKey, BuckEventBus eventBus)
public Scope scope()
public void finished(BuildResult input, Optional<Long> outputSize, Optional<com.google.common.hash.HashCode> outputHash, Optional<BuildRuleSuccessType> successType, UploadToCacheResultType UploadToCacheResultType, Optional<Pair<Long,Long>> ruleKeyCacheCheckTimestamps, Optional<Pair<Long,Long>> inputRuleKeyCacheCheckTimestamps, Optional<Pair<Long,Long>> manifestRuleKeyCacheCheckTimestamps, Optional<Pair<Long,Long>> buildTimestamps)
public void setManifestStoreResult(@Nullable ManifestStoreResult manifestStoreResult)
public void setManifestFetchResult(@Nullable ManifestFetchResult manifestFetchResult)