Class ExtendedConfiguration

java.lang.Object
org.apache.hadoop.conf.Configuration
org.apache.nifi.processors.hadoop.ExtendedConfiguration
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>, org.apache.hadoop.io.Writable

public class ExtendedConfiguration extends org.apache.hadoop.conf.Configuration
Extending Hadoop Configuration to prevent it from caching classes that can't be found. Since users may be adding additional JARs to the classpath we don't want them to have to restart the JVM to be able to load something that was previously not found, but might now be available. Reference the original getClassByNameOrNull from Configuration.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.conf.Configuration

    org.apache.hadoop.conf.Configuration.DeprecationDelta, org.apache.hadoop.conf.Configuration.IntegerRanges
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private final BiConsumer<String,Throwable>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExtendedConfiguration(org.apache.nifi.logging.ComponentLog logger)
     
    ExtendedConfiguration(org.slf4j.Logger logger)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods 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, get, get, getAllPropertiesByTag, getAllPropertiesByTags, getBoolean, getClass, getClass, getClassByName, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getEnumSet, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, 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, 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, writeXml

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

  • Constructor Details

    • ExtendedConfiguration

      public ExtendedConfiguration(org.slf4j.Logger logger)
    • ExtendedConfiguration

      public ExtendedConfiguration(org.apache.nifi.logging.ComponentLog logger)
  • Method Details

    • getClassByNameOrNull

      public Class<?> getClassByNameOrNull(String name)
      Overrides:
      getClassByNameOrNull in class org.apache.hadoop.conf.Configuration