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/06/05 07:21:01 UTC
[jira] [Commented] (SLING-3624) Add SlingHealthCheck annotation
[ https://issues.apache.org/jira/browse/SLING-3624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14018486#comment-14018486 ]
Georg Henzler commented on SLING-3624:
--------------------------------------
[~bjoernweide] I just noticed that the property hc.mbean.name is missing in the annotation - it should be able to generate all HC-specific properties as declared in the HealthCheck interface (http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/healthcheck/core/src/main/java/org/apache/sling/hc/api/HealthCheck.java)
> Add SlingHealthCheck annotation
> -------------------------------
>
> Key: SLING-3624
> URL: https://issues.apache.org/jira/browse/SLING-3624
> Project: Sling
> Issue Type: Improvement
> Components: Health Check
> Affects Versions: Health Check Core 1.1.0
> Reporter: Bjoern Weide
> Priority: Minor
> Fix For: Health Check Core 1.1.2
>
> Attachments: slinghealthcheck_annotation.txt
>
>
> Add a SlingHealthCheck annotation (similar to SlingServlet). The metatype property should set to true per default since its probably common to configure healthchecks. Usage examples:
> {code:title=Examples|borderStyle=solid}
> @SlingHealthCheck(name = BundlesStartedCheck.HC_NAME, label = "Apache Sling Health Check - " + BundlesStartedCheck.HC_NAME, description = "Checks whether all bundles are started.", tags = "osgi")
> @SlingHealthCheck(name = DiskSpaceCheck.HC_NAME, label = "Apache Sling Health Check - " + DiskSpaceCheck.HC_NAME,
> description = "Checks whether enough disk space is available.", tags = "resources", configurationFactory = true,
> configurationPolicy = ConfigurationPolicy.REQUIRE)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)