Class Config

java.lang.Object
clazzfish.monitor.Config

public final class Config extends Object
All config stuff is encapsulated in this class.
Since:
2.3 (05.12.24)
Author:
oboehm
  • Field Details Link icon

    • DEFAULT Link icon

      public static Config DEFAULT
  • Method Details Link icon

    • getEnvironment Link icon

      public static String getEnvironment(String key)
      Gets the system property for the given key. If it is not set as system property it tries to find it as environment variable (in uppercase and with underscores instead of dots).
      Parameters:
      key - name of the property or environment variable (in lowercase)
      Returns:
      found value or null
    • getEnvironment Link icon

      public static String getEnvironment(String key, String defaultValue)
      Uses getEnvironment(String) to find the key as system property or environment variable. If key is not set the given defaultValue will be returned.
      Parameters:
      key - name of the property or environment variable (in lowercase)
      defaultValue - default value
      Returns:
      value found or default value
    • getDumpDir Link icon

      public File getDumpDir()
      Get the directory where the collected dates and statistics are dumped to.
      Returns:
      directory for export
    • setDumpDir Link icon

      public void setDumpDir(File dir)
      Here you can set the directory where the collected dates and statistics should be dumped to.
      Parameters:
      dir - directory for export
    • getDumpURI Link icon

      public URI getDumpURI()
      Get the directory or URI where the collected dates and statistics are dumped to.
      Returns:
      directory or URI for export
    • setDumpURI Link icon

      public void setDumpURI(URI uri)
      Here you can set the directory or locaction where the collected dates and statistics should be dumped to.
      Parameters:
      uri - directory or URI for export