Class HealthService

java.lang.Object
org.openremote.manager.system.HealthService
All Implemented Interfaces:
org.openremote.model.ContainerService

public class HealthService extends Object implements org.openremote.model.ContainerService
This service is here to initialise the discovered HealthStatusProviders and (StatusResource
  • Field Details

    • LOG

      public static final System.Logger LOG
    • OR_METRICS_PORT

      public static final String OR_METRICS_PORT
      See Also:
    • OR_METRICS_PORT_DEFAULT

      public static final int OR_METRICS_PORT_DEFAULT
      See Also:
    • healthStatusProviderList

      protected List<org.openremote.model.system.HealthStatusProvider> healthStatusProviderList
    • metricsEnabled

      protected boolean metricsEnabled
    • metricsServer

      protected io.prometheus.metrics.exporter.httpserver.HTTPServer metricsServer
  • Constructor Details

    • HealthService

      public HealthService()
  • Method Details

    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface org.openremote.model.ContainerService
    • init

      public void init(org.openremote.model.Container container) throws Exception
      Specified by:
      init in interface org.openremote.model.ContainerService
      Throws:
      Exception
    • start

      public void start(org.openremote.model.Container container) throws Exception
      Specified by:
      start in interface org.openremote.model.ContainerService
      Throws:
      Exception
    • stop

      public void stop(org.openremote.model.Container container) throws Exception
      Specified by:
      stop in interface org.openremote.model.ContainerService
      Throws:
      Exception