@JdkService(value="health-check-registry")
@DeferredContextBinding
public class DefaultHealthCheckRegistry
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.health.HealthCheckRegistry
HealthCheckRegistry.| Constructor and Description |
|---|
DefaultHealthCheckRegistry() |
DefaultHealthCheckRegistry(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
org.apache.camel.CamelContext |
getCamelContext() |
String |
getId() |
Optional<org.apache.camel.health.HealthCheckRepository> |
getRepository(String id)
Returns the repository identified by the given
id if available. |
boolean |
isEnabled() |
boolean |
register(Object obj) |
Object |
resolveById(String id) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setEnabled(boolean enabled) |
void |
setId(String id) |
Stream<org.apache.camel.health.HealthCheck> |
stream() |
boolean |
unregister(Object obj) |
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getCheck, getCheckIDspublic DefaultHealthCheckRegistry()
public DefaultHealthCheckRegistry(org.apache.camel.CamelContext camelContext)
public String getId()
getId in interface org.apache.camel.spi.HasIdpublic void setId(String id)
setId in interface org.apache.camel.spi.IdAwarepublic boolean isEnabled()
isEnabled in interface org.apache.camel.health.HealthCheckRegistrypublic void setEnabled(boolean enabled)
setEnabled in interface org.apache.camel.health.HealthCheckRegistryprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.service.BaseServiceExceptionpublic final void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic final org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic Object resolveById(String id)
resolveById in interface org.apache.camel.health.HealthCheckRegistrypublic boolean register(Object obj)
register in interface org.apache.camel.health.HealthCheckRegistrypublic boolean unregister(Object obj)
unregister in interface org.apache.camel.health.HealthCheckRegistrypublic Optional<org.apache.camel.health.HealthCheckRepository> getRepository(String id)
id if available.getRepository in interface org.apache.camel.health.HealthCheckRegistrypublic Stream<org.apache.camel.health.HealthCheck> stream()
stream in interface org.apache.camel.health.HealthCheckRegistryApache Camel