Class RRServiceHealthCheck

java.lang.Object
org.gcube.informationsystem.resourceregistry.health.RRServiceHealthCheck
All Implemented Interfaces:
org.gcube.common.health.api.HealthCheck

public class RRServiceHealthCheck extends Object implements org.gcube.common.health.api.HealthCheck
Health check implementation indicating the general availability and readiness of the Resource Registry Service.
Author:
Luca Frosini (ISTI - CNR)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Label representing the service in health check reports
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gcube.common.health.api.response.HealthCheckResponse
    Evaluates the current operational status of the Resource Registry service.
    Returns the name or label associated with this specific health check.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RR_SERVICE_LABEL

      public static final String RR_SERVICE_LABEL
      Label representing the service in health check reports
      See Also:
  • Constructor Details

    • RRServiceHealthCheck

      public RRServiceHealthCheck()
  • Method Details

    • getName

      public String getName()
      Returns the name or label associated with this specific health check.
      Specified by:
      getName in interface org.gcube.common.health.api.HealthCheck
      Returns:
      The label for the Resource Registry Service
    • check

      public org.gcube.common.health.api.response.HealthCheckResponse check()
      Evaluates the current operational status of the Resource Registry service.
      Specified by:
      check in interface org.gcube.common.health.api.HealthCheck
      Returns:
      A HealthCheckResponse indicating whether the service is UP or DOWN.