java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>, Writable@Private public class ConfigurationWithLogging extends Configuration
Configuration.
Sensitive data will be redacted.Configuration.DeprecationDelta, Configuration.IntegerRanges| Constructor | Description |
|---|---|
ConfigurationWithLogging(Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
get(java.lang.String name) |
|
java.lang.String |
get(java.lang.String name,
java.lang.String defaultValue) |
|
boolean |
getBoolean(java.lang.String name,
boolean defaultValue) |
|
float |
getFloat(java.lang.String name,
float defaultValue) |
|
int |
getInt(java.lang.String name,
int defaultValue) |
|
long |
getLong(java.lang.String name,
long defaultValue) |
|
void |
set(java.lang.String name,
java.lang.String value,
java.lang.String source) |
addDefaultResource, addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, 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, writeXmlpublic ConfigurationWithLogging(Configuration conf)
public java.lang.String get(java.lang.String name)
get in class Configurationname - the property name, will be trimmed before get value.name or its replacing property,
or null if no such property exists.public java.lang.String get(java.lang.String name,
java.lang.String defaultValue)
get in class Configurationname - property name, will be trimmed before get value.defaultValue - default value.defaultValue if the property
doesn't exist.public boolean getBoolean(java.lang.String name,
boolean defaultValue)
getBoolean in class Configurationname - property name.defaultValue - default value.boolean,
or defaultValue.public float getFloat(java.lang.String name,
float defaultValue)
getFloat in class Configurationname - property name.defaultValue - default value.float,
or defaultValue.public int getInt(java.lang.String name,
int defaultValue)
getInt in class Configurationname - property name.defaultValue - default value.int,
or defaultValue.public long getLong(java.lang.String name,
long defaultValue)
getLong in class Configurationname - property name.defaultValue - default value.long,
or defaultValue.public void set(java.lang.String name,
java.lang.String value,
java.lang.String source)
set in class Configurationname - property name.value - property value.source - the place that this configuration value came from
(For debugging).Copyright © 2008–2025 Apache Software Foundation. All rights reserved.