public class InputBasedRuleKeyFactory extends Object implements RuleKeyFactory<RuleKey>
RuleKey
s.SupportsInputBasedRuleKey
Modifier and Type | Class and Description |
---|---|
protected static class |
InputBasedRuleKeyFactory.Result<RULE_KEY> |
Constructor and Description |
---|
InputBasedRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader,
FileHashLoader hashLoader,
SourcePathRuleFinder ruleFinder,
long inputSizeLimit,
Optional<ThriftRuleKeyLogger> ruleKeyLogger) |
Modifier and Type | Method and Description |
---|---|
RuleKey |
build(BuildEngineAction action)
Creates a new
RULE_KEY for the given BuildEngineAction . |
Optional<Long> |
getInputSizeLimit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFromCache
public InputBasedRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader, FileHashLoader hashLoader, SourcePathRuleFinder ruleFinder, long inputSizeLimit, Optional<ThriftRuleKeyLogger> ruleKeyLogger)
public Optional<Long> getInputSizeLimit()
getInputSizeLimit
in interface RuleKeyFactory<RuleKey>
public RuleKey build(BuildEngineAction action)
RuleKeyFactory
RULE_KEY
for the given BuildEngineAction
. In most cases RULE_KEY
is going to be RuleKey
, but it can be anything really.build
in interface RuleKeyFactory<RuleKey>
action
- The build rule to create the key for.