Package org.apache.camel.health
Interface HealthCheckRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addConfiguration(String id, HealthCheckConfiguration configuration)
Adds a health check configurationdefault Optional<HealthCheck>
getCheck(String id)
Returns the check identified by the givenid
if available.Map<String,HealthCheckConfiguration>
getConfigurations()
Configurations for health checks based on their idsboolean
isEnabled()
Set if the checks associated to this repository is enabled or not.void
setConfigurations(Map<String,HealthCheckConfiguration> configurations)
Configurations for health checks based on their idsvoid
setEnabled(boolean enabled)
Set if the checks associated to this repository is enabled or not.Stream<HealthCheck>
stream()
Returns a sequentialStream
with the knownHealthCheck
as its source.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Set if the checks associated to this repository is enabled or not.
-
setEnabled
void setEnabled(boolean enabled)
Set if the checks associated to this repository is enabled or not.
-
setConfigurations
void setConfigurations(Map<String,HealthCheckConfiguration> configurations)
Configurations for health checks based on their ids
-
getConfigurations
Map<String,HealthCheckConfiguration> getConfigurations()
Configurations for health checks based on their ids
-
addConfiguration
void addConfiguration(String id, HealthCheckConfiguration configuration)
Adds a health check configuration- Parameters:
id
- the health check id (can use patterns)configuration
- the configuration
-
stream
Stream<HealthCheck> stream()
Returns a sequentialStream
with the knownHealthCheck
as its source.
-
getCheck
default Optional<HealthCheck> getCheck(String id)
Returns the check identified by the givenid
if available.
-
-