Interface Config
- All Known Implementing Classes:
DefaultConfig
public interface Config
Interface representing the configuration settings for metrics collection.
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String key, String defaultValue) Gets a property value.Retrieves the unique identifier of the server.booleanisDebug()Checks if debug logging is enabled.booleanChecks if metrics submission is enabled.default booleanChecks if this is the first time the metrics are running.booleanChecks if additional/custom metrics are enabled for submission.voidsetDefaultProperty(Map<String, String> properties) Sets default properties.
-
Method Details
-
getServerId
UUID getServerId()Retrieves the unique identifier of the server.- Returns:
- the server identifier UUID
-
isEnabled
boolean isEnabled()Checks if metrics submission is enabled.- Returns:
- true if enabled, false otherwise
-
isSubmitAdditionalMetrics
boolean isSubmitAdditionalMetrics()Checks if additional/custom metrics are enabled for submission.- Returns:
- true if enabled, false otherwise
-
isDebug
boolean isDebug()Checks if debug logging is enabled.- Returns:
- true if enabled, false otherwise
-
isFirstRun
default boolean isFirstRun()Checks if this is the first time the metrics are running.- Returns:
- true if first run, false otherwise
-
setDefaultProperty
-
getProperty
-