public class ActionGraphProvider extends Object
TargetGraph
to ActionGraph
. It also holds a cache for the
last ActionGraph it generated.Constructor and Description |
---|
ActionGraphProvider(BuckEventBus eventBus,
ActionGraphFactory actionGraphFactory,
ActionGraphCache actionGraphCache,
RuleKeyConfiguration ruleKeyConfiguration,
boolean checkActionGraphs,
boolean skipActionGraphCache,
IncrementalActionGraphMode incrementalActionGraphMode) |
ActionGraphProvider(BuckEventBus eventBus,
ActionGraphFactory actionGraphFactory,
ActionGraphCache actionGraphCache,
RuleKeyConfiguration ruleKeyConfiguration,
BuckConfig buckConfig) |
Modifier and Type | Method and Description |
---|---|
ActionGraphAndBuilder |
getActionGraph(TargetGraphCreationResult targetGraph)
Create an ActionGraph, using options extracted from a BuckConfig.
|
ActionGraphAndBuilder |
getActionGraph(TargetNodeToBuildRuleTransformer transformer,
TargetGraphCreationResult targetGraphCreationResult,
Optional<ThriftRuleKeyLogger> ruleKeyLogger)
It returns an
ActionGraphAndBuilder . |
ActionGraphAndBuilder |
getFreshActionGraph(TargetGraphCreationResult targetGraph)
* It returns a new
ActionGraphAndBuilder based on the targetGraph without checking the
cache. |
ActionGraphAndBuilder |
getFreshActionGraph(TargetNodeToBuildRuleTransformer transformer,
TargetGraphCreationResult targetGraph)
It returns a new
ActionGraphAndBuilder based on the targetGraph without checking the
cache. |
public ActionGraphProvider(BuckEventBus eventBus, ActionGraphFactory actionGraphFactory, ActionGraphCache actionGraphCache, RuleKeyConfiguration ruleKeyConfiguration, boolean checkActionGraphs, boolean skipActionGraphCache, IncrementalActionGraphMode incrementalActionGraphMode)
public ActionGraphProvider(BuckEventBus eventBus, ActionGraphFactory actionGraphFactory, ActionGraphCache actionGraphCache, RuleKeyConfiguration ruleKeyConfiguration, BuckConfig buckConfig)
public ActionGraphAndBuilder getActionGraph(TargetGraphCreationResult targetGraph)
public ActionGraphAndBuilder getActionGraph(TargetNodeToBuildRuleTransformer transformer, TargetGraphCreationResult targetGraphCreationResult, Optional<ThriftRuleKeyLogger> ruleKeyLogger)
ActionGraphAndBuilder
. If the targetGraph
exists in the cache it
returns a cached version of the ActionGraphAndBuilder
, else returns a new one and
updates the cache.targetGraphCreationResult
- the target graph that the action graph will be based on.ActionGraphAndBuilder
public ActionGraphAndBuilder getFreshActionGraph(TargetGraphCreationResult targetGraph)
ActionGraphAndBuilder
based on the targetGraph without checking the
cache. It uses a DefaultTargetNodeToBuildRuleTransformer
.targetGraph
- the target graph that the action graph will be based on.ActionGraphAndBuilder
public ActionGraphAndBuilder getFreshActionGraph(TargetNodeToBuildRuleTransformer transformer, TargetGraphCreationResult targetGraph)
ActionGraphAndBuilder
based on the targetGraph without checking the
cache. It uses a custom TargetNodeToBuildRuleTransformer
.transformer
- Custom TargetNodeToBuildRuleTransformer
that the transformation will
be based on.targetGraph
- The target graph that the action graph will be based on.ActionGraphAndBuilder