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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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​(java.lang.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​(java.nio.file.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