public class ManifestRuleKeyManager extends Object
Constructor and Description |
---|
ManifestRuleKeyManager(DepFiles depFiles,
BuildRule rule,
FileHashLoader fileHashLoader,
long maxDepFileCacheEntries,
SourcePathResolverAdapter pathResolver,
RuleKeyFactories ruleKeyFactories,
BuildCacheArtifactFetcher buildCacheArtifactFetcher,
ArtifactCache artifactCache,
java.util.function.Supplier<Optional<DependencyFileRuleKeyFactory.RuleKeyAndInputs>> manifestBasedKeySupplier,
ManifestRuleKeyService manifestRuleKeyService) |
Modifier and Type | Method and Description |
---|---|
Optional<DependencyFileRuleKeyFactory.RuleKeyAndInputs> |
calculateManifestKey(BuckEventBus eventBus) |
com.google.common.util.concurrent.ListenableFuture<CacheResult> |
fetchManifest(RuleKey key) |
static Path |
getManifestPath(BuildRule rule) |
ManifestLoadResult |
loadManifest(RuleKey key) |
com.google.common.util.concurrent.ListenableFuture<ManifestFetchResult> |
performManifestBasedCacheFetch(DependencyFileRuleKeyFactory.RuleKeyAndInputs originalRuleKeyAndInputs) |
ManifestStoreResult |
updateAndStoreManifest(RuleKey key,
com.google.common.collect.ImmutableSet<SourcePath> inputs,
DependencyFileRuleKeyFactory.RuleKeyAndInputs manifestKey,
long artifactBuildTimeMs) |
boolean |
useManifestCaching() |
public ManifestRuleKeyManager(DepFiles depFiles, BuildRule rule, FileHashLoader fileHashLoader, long maxDepFileCacheEntries, SourcePathResolverAdapter pathResolver, RuleKeyFactories ruleKeyFactories, BuildCacheArtifactFetcher buildCacheArtifactFetcher, ArtifactCache artifactCache, java.util.function.Supplier<Optional<DependencyFileRuleKeyFactory.RuleKeyAndInputs>> manifestBasedKeySupplier, ManifestRuleKeyService manifestRuleKeyService)
public boolean useManifestCaching()
public ManifestStoreResult updateAndStoreManifest(RuleKey key, com.google.common.collect.ImmutableSet<SourcePath> inputs, DependencyFileRuleKeyFactory.RuleKeyAndInputs manifestKey, long artifactBuildTimeMs) throws IOException
IOException
public Optional<DependencyFileRuleKeyFactory.RuleKeyAndInputs> calculateManifestKey(BuckEventBus eventBus) throws IOException
IOException
public com.google.common.util.concurrent.ListenableFuture<CacheResult> fetchManifest(RuleKey key)
public ManifestLoadResult loadManifest(RuleKey key)
public com.google.common.util.concurrent.ListenableFuture<ManifestFetchResult> performManifestBasedCacheFetch(DependencyFileRuleKeyFactory.RuleKeyAndInputs originalRuleKeyAndInputs)