public class TargetGraphHashing extends Object
TargetGraph
.
A build target's hash code is guaranteed to change if the build target or any of its dependencies change, including the contents of all input files to the target and its dependencies.
Constructor and Description |
---|
TargetGraphHashing(BuckEventBus eventBus,
TargetGraph targetGraph,
FileHashLoader fileHashLoader,
Iterable<TargetNode<?>> roots,
com.google.common.util.concurrent.ListeningExecutorService executor,
RuleKeyConfiguration ruleKeyConfiguration,
java.util.function.Function<TargetNode<?>,com.google.common.util.concurrent.ListenableFuture<?>> targetNodeRawAttributesProvider,
com.google.common.hash.HashFunction hashFunction) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<BuildTarget,com.google.common.hash.HashCode> |
hashTargetGraph()
Given a
TargetGraph and any number of root nodes to traverse, returns a map of (BuildTarget, HashCode) pairs for all root build targets and their dependencies. |
public TargetGraphHashing(BuckEventBus eventBus, TargetGraph targetGraph, FileHashLoader fileHashLoader, Iterable<TargetNode<?>> roots, com.google.common.util.concurrent.ListeningExecutorService executor, RuleKeyConfiguration ruleKeyConfiguration, java.util.function.Function<TargetNode<?>,com.google.common.util.concurrent.ListenableFuture<?>> targetNodeRawAttributesProvider, com.google.common.hash.HashFunction hashFunction)
public com.google.common.collect.ImmutableMap<BuildTarget,com.google.common.hash.HashCode> hashTargetGraph() throws InterruptedException
TargetGraph
and any number of root nodes to traverse, returns a map of (BuildTarget, HashCode)
pairs for all root build targets and their dependencies.InterruptedException