Class FileConfigProvider
java.lang.Object
org.apache.kafka.common.config.provider.FileConfigProvider
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- ConfigProvider,- Configurable
An implementation of 
ConfigProvider that represents a Properties file.
 All property keys and values are stored as cleartext.- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.common.config.provider.ConfigProvidersubscribe, unsubscribe, unsubscribeAll
- 
Constructor Details- 
FileConfigProviderpublic FileConfigProvider()
 
- 
- 
Method Details- 
configureDescription copied from interface:ConfigurableConfigure this class with the given key-value pairs- Specified by:
- configurein interface- Configurable
 
- 
getRetrieves the data at the given Properties file.- Specified by:
- getin interface- ConfigProvider
- Parameters:
- path- the file where the data resides
- Returns:
- the configuration data
 
- 
getRetrieves the data with the given keys at the given Properties file.- Specified by:
- getin interface- ConfigProvider
- Parameters:
- path- the file where the data resides
- keys- the keys whose values will be retrieved
- Returns:
- the configuration data
 
- 
reader- Throws:
- IOException
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
 
-