Package org.apache.hadoop.conf
Class ConfigurationWithLogging
java.lang.Object
org.apache.hadoop.conf.Configuration
org.apache.hadoop.conf.ConfigurationWithLogging
Logs access to
Configuration.
Sensitive data will be redacted.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.conf.Configuration
Configuration.DeprecationDelta, Configuration.IntegerRanges -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String name, boolean defaultValue) floatintlongvoidMethods inherited from class org.apache.hadoop.conf.Configuration
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addTags, clear, dumpConfiguration, dumpConfiguration, dumpDeprecatedKeys, getAllPropertiesByTag, getAllPropertiesByTags, getClass, getClass, getClassByName, getClassByNameOrNull, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getEnumSet, getFile, getFinalParameters, getInstances, getInts, getLocalPath, getLongBytes, getPassword, getPasswordFromConfig, getPasswordFromCredentialProviders, getPattern, getPropertySources, getProps, getPropsWithPrefix, getRange, getRaw, getResource, getSocketAddr, getSocketAddr, getStorageSize, getStorageSize, getStringCollection, getStrings, getStrings, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDurationHelper, getTimeDurations, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, isPropertyTag, iterator, main, onlyKeyExists, readFields, reloadConfiguration, reloadExistingConfigurations, set, setAllowNullValueProperties, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDeprecatedProperties, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setRestrictSystemProperties, setRestrictSystemPropertiesDefault, setRestrictSystemProps, setSocketAddr, setStorageSize, setStrings, setTimeDuration, size, substituteCommonVariables, toString, unset, updateConnectAddr, updateConnectAddr, write, writeXml, writeXml, writeXml, writeXmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ConfigurationWithLogging
-
-
Method Details
-
get
- Overrides:
getin classConfiguration- Parameters:
name- the property name, will be trimmed before get value.- Returns:
- the value of the
nameor its replacing property, or null if no such property exists.
-
get
- Overrides:
getin classConfiguration- Parameters:
name- property name, will be trimmed before get value.defaultValue- default value.- Returns:
- property value, or
defaultValueif the property doesn't exist.
-
getBoolean
- Overrides:
getBooleanin classConfiguration- Parameters:
name- property name.defaultValue- default value.- Returns:
- property value as a
boolean, ordefaultValue.
-
getFloat
- Overrides:
getFloatin classConfiguration- Parameters:
name- property name.defaultValue- default value.- Returns:
- property value as a
float, ordefaultValue.
-
getInt
- Overrides:
getIntin classConfiguration- Parameters:
name- property name.defaultValue- default value.- Returns:
- property value as an
int, ordefaultValue.
-
getLong
- Overrides:
getLongin classConfiguration- Parameters:
name- property name.defaultValue- default value.- Returns:
- property value as a
long, ordefaultValue.
-
set
- Overrides:
setin classConfiguration- Parameters:
name- property name.value- property value.source- the place that this configuration value came from (For debugging).
-