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 voidactivate(org.apache.felix.hc.core.impl.executor.HealthCheckExecutorImplConfiguration configuration, org.osgi.framework.BundleContext bundleContext)protected voidconfigure(org.apache.felix.hc.core.impl.executor.HealthCheckExecutorImplConfiguration configuration)protected voiddeactivate()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.HealthCheckExecutionResultexecute(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 voidmodified(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 referencesvoidserviceChanged(org.osgi.framework.ServiceEvent event)voidsetLongRunningFutureThresholdForRedMs(long longRunningFutureThresholdForRedMs)voidsetTimeoutInMs(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:
serviceChangedin 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:
executein 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:
executein 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:ExtendedHealthCheckExecutorinternal 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:ExtendedHealthCheckExecutorexecute single health check using cache, used by JMX- Specified by:
executein 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:ExtendedHealthCheckExecutorinternal interface to execute checks for service references- Specified by:
executein interfaceExtendedHealthCheckExecutor- See Also:
ExtendedHealthCheckExecutor.execute(ServiceReference[], HealthCheckExecutionOptions)
-
setTimeoutInMs
public void setTimeoutInMs(long timeoutInMs)
-
setLongRunningFutureThresholdForRedMs
public void setLongRunningFutureThresholdForRedMs(long longRunningFutureThresholdForRedMs)
-
-