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

    • DEFAULT

      public static Config DEFAULT
  • Method Details

    • of

      public static Config of(String resource)
    • of

      public static Config of(Properties props)
    • getEnvironment

      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
    • getDumpDir

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

      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

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

      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
    • getProperties

      public Properties getProperties()
    • getProperty

      public String getProperty(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object