Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3624

Add SlingHealthCheck annotation

    XMLWordPrintableJSON

Details

    Description

      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:

      Examples
      @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)
      

      Attachments

        Activity

          People

            bdelacretaz Bertrand Delacretaz
            bjoernweide Bjoern Weide
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: