Class IdServerHealth

java.lang.Object
com.io7m.idstore.server.service.health.IdServerHealth
All Implemented Interfaces:
com.io7m.repetoir.core.RPServiceType, AutoCloseable

public final class IdServerHealth extends Object implements com.io7m.repetoir.core.RPServiceType, AutoCloseable
The server health service.
  • Method Details

    • statusOKText

      public static String statusOKText()
      Returns:
      The string used to indicate a healthy server
    • create

      public static IdServerHealth create(com.io7m.repetoir.core.RPServiceDirectoryType services)
      The server health service.
      Parameters:
      services - The services
      Returns:
      The health service
    • status

      public String status()
      Returns:
      The current health status
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • description

      public String description()
      Specified by:
      description in interface com.io7m.repetoir.core.RPServiceType
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable