Class ConfigurationFactory

java.lang.Object
kieker.monitoring.core.configuration.ConfigurationFactory

public final class ConfigurationFactory extends Object
A ConfigurationFactory for kieker.monitoring.
Since:
1.3
Author:
Andre van Hoorn, Jan Waller
  • Method Details

    • createSingletonConfiguration

      public static Configuration createSingletonConfiguration()
      Creates the configuration for the singleton controller instance. Note that the Properties returned by this method are not a singleton instance, i.e., each call returns an equal but not same set of Properties.
      Returns:
      the configuration for the singleton controller
    • createDefaultConfiguration

      public static Configuration createDefaultConfiguration()
      Returns an empty properties map with a fallback on the default configuration.
      Returns:
      default configuration
    • createConfigurationFromFile

      public static Configuration createConfigurationFromFile(String configurationFile)
      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

      public static Configuration createConfigurationFromFile(Path configurationFile)
      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