Package io.siddhi.core.util.config
Class YAMLConfigReader
- java.lang.Object
-
- io.siddhi.core.util.config.YAMLConfigReader
-
- All Implemented Interfaces:
ConfigReader
public class YAMLConfigReader extends Object implements ConfigReader
Extension config readers
-
-
Constructor Summary
Constructors Constructor Description YAMLConfigReader(Map<String,String> configs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getAllConfigs()Return all the configurations in the config readerStringreadConfig(String name, String defaultValue)Returns the value of the system property if set else the default value is returned
-
-
-
Method Detail
-
readConfig
public String readConfig(String name, String defaultValue)
Description copied from interface:ConfigReaderReturns the value of the system property if set else the default value is returned- Specified by:
readConfigin interfaceConfigReader- Parameters:
name- Name of the propertydefaultValue- Default value for the property- Returns:
- Value of the system property
-
getAllConfigs
public Map<String,String> getAllConfigs()
Description copied from interface:ConfigReaderReturn all the configurations in the config reader- Specified by:
getAllConfigsin interfaceConfigReader- Returns:
- Hashmap of properties and values
-
-