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(extended=true)
public class HealthConfigurationProperties
extends Object
implements org.apache.camel.spi.BootstrapCloseable
Global configuration for Health Check
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
end()
void
setConsumersEnabled
(Boolean consumersEnabled) Whether consumers health check is enabledvoid
setEnabled
(Boolean enabled) Whether health check is enabled globallyvoid
setExcludePattern
(String excludePattern) Pattern to exclude health checks from being invoked by Camel when checking healths.void
setExposureLevel
(String exposureLevel) Sets the level of details to exposure as result of invoking health checks.void
setInitialState
(String initialState) The initial state of health-checks (readiness).void
setProducersEnabled
(Boolean producersEnabled) Whether producers health check is enabledvoid
setRegistryEnabled
(Boolean registryEnabled) Whether registry health check is enabledvoid
setRoutesEnabled
(Boolean routesEnabled) Whether routes health check is enabledwithEnabled
(boolean enabled) Whether health check is enabled globallywithExcludePattern
(String excludePattern) Pattern to exclude health checks from being invoked by Camel when checking healths.withExposureLevel
(String exposureLevel) Sets the level of details to exposure as result of invoking health checks.withInitialState
(String initialState) The initial state of health-checks (readiness).withRegistryEnabled
(boolean registryEnabled) Whether registry health check is enabledwithRoutesEnabled
(boolean routesEnabled) Whether routes health check is enabled
-
Constructor Details
-
HealthConfigurationProperties
-
-
Method Details
-
end
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getEnabled
-
setEnabled
Whether health check is enabled globally -
getRoutesEnabled
-
setRoutesEnabled
Whether routes health check is enabled -
getConsumersEnabled
-
setConsumersEnabled
Whether consumers health check is enabled -
getProducersEnabled
-
setProducersEnabled
Whether producers health check is enabled -
getRegistryEnabled
-
setRegistryEnabled
Whether registry health check is enabled -
getExcludePattern
-
setExcludePattern
Pattern to exclude health checks from being invoked by Camel when checking healths. Multiple patterns can be separated by comma. -
getExposureLevel
-
setExposureLevel
Sets the level of details to exposure as result of invoking health checks. There are the following levels: full, default, oneline The full level will include all details and status from all the invoked health checks. The default level will report UP if everything is okay, and only include detailed information for health checks that was DOWN. The oneline level will only report either UP or DOWN. -
getInitialState
-
setInitialState
The initial state of health-checks (readiness). There are the following states: UP, DOWN, UNKNOWN. By default, the state is DOWN, is regarded as being pessimistic/careful. This means that the overall health checks may report as DOWN during startup and then only if everything is up and running flip to being UP. Setting the initial state to UP, is regarded as being optimistic. This means that the overall health checks may report as UP during startup and then if a consumer or other service is in fact un-healthy, then the health-checks can flip being DOWN. Setting the state to UNKNOWN means that some health-check would be reported in unknown state, especially during early bootstrap where a consumer may not be fully initialized or validated a connection to a remote system. This option allows to pre-configure the state for different modes. -
withEnabled
Whether health check is enabled globally -
withRoutesEnabled
Whether routes health check is enabled -
withRegistryEnabled
Whether registry health check is enabled -
withExcludePattern
Pattern to exclude health checks from being invoked by Camel when checking healths. Multiple patterns can be separated by comma. -
withExposureLevel
Sets the level of details to exposure as result of invoking health checks. There are the following levels: full, default, oneline The full level will include all details and status from all the invoked health checks. The default level will report UP if everything is okay, and only include detailed information for health checks that was DOWN. The oneline level will only report either UP or DOWN. -
withInitialState
The initial state of health-checks (readiness). There are the following states: UP, DOWN, UNKNOWN. By default, the state is DOWN, is regarded as being pessimistic/careful. This means that the overall health checks may report as DOWN during startup and then only if everything is up and running flip to being UP. Setting the initial state to UP, is regarded as being optimistic. This means that the overall health checks may report as UP during startup and then if a consumer or other service is in fact un-healthy, then the health-checks can flip being DOWN. Setting the state to UNKNOWN means that some health-check would be reported in unknown state, especially during early bootstrap where a consumer may not be fully initialized or validated a connection to a remote system. This option allows to pre-configure the state for different modes.
-