Class JavaMelodyConfigurationProperties

java.lang.Object
net.bull.javamelody.JavaMelodyConfigurationProperties

@ConfigurationProperties(prefix="javamelody") public class JavaMelodyConfigurationProperties extends Object
Configuration properties for JavaMelody.
This class is used for binding the configuration values in "application.yml" or "application.properties".
Since:
1.64.0
Author:
Georg Wittberger
  • Field Details

  • Constructor Details

    • JavaMelodyConfigurationProperties

      public JavaMelodyConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns if JavaMelody should be enabled within the application.
      Returns:
      true if JavaMelody should be enabled, otherwise false. Default: true
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets whether JavaMelody should be enabled within the application.
      Parameters:
      enabled - true if JavaMelody should be enabled, otherwise false.
    • getExcludedDatasources

      public String getExcludedDatasources()
      Returns a comma-separated list of data source names which should be excluded from monitoring.
      Returns:
      Data source names to exclude from monitoring.
    • setExcludedDatasources

      public void setExcludedDatasources(String excludedDatasources)
      Sets a comma-separated list of data source names which should be excluded from monitoring.
      Parameters:
      excludedDatasources - Data source names to exclude from monitoring.
    • isSpringMonitoringEnabled

      public boolean isSpringMonitoringEnabled()
      If monitoring based on @RestController, @Controller, @Service, @Async, @Scheduled, @MonitoredWithSpring,
      Returns:
      true or false
    • setSpringMonitoringEnabled

      public void setSpringMonitoringEnabled(boolean springMonitoringEnabled)
      If monitoring based on @RestController, @Controller, @Service, @Async, @Scheduled, @MonitoredWithSpring,
      Parameters:
      springMonitoringEnabled - true or false
    • isManagementEndpointMonitoringEnabled

      public boolean isManagementEndpointMonitoringEnabled()
      Returns if /monitoring should be enabled for reports in the management http port instead of on the application http port.
      Returns:
      true or false
    • setManagementEndpointMonitoringEnabled

      public void setManagementEndpointMonitoringEnabled(boolean managementEndpointEnabled)
      Sets whether /monitoring should be enabled for reports in the management http port instead of on the application http port.
      Parameters:
      managementEndpointEnabled - true or false
    • getInitParameters

      public Map<String,String> getInitParameters()
      Returns a map of initialization parameters to be passed to the JavaMelody monitoring filter. The available parameters are listed here: https://github.com/javamelody/javamelody/wiki/UserGuide#6-optional-parameters
      Returns:
      Initialization parameters for the JavaMelody monitoring filter.
    • setInitParameters

      public void setInitParameters(Map<String,String> initParameters)
      Sets a map of initialization parameters to be passed to the JavaMelody monitoring filter. The available parameters are listed here: https://github.com/javamelody/javamelody/wiki/UserGuide#6-optional-parameters
      Parameters:
      initParameters - Initialization parameters for the JavaMelody monitoring filter.
    • toString

      public String toString()
      Overrides:
      toString in class Object