Contents
Class Config
java.lang.Object
clazzfish.monitor.Config
All config stuff is encapsulated in this class.
- Since:
- 2.3 (05.12.24)
- Author:
- oboehm
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the directory where the collected dates and statistics are dumped to.Get the directory or URI where the collected dates and statistics are dumped to.static String
getEnvironment
(String key) Gets the system property for the given key.static String
getEnvironment
(String key, String defaultValue) UsesgetEnvironment(String)
to find the key as system property or environment variable.void
setDumpDir
(File dir) Here you can set the directory where the collected dates and statistics should be dumped to.void
setDumpURI
(URI uri) Here you can set the directory or locaction where the collected dates and statistics should be dumped to.
-
Field Details
-
Method Details
-
getEnvironment
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
UsesgetEnvironment(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
Get the directory where the collected dates and statistics are dumped to.- Returns:
- directory for export
-
setDumpDir
Here you can set the directory where the collected dates and statistics should be dumped to.- Parameters:
dir
- directory for export
-
getDumpURI
Get the directory or URI where the collected dates and statistics are dumped to.- Returns:
- directory or URI for export
-
setDumpURI
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
-