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

    • of Link icon

      public static Config of(String resource)
    • of Link icon

      public static Config of(Properties props)
    • 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
    • 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
    • getProperties Link icon

      public Properties getProperties()
    • getProperty Link icon

      public String getProperty(String name)
    • toString Link icon

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object