Interface Config

All Known Implementing Classes:
DefaultConfig

public interface Config
Interface representing the configuration settings for metrics collection.
  • 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

      void setDefaultProperty(Map<String,String> properties)
      Sets default properties.
      Parameters:
      properties - the default properties map
    • getProperty

      String getProperty(String key, String defaultValue)
      Gets a property value.
      Parameters:
      key - the key
      defaultValue - the default value to return if not present
      Returns:
      the property value or the default value