Package com.facebook.buck.rules.keys
Class InputBasedRuleKeyFactory
- java.lang.Object
-
- com.facebook.buck.rules.keys.InputBasedRuleKeyFactory
-
- All Implemented Interfaces:
RuleKeyFactory<RuleKey>
public class InputBasedRuleKeyFactory extends Object implements RuleKeyFactory<RuleKey>
A factory for generating input-basedRuleKey
s.- See Also:
SupportsInputBasedRuleKey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
InputBasedRuleKeyFactory.Result<RULE_KEY>
-
Constructor Summary
Constructors Constructor Description InputBasedRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader, FileHashLoader hashLoader, SourcePathRuleFinder ruleFinder, long inputSizeLimit, Optional<ThriftRuleKeyLogger> ruleKeyLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleKey
build(BuildEngineAction action)
Creates a newRULE_KEY
for the givenBuildEngineAction
.Optional<Long>
getInputSizeLimit()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.rules.keys.RuleKeyFactory
getFromCache
-
-
-
-
Constructor Detail
-
InputBasedRuleKeyFactory
public InputBasedRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader, FileHashLoader hashLoader, SourcePathRuleFinder ruleFinder, long inputSizeLimit, Optional<ThriftRuleKeyLogger> ruleKeyLogger)
-
-
Method Detail
-
getInputSizeLimit
public Optional<Long> getInputSizeLimit()
- Specified by:
getInputSizeLimit
in interfaceRuleKeyFactory<RuleKey>
-
build
public RuleKey build(BuildEngineAction action)
Description copied from interface:RuleKeyFactory
Creates a newRULE_KEY
for the givenBuildEngineAction
. In most casesRULE_KEY
is going to beRuleKey
, but it can be anything really.- Specified by:
build
in interfaceRuleKeyFactory<RuleKey>
- Parameters:
action
- The build rule to create the key for.- Returns:
- A rule key.
-
-