Class HealthCheckExecutorImpl
- java.lang.Object
-
- org.apache.felix.hc.core.impl.executor.HealthCheckExecutorImpl
-
- All Implemented Interfaces:
EventListener
,org.apache.felix.hc.api.execution.HealthCheckExecutor
,ExtendedHealthCheckExecutor
,org.osgi.framework.ServiceListener
public class HealthCheckExecutorImpl extends Object implements ExtendedHealthCheckExecutor, org.osgi.framework.ServiceListener
Runs health checks for a given list of tags in parallel.
-
-
Constructor Summary
Constructors Constructor Description HealthCheckExecutorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(org.apache.felix.hc.core.impl.executor.HealthCheckExecutorImplConfiguration configuration, org.osgi.framework.BundleContext bundleContext)
protected void
configure(org.apache.felix.hc.core.impl.executor.HealthCheckExecutorImplConfiguration configuration)
protected void
deactivate()
List<org.apache.felix.hc.api.execution.HealthCheckExecutionResult>
execute(org.apache.felix.hc.api.execution.HealthCheckSelector selector)
List<org.apache.felix.hc.api.execution.HealthCheckExecutionResult>
execute(org.apache.felix.hc.api.execution.HealthCheckSelector selector, org.apache.felix.hc.api.execution.HealthCheckExecutionOptions options)
org.apache.felix.hc.api.execution.HealthCheckExecutionResult
execute(org.osgi.framework.ServiceReference<org.apache.felix.hc.api.HealthCheck> ref)
execute single health check using cache, used by JMXList<org.apache.felix.hc.api.execution.HealthCheckExecutionResult>
execute(org.osgi.framework.ServiceReference<org.apache.felix.hc.api.HealthCheck>[] healthCheckReferences, org.apache.felix.hc.api.execution.HealthCheckExecutionOptions options)
internal interface to execute checks for service referencesprotected void
modified(org.apache.felix.hc.core.impl.executor.HealthCheckExecutorImplConfiguration configuration)
org.osgi.framework.ServiceReference<org.apache.felix.hc.api.HealthCheck>[]
selectHealthCheckReferences(org.apache.felix.hc.api.execution.HealthCheckSelector selector, org.apache.felix.hc.api.execution.HealthCheckExecutionOptions options)
internal interface to retrieve service referencesvoid
serviceChanged(org.osgi.framework.ServiceEvent event)
void
setLongRunningFutureThresholdForRedMs(long longRunningFutureThresholdForRedMs)
void
setTimeoutInMs(long timeoutInMs)
-
-
-
Method Detail
-
activate
protected final void activate(org.apache.felix.hc.core.impl.executor.HealthCheckExecutorImplConfiguration configuration, org.osgi.framework.BundleContext bundleContext)
-
modified
protected final void modified(org.apache.felix.hc.core.impl.executor.HealthCheckExecutorImplConfiguration configuration)
-
deactivate
protected final void deactivate()
-
configure
protected final void configure(org.apache.felix.hc.core.impl.executor.HealthCheckExecutorImplConfiguration configuration)
-
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent event)
- Specified by:
serviceChanged
in interfaceorg.osgi.framework.ServiceListener
-
execute
public List<org.apache.felix.hc.api.execution.HealthCheckExecutionResult> execute(org.apache.felix.hc.api.execution.HealthCheckSelector selector)
- Specified by:
execute
in interfaceorg.apache.felix.hc.api.execution.HealthCheckExecutor
-
execute
public List<org.apache.felix.hc.api.execution.HealthCheckExecutionResult> execute(org.apache.felix.hc.api.execution.HealthCheckSelector selector, org.apache.felix.hc.api.execution.HealthCheckExecutionOptions options)
- Specified by:
execute
in interfaceorg.apache.felix.hc.api.execution.HealthCheckExecutor
-
selectHealthCheckReferences
public org.osgi.framework.ServiceReference<org.apache.felix.hc.api.HealthCheck>[] selectHealthCheckReferences(org.apache.felix.hc.api.execution.HealthCheckSelector selector, org.apache.felix.hc.api.execution.HealthCheckExecutionOptions options)
Description copied from interface:ExtendedHealthCheckExecutor
internal interface to retrieve service references
-
execute
public org.apache.felix.hc.api.execution.HealthCheckExecutionResult execute(org.osgi.framework.ServiceReference<org.apache.felix.hc.api.HealthCheck> ref)
Description copied from interface:ExtendedHealthCheckExecutor
execute single health check using cache, used by JMX- Specified by:
execute
in interfaceExtendedHealthCheckExecutor
- See Also:
ExtendedHealthCheckExecutor.execute(org.osgi.framework.ServiceReference)
-
execute
public List<org.apache.felix.hc.api.execution.HealthCheckExecutionResult> execute(org.osgi.framework.ServiceReference<org.apache.felix.hc.api.HealthCheck>[] healthCheckReferences, org.apache.felix.hc.api.execution.HealthCheckExecutionOptions options)
Description copied from interface:ExtendedHealthCheckExecutor
internal interface to execute checks for service references- Specified by:
execute
in interfaceExtendedHealthCheckExecutor
- See Also:
ExtendedHealthCheckExecutor.execute(ServiceReference[], HealthCheckExecutionOptions)
-
setTimeoutInMs
public void setTimeoutInMs(long timeoutInMs)
-
setLongRunningFutureThresholdForRedMs
public void setLongRunningFutureThresholdForRedMs(long longRunningFutureThresholdForRedMs)
-
-