public class BuildCacheArtifactFetcher extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
BuildCacheArtifactFetcher.OnOutputsWillChange |
Constructor and Description |
---|
BuildCacheArtifactFetcher(BuildRule rule,
BuildRuleScopeManager buildRuleScopeManager,
WeightedListeningExecutorService executorService,
BuildCacheArtifactFetcher.OnOutputsWillChange onOutputsWillChange,
BuckEventBus eventBus,
BuildInfoStoreManager buildInfoStoreManager,
OnDiskBuildInfo onDiskBuildInfo) |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.util.concurrent.ListenableFuture<CacheResult> |
convertErrorToSoftError(com.google.common.util.concurrent.ListenableFuture<CacheResult> cacheResultListenableFuture,
RuleKey ruleKey)
Converts a failed
ListenableFuture<CacheResult> to a CacheResult error. |
com.google.common.util.concurrent.ListenableFuture<CacheResult> |
fetch(ArtifactCache artifactCache,
RuleKey ruleKey,
LazyPath outputPath) |
com.google.common.util.concurrent.ListenableFuture<CacheResult> |
tryToFetchArtifactFromBuildCacheAndOverlayOnTopOfProjectFilesystem(RuleKey ruleKey,
ArtifactCache artifactCache,
ProjectFilesystem filesystem) |
public BuildCacheArtifactFetcher(BuildRule rule, BuildRuleScopeManager buildRuleScopeManager, WeightedListeningExecutorService executorService, BuildCacheArtifactFetcher.OnOutputsWillChange onOutputsWillChange, BuckEventBus eventBus, BuildInfoStoreManager buildInfoStoreManager, OnDiskBuildInfo onDiskBuildInfo)
protected com.google.common.util.concurrent.ListenableFuture<CacheResult> convertErrorToSoftError(com.google.common.util.concurrent.ListenableFuture<CacheResult> cacheResultListenableFuture, RuleKey ruleKey)
ListenableFuture<CacheResult>
to a CacheResult
error. Then
logs all CacheResult
of type CacheResultType.ERROR
. Returns a ListenableFuture<CacheResult>
without an Exception.cacheResultListenableFuture
- ListenableFuture inputruleKey
- rule key associated with that cache resultpublic com.google.common.util.concurrent.ListenableFuture<CacheResult> tryToFetchArtifactFromBuildCacheAndOverlayOnTopOfProjectFilesystem(RuleKey ruleKey, ArtifactCache artifactCache, ProjectFilesystem filesystem)
public com.google.common.util.concurrent.ListenableFuture<CacheResult> fetch(ArtifactCache artifactCache, RuleKey ruleKey, LazyPath outputPath)