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.Field Summary
FieldsConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionvoidclose()voidConfigure this class with the given key-value pairsRetrieves the data at the given Properties file.Retrieves the data with the given keys at the given Properties file.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.common.config.provider.ConfigProvider
subscribe, unsubscribe, unsubscribeAll
Field Details
ALLOWED_PATHS_CONFIG
- See Also:
ALLOWED_PATHS_DOC
- See Also:
Constructor Details
FileConfigProvider
public FileConfigProvider()
Method Details
configure
Description copied from interface:ConfigurableConfigure this class with the given key-value pairs- Specified by:
configurein interfaceConfigurable
get
Retrieves the data at the given Properties file.- Specified by:
getin 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:
getin interfaceConfigProvider- Parameters:
path- the file where the data resideskeys- the keys whose values will be retrieved- Returns:
- the configuration data
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable