public class DefaultHealthCheckRegistry extends Object implements HealthCheckRegistry
Constructor and Description |
---|
DefaultHealthCheckRegistry() |
DefaultHealthCheckRegistry(CamelContext camelContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
addRepository(HealthCheckRepository repository)
Add an Health Check repository.
|
CamelContext |
getCamelContext()
Get the
CamelContext |
Collection<HealthCheckRepository> |
getRepositories()
Get a collection of health check repositories.
|
boolean |
register(HealthCheck check)
Registers a service
HealthCheck . |
boolean |
removeRepository(HealthCheckRepository repository)
Remove an Health Check repository.
|
void |
setCamelContext(CamelContext camelContext)
Injects the
CamelContext |
void |
setRepositories(Collection<HealthCheckRepository> repositories)
Set the health check repositories to use..
|
Stream<HealthCheck> |
stream()
Returns a sequential
Stream with the known HealthCheck
as its source. |
boolean |
unregister(HealthCheck check)
Unregisters a service
HealthCheck . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCheck, getCheckIDs
public DefaultHealthCheckRegistry()
public DefaultHealthCheckRegistry(CamelContext camelContext)
public final void setCamelContext(CamelContext camelContext)
CamelContextAware
CamelContext
setCamelContext
in interface CamelContextAware
camelContext
- the Camel contextpublic final CamelContext getCamelContext()
CamelContextAware
CamelContext
getCamelContext
in interface CamelContextAware
public boolean register(HealthCheck check)
HealthCheckRegistry
HealthCheck
.register
in interface HealthCheckRegistry
public boolean unregister(HealthCheck check)
HealthCheckRegistry
HealthCheck
.unregister
in interface HealthCheckRegistry
public void setRepositories(Collection<HealthCheckRepository> repositories)
HealthCheckRegistry
setRepositories
in interface HealthCheckRegistry
public Collection<HealthCheckRepository> getRepositories()
HealthCheckRegistry
getRepositories
in interface HealthCheckRegistry
public boolean addRepository(HealthCheckRepository repository)
HealthCheckRegistry
addRepository
in interface HealthCheckRegistry
public boolean removeRepository(HealthCheckRepository repository)
HealthCheckRegistry
removeRepository
in interface HealthCheckRegistry
public Stream<HealthCheck> stream()
HealthCheckRepository
Stream
with the known HealthCheck
as its source.stream
in interface HealthCheckRepository
Apache Camel