Package org.apache.cassandra.config
Class YamlConfigurationLoader
java.lang.Object
org.apache.cassandra.config.YamlConfigurationLoader
- All Implemented Interfaces:
ConfigurationLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tstatic <T> Tstatic org.yaml.snakeyaml.LoaderOptionsLoads aConfigobject to use to configure a node.loadConfig(URL url) static <T> TupdateFromMap(Map<String, ?> map, boolean shouldCheck, T obj)
-
Constructor Details
-
YamlConfigurationLoader
public YamlConfigurationLoader()
-
-
Method Details
-
loadConfig
Description copied from interface:ConfigurationLoaderLoads aConfigobject to use to configure a node.- Specified by:
loadConfigin interfaceConfigurationLoader- Returns:
- the
Configto use. - Throws:
ConfigurationException- if the configuration cannot be properly loaded.
-
loadConfig
- Throws:
ConfigurationException
-
fromMap
-
fromMap
-
updateFromMap
-
getDefaultLoaderOptions
public static org.yaml.snakeyaml.LoaderOptions getDefaultLoaderOptions()
-