@Service(value={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() |
HealthCheckExecutionResult |
execute(org.osgi.framework.ServiceReference ref) |
List<HealthCheckExecutionResult> |
execute(String... tags)
Executes all health checks with the supplied list of tags.
|
protected void |
modified(Map<String,Object> properties) |
static String |
msHumanReadable(long millis) |
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<HealthCheckExecutionResult> execute(String... tags)
HealthCheckExecutor
execute
in interface HealthCheckExecutor
HealthCheckExecutor.execute(String[])
public HealthCheckExecutionResult execute(org.osgi.framework.ServiceReference ref)
execute
in interface ExtendedHealthCheckExecutor
ExtendedHealthCheckExecutor.execute(org.osgi.framework.ServiceReference)
public static String msHumanReadable(long millis)
public void setTimeoutInMs(long timeoutInMs)
public void setLongRunningFutureThresholdForRedMs(long longRunningFutureThresholdForRedMs)
Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.