Package com.io7m.idstore.server.service.health

# 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 Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `static IdServerHealth`
  `create(com.io7m.repetoir.core.RPServiceDirectoryType services)`
  The server health service.
  `String`
  `description()`
  `String`
  `status()`
  `static String`
  `statusOKText()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## 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`