@Service(value={org.apache.sling.hc.api.execution.HealthCheckExecutor.class,ExtendedHealthCheckExecutor.class}) public class HealthCheckExecutorImpl extends Object implements ExtendedHealthCheckExecutor, org.osgi.framework.ServiceListener
Modifier and Type | Field and Description |
---|---|
static String |
PROP_LONGRUNNING_FUTURE_THRESHOLD_CRITICAL_MS |
static String |
PROP_RESULT_CACHE_TTL_MS |
static String |
PROP_TIMEOUT_MS |
Constructor and Description |
---|
HealthCheckExecutorImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(Map<String,Object> properties,
org.osgi.framework.BundleContext bundleContext) |
protected void |
deactivate() |
List<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> |
execute(org.apache.sling.hc.api.execution.HealthCheckExecutionOptions options,
String... tags) |
List<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> |
execute(org.apache.sling.hc.api.execution.HealthCheckSelector selector) |
List<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> |
execute(org.apache.sling.hc.api.execution.HealthCheckSelector selector,
org.apache.sling.hc.api.execution.HealthCheckExecutionOptions options) |
org.apache.sling.hc.api.execution.HealthCheckExecutionResult |
execute(org.osgi.framework.ServiceReference ref) |
List<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> |
execute(String... tags) |
protected void |
modified(Map<String,Object> properties) |
void |
serviceChanged(org.osgi.framework.ServiceEvent event) |
void |
setLongRunningFutureThresholdForRedMs(long longRunningFutureThresholdForRedMs) |
void |
setTimeoutInMs(long timeoutInMs) |
public static final String PROP_TIMEOUT_MS
public static final String PROP_LONGRUNNING_FUTURE_THRESHOLD_CRITICAL_MS
public static final String PROP_RESULT_CACHE_TTL_MS
@Activate protected final void activate(Map<String,Object> properties, org.osgi.framework.BundleContext bundleContext)
@Deactivate protected final void deactivate()
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
public List<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> execute(org.apache.sling.hc.api.execution.HealthCheckSelector selector)
execute
in interface org.apache.sling.hc.api.execution.HealthCheckExecutor
public List<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> execute(org.apache.sling.hc.api.execution.HealthCheckSelector selector, org.apache.sling.hc.api.execution.HealthCheckExecutionOptions options)
execute
in interface org.apache.sling.hc.api.execution.HealthCheckExecutor
public List<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> execute(String... tags)
execute
in interface org.apache.sling.hc.api.execution.HealthCheckExecutor
HealthCheckExecutor.execute(String[])
public List<org.apache.sling.hc.api.execution.HealthCheckExecutionResult> execute(org.apache.sling.hc.api.execution.HealthCheckExecutionOptions options, String... tags)
execute
in interface org.apache.sling.hc.api.execution.HealthCheckExecutor
HealthCheckExecutor.execute(HealthCheckExecutionOptions, String...)
public org.apache.sling.hc.api.execution.HealthCheckExecutionResult execute(org.osgi.framework.ServiceReference ref)
execute
in interface ExtendedHealthCheckExecutor
ExtendedHealthCheckExecutor.execute(org.osgi.framework.ServiceReference)
public void setTimeoutInMs(long timeoutInMs)
public void setLongRunningFutureThresholdForRedMs(long longRunningFutureThresholdForRedMs)
Copyright © 2013–2017 The Apache Software Foundation. All rights reserved.