Class ConfigurationFactory
java.lang.Object
kieker.monitoring.core.configuration.ConfigurationFactory
public final class ConfigurationFactory
extends java.lang.Object
A ConfigurationFactory for kieker.monitoring.
- Since:
- 1.3
- Author:
- Andre van Hoorn, Jan Waller
-
Method Summary
Modifier and Type Method Description static Configuration
createConfigurationFromFile(java.lang.String configurationFile)
Creates a new configuration based on the given properties file with fallback on the default values.static Configuration
createConfigurationFromFile(java.nio.file.Path configurationFile)
Creates a new configuration based on the given properties file with fallback on the default values.static Configuration
createDefaultConfiguration()
Returns an empty properties map with a fallback on the default configuration.static Configuration
createSingletonConfiguration()
Creates the configuration for the singleton controller instance.
-
Method Details
-
createSingletonConfiguration
Creates the configuration for the singleton controller instance. Note that theProperties
returned by this method are not a singleton instance, i.e., each call returns an equal but not same set ofProperties
.- Returns:
- the configuration for the singleton controller
-
createDefaultConfiguration
Returns an empty properties map with a fallback on the default configuration.- Returns:
- default configuration
-
createConfigurationFromFile
Creates a new configuration based on the given properties file with fallback on the default values. If the file does not exists, a warning is logged and an empty configuration with fallback on the default configuration is returned.- Parameters:
configurationFile
- The file path as string which contains the configuration.- Returns:
- The created Configuration
-
createConfigurationFromFile
Creates a new configuration based on the given properties file with fallback on the default values. If the file does not exists, a warning is logged and an empty configuration with fallback on the default configuration is returned.- Parameters:
configurationFile
- The file path which contains the configuration.- Returns:
- The created Configuration
-