Package org.apache.sling.hc.util
Class HealthCheckFilter
java.lang.Object
org.apache.sling.hc.util.HealthCheckFilter
Deprecated.
Select from available
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Deprecated.Dispose all used service referencesgetHealthChecks(HealthCheckSelector selector) Deprecated.Deprecated.getHealthCheckServiceReferences(HealthCheckSelector selector, boolean combineTagsWithOr) Deprecated.getTaggedHealthChecks(String... tags) Deprecated.use getHealthChecks() insteadgetTaggedHealthCheckServiceReferences(boolean combineWithOr, String... tags) Deprecated.use getHealthCheckServiceReferences() insteadDeprecated.use getHealthCheckServiceReferences() instead
-
Field Details
-
OMIT_PREFIX
Deprecated.- See Also:
-
-
Constructor Details
-
HealthCheckFilter
Deprecated.Create a new filter object
-
-
Method Details
-
getHealthChecks
Deprecated. -
getHealthCheckServiceReferences
Deprecated. -
getHealthCheckServiceReferences
public ServiceReference[] getHealthCheckServiceReferences(HealthCheckSelector selector, boolean combineTagsWithOr) Deprecated. -
getTaggedHealthChecks
Deprecated.use getHealthChecks() insteadGet all health check services with one of the supplied tags.- Returns:
- A list of services - might be the empty list if none matches
-
getTaggedHealthCheckServiceReferences
Deprecated.use getHealthCheckServiceReferences() insteadGet all service references for health check services with one of the supplied tags. Uses logical "and" to combine tags.- Returns:
- An array of service references - might be an empty error if none matches
-
getTaggedHealthCheckServiceReferences
@Deprecated public ServiceReference[] getTaggedHealthCheckServiceReferences(boolean combineWithOr, String... tags) Deprecated.use getHealthCheckServiceReferences() insteadGet all service references for health check services with one of the supplied tags.- Parameters:
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 for- Returns:
- An array of service references - might be an empty error if none matches
-
dispose
public void dispose()Deprecated.Dispose all used service references
-