Package net.bull.javamelody
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".
This class is used for binding the configuration values in "application.yml" or "application.properties".
- Since:
- 1.64.0
- Author:
- Georg Wittberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a comma-separated list of data source names which should be excluded from monitoring.Returns a map of initialization parameters to be passed to the JavaMelody monitoring filter.booleanReturns if JavaMelody should be enabled within the application.booleanReturns if /monitoring should be enabled for reports in the management http port instead of on the application http port.booleanIf monitoring based on @RestController, @Controller, @Service, @Async, @Scheduled, @MonitoredWithSpring,voidsetEnabled(boolean enabled) Sets whether JavaMelody should be enabled within the application.voidsetExcludedDatasources(String excludedDatasources) Sets a comma-separated list of data source names which should be excluded from monitoring.voidsetInitParameters(Map<String, String> initParameters) Sets a map of initialization parameters to be passed to the JavaMelody monitoring filter.voidsetManagementEndpointMonitoringEnabled(boolean managementEndpointEnabled) Sets whether /monitoring should be enabled for reports in the management http port instead of on the application http port.voidsetSpringMonitoringEnabled(boolean springMonitoringEnabled) If monitoring based on @RestController, @Controller, @Service, @Async, @Scheduled, @MonitoredWithSpring,toString()
-
Field Details
-
PREFIX
Prefix of properties names.- See Also:
-
-
Constructor Details
-
JavaMelodyConfigurationProperties
public JavaMelodyConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns if JavaMelody should be enabled within the application.- Returns:
trueif JavaMelody should be enabled, otherwisefalse. Default:true
-
setEnabled
public void setEnabled(boolean enabled) Sets whether JavaMelody should be enabled within the application.- Parameters:
enabled-trueif JavaMelody should be enabled, otherwisefalse.
-
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
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
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
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
-