Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-9245

Invert control between liveness/readiness HealthChecks and ModuleManager

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • core
    • None

    Description

      currently:

      • ad-hoc inplace HealthCheck lambdas within ModuleManager startup method
      • registered programmatically via HealthCheckRegistry#register...

      expected:

      • extract HealthCheck impl to separate class, taking ModuleManager as constructor parameter (itself exposing its state flags for liveness/readiness via getters)
      • still registered programmatically as above, but possibly earlier in ModuleManagerImpl constructor, passing itself as reference
        • later on, this could be "auto-wired" after Guice integration for auto-discovery & injection within HealthChecks (MAGNOLIA-9247)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mgeljic Mikaël Geljić
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoR