You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Georg Henzler (JIRA)" <ji...@apache.org> on 2014/07/08 08:20:33 UTC

[jira] [Created] (SLING-3744) Make HCs sync/async behaviour configurable via service property

Georg Henzler created SLING-3744:
------------------------------------

             Summary: Make HCs sync/async behaviour configurable via service property
                 Key: SLING-3744
                 URL: https://issues.apache.org/jira/browse/SLING-3744
             Project: Sling
          Issue Type: New Feature
          Components: Health Check
            Reporter: Georg Henzler


Make HCs sync/async behaviour configurable via service property "hc.async.cronExpression". This allows operations to decide whether a check should be run synchronously or asynchronously (e.g. could be different for TEST and PROD). For checks that always have to run asynchronously, it simplifies the implementation significantly (see org.apache.sling.hc.samples.impl.AsyncHealthCheckSample from patch). 

The logic for registering/deregistering jobs for async HCs is in AsyncHealthCheckExecutor, HealthCheckExecutorImpl has only changed slightly in a way that it retrieves the results from  AsyncHealthCheckExecutor for checks configured to be asynchronous.



--
This message was sent by Atlassian JIRA
(v6.2#6252)