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(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 void dispose()
Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.