Class HealthCheckFilter


  • @Deprecated
    @ProviderType
    public class HealthCheckFilter
    extends java.lang.Object
    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 Detail

      • OMIT_PREFIX

        public static final java.lang.String OMIT_PREFIX
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • HealthCheckFilter

        public HealthCheckFilter​(BundleContext bc)
        Deprecated.
        Create a new filter object
    • Method Detail

      • getTaggedHealthChecks

        @Deprecated
        public java.util.List<HealthCheck> getTaggedHealthChecks​(java.lang.String... tags)
        Deprecated.
        use getHealthChecks() instead
        Get 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
        public ServiceReference[] getTaggedHealthCheckServiceReferences​(java.lang.String... tags)
        Deprecated.
        use getHealthCheckServiceReferences() instead
        Get 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,
                                                                        java.lang.String... tags)
        Deprecated.
        use getHealthCheckServiceReferences() instead
        Get 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