@Properties(value={@Property(name="hc.name",label="Name",description="Name of this health check."),@Property(name="hc.tags",unbounded=ARRAY,label="Tags",description="List of tags for this health check, used to select subsets of health checks for execution e.g. by a composite health check."),@Property(name="hc.mbean.name",label="MBean Name",description="Name of the MBean to create for this health check. If empty, no MBean is registered.")}) @Service(value=HealthCheck.class) public class CompositeHealthCheck extends Object implements HealthCheck
HealthCheck
that executes a number of other HealthChecks,
selected by their tags, and merges their Results.ASYNC_CRON_EXPRESSION, MBEAN_NAME, NAME, TAGS
Constructor and Description |
---|
CompositeHealthCheck() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext ctx) |
protected void |
deactivate() |
Result |
execute()
Execute this health check and return a
Result
This is meant to execute quickly, access to external
systems, for example, should be managed asynchronously. |
@Activate protected void activate(org.osgi.service.component.ComponentContext ctx)
@Deactivate protected void deactivate()
public Result execute()
HealthCheck
Result
This is meant to execute quickly, access to external
systems, for example, should be managed asynchronously.execute
in interface HealthCheck
Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.