Class ConfigurationProperties
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ConfigurationProperties
A trie storage to preprocess and store configuration properties for optimised
retrieval. A node is created for every key part delimited by ".".
A property entry is stored in a node that matches its next to last key
part (which reduces the nodes created).
For example:
yarn.scheduler.capacity.root.max-applications 100
yarn.scheduler.capacity.root.state RUNNING
4 nodes are created: yarn - scheduler - capacity - root
root node will have the two properties set in its values.
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationProperties(Map<String, String> props) A constructor defined in order to conform to the type used byConfiguration. -
Method Summary
Modifier and TypeMethodDescriptiongetPropertiesWithPrefix(String prefix) Filters all properties by a prefix.getPropertiesWithPrefix(String prefix, boolean fullyQualifiedKey) Filters all properties by a prefix.
-
Constructor Details
-
ConfigurationProperties
A constructor defined in order to conform to the type used byConfiguration. It must only be called by String keys and values.- Parameters:
props- properties to store
-
-
Method Details
-
getPropertiesWithPrefix
Filters all properties by a prefix. The property keys are trimmed by the given prefix.- Parameters:
prefix- prefix to filter property keys- Returns:
- properties matching given prefix
-
getPropertiesWithPrefix
Filters all properties by a prefix.- Parameters:
prefix- prefix to filter property keysfullyQualifiedKey- whether collected property keys are to be trimmed by the prefix, or must be kept as it is- Returns:
- properties matching given prefix
-