@ConfigurationProperties(prefix="javamelody") public class JavaMelodyConfigurationProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX
Prefix of properties names.
|
| Constructor and Description |
|---|
JavaMelodyConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getExcludedDatasources()
Returns a comma-separated list of data source names which should be excluded from monitoring.
|
Map<String,String> |
getInitParameters()
Returns a map of initialization parameters to be passed to the JavaMelody monitoring filter.
|
boolean |
isEnabled()
Returns if JavaMelody should be enabled within the application.
|
boolean |
isManagementEndpointMonitoringEnabled()
Returns if /monitoring should be enabled for reports in the management http port instead of on the application http port.
|
boolean |
isSpringMonitoringEnabled()
If monitoring based on @RestController, @Controller, @Service, @Async, @Scheduled, @MonitoredWithSpring,
|
void |
setEnabled(boolean enabled)
Sets whether JavaMelody should be enabled within the application.
|
void |
setExcludedDatasources(String excludedDatasources)
Sets a comma-separated list of data source names which should be excluded from monitoring.
|
void |
setInitParameters(Map<String,String> initParameters)
Sets a map of initialization parameters to be passed to the JavaMelody monitoring filter.
|
void |
setManagementEndpointMonitoringEnabled(boolean managementEndpointEnabled)
Sets whether /monitoring should be enabled for reports in the management http port instead of on the application http port.
|
void |
setSpringMonitoringEnabled(boolean springMonitoringEnabled)
If monitoring based on @RestController, @Controller, @Service, @Async, @Scheduled, @MonitoredWithSpring,
|
String |
toString() |
public static final String PREFIX
public boolean isEnabled()
true if JavaMelody should be enabled, otherwise false. Default: truepublic void setEnabled(boolean enabled)
enabled - true if JavaMelody should be enabled, otherwise false.public String getExcludedDatasources()
public void setExcludedDatasources(String excludedDatasources)
excludedDatasources - Data source names to exclude from monitoring.public boolean isSpringMonitoringEnabled()
public void setSpringMonitoringEnabled(boolean springMonitoringEnabled)
springMonitoringEnabled - true or falsepublic boolean isManagementEndpointMonitoringEnabled()
public void setManagementEndpointMonitoringEnabled(boolean managementEndpointEnabled)
managementEndpointEnabled - true or falsepublic Map<String,String> getInitParameters()
public void setInitParameters(Map<String,String> initParameters)
initParameters - Initialization parameters for the JavaMelody monitoring filter.Copyright © 2023. All rights reserved.