Package org.apache.camel.main
Class HealthConfigurationProperties
- java.lang.Object
-
- org.apache.camel.main.HealthConfigurationProperties
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.camel.spi.BootstrapCloseable
@Configurer(bootstrap=true) public class HealthConfigurationProperties extends Object implements org.apache.camel.spi.BootstrapCloseable
Global configuration for Health Check
-
-
Constructor Summary
Constructors Constructor Description HealthConfigurationProperties(MainConfigurationProperties parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthConfigurationPropertiesaddConfig(String id, HealthCheckConfigurationProperties config)AdditionalHealthConfigurationPropertiesfor fine grained configuration of health checks.voidclose()MainConfigurationPropertiesend()Map<String,HealthCheckConfigurationProperties>getConfig()BooleangetConsumersEnabled()BooleangetContextEnabled()BooleangetEnabled()BooleangetRegistryEnabled()BooleangetRoutesEnabled()voidsetConfig(Map<String,HealthCheckConfigurationProperties> config)Set additionalHealthConfigurationPropertiesfor fine grained configuration of health checks.voidsetConsumersEnabled(Boolean consumersEnabled)Whether consumers health check is enabledvoidsetContextEnabled(Boolean contextEnabled)Whether context health check is enabledvoidsetEnabled(Boolean enabled)Whether health check is enabled globallyvoidsetRegistryEnabled(Boolean registryEnabled)Whether registry health check is enabledvoidsetRoutesEnabled(Boolean routesEnabled)Whether routes health check is enabledHealthConfigurationPropertieswithContextEnabled(boolean contextEnabled)Whether context health check is enabledHealthConfigurationPropertieswithEnabled(boolean enabled)Whether health check is enabled globallyHealthConfigurationPropertieswithRegistryEnabled(boolean registryEnabled)Whether registry health check is enabledHealthConfigurationPropertieswithRoutesEnabled(boolean routesEnabled)Whether routes health check is enabled
-
-
-
Constructor Detail
-
HealthConfigurationProperties
public HealthConfigurationProperties(MainConfigurationProperties parent)
-
-
Method Detail
-
end
public MainConfigurationProperties end()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getEnabled
public Boolean getEnabled()
-
setEnabled
public void setEnabled(Boolean enabled)
Whether health check is enabled globally
-
getContextEnabled
public Boolean getContextEnabled()
-
setContextEnabled
public void setContextEnabled(Boolean contextEnabled)
Whether context health check is enabled
-
getRoutesEnabled
public Boolean getRoutesEnabled()
-
setRoutesEnabled
public void setRoutesEnabled(Boolean routesEnabled)
Whether routes health check is enabled
-
getConsumersEnabled
public Boolean getConsumersEnabled()
-
setConsumersEnabled
public void setConsumersEnabled(Boolean consumersEnabled)
Whether consumers health check is enabled
-
getRegistryEnabled
public Boolean getRegistryEnabled()
-
setRegistryEnabled
public void setRegistryEnabled(Boolean registryEnabled)
Whether registry health check is enabled
-
getConfig
public Map<String,HealthCheckConfigurationProperties> getConfig()
-
setConfig
public void setConfig(Map<String,HealthCheckConfigurationProperties> config)
Set additionalHealthConfigurationPropertiesfor fine grained configuration of health checks.
-
withEnabled
public HealthConfigurationProperties withEnabled(boolean enabled)
Whether health check is enabled globally
-
withContextEnabled
public HealthConfigurationProperties withContextEnabled(boolean contextEnabled)
Whether context health check is enabled
-
withRoutesEnabled
public HealthConfigurationProperties withRoutesEnabled(boolean routesEnabled)
Whether routes health check is enabled
-
withRegistryEnabled
public HealthConfigurationProperties withRegistryEnabled(boolean registryEnabled)
Whether registry health check is enabled
-
addConfig
public HealthConfigurationProperties addConfig(String id, HealthCheckConfigurationProperties config)
AdditionalHealthConfigurationPropertiesfor fine grained configuration of health checks.
-
-