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 Details
-
FileConfigProvider
public FileConfigProvider()
-
-
Method Details
-
configure
Description copied from interface:Configurable
Configure this class with the given key-value pairs- Specified by:
configure
in interfaceConfigurable
-
get
Retrieves the data at the given Properties file.- Specified by:
get
in interfaceConfigProvider
- Parameters:
path
- the file where the data resides- Returns:
- the configuration data
-
get
Retrieves the data with the given keys at the given Properties file.- Specified by:
get
in interfaceConfigProvider
- Parameters:
path
- the file where the data resideskeys
- the keys whose values will be retrieved- Returns:
- the configuration data
-
reader
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-