public class HealthCheckFilter extends Object
HealthCheck
services.
Once this filter object and the returned health check services are no longer
be used dispose()
should be called, to free the service
references.
This class is not thread safe and instances shouldn't be used concurrently
from different threads.Modifier and Type | Field and Description |
---|---|
static String |
OMIT_PREFIX |
Constructor and Description |
---|
HealthCheckFilter(org.osgi.framework.BundleContext bc)
Create a new filter object
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose all used service references
|
List<HealthCheck> |
getTaggedHealthChecks(String... tags)
Get all health check services with one of the supplied tags.
|
org.osgi.framework.ServiceReference[] |
getTaggedHealthCheckServiceReferences(boolean combineWithOr,
String... tags)
Get all service references for health check services with one of the supplied tags.
|
org.osgi.framework.ServiceReference[] |
getTaggedHealthCheckServiceReferences(String... tags)
Get all service references for health check services with one of the supplied tags.
|
public static final String OMIT_PREFIX
public HealthCheckFilter(org.osgi.framework.BundleContext bc)
public List<HealthCheck> getTaggedHealthChecks(String... tags)
public org.osgi.framework.ServiceReference[] getTaggedHealthCheckServiceReferences(String... tags)
public org.osgi.framework.ServiceReference[] getTaggedHealthCheckServiceReferences(boolean combineWithOr, String... tags)
combineWithOr
- If true will return all health checks that have at least one of the tags set.
If false will return only health checks that have all given tags assigned.tags
- the tags to look forpublic void dispose()
Copyright © 2017 The Apache Software Foundation. All rights reserved.