Class HealthService

java.lang.Object
net.ionite.docval.server.HealthService

public class HealthService extends Object
The HealthService tracks information (startup/startup complete/shutdown) about the server status, if enabled.
  • Constructor Details

    • HealthService

      public HealthService()
      Default constructor
  • Method Details

    • setStartupComplete

      public void setStartupComplete()
      Mark that the startup has been completed, and the server is ready to accept requests
    • getStartupComplete

      public boolean getStartupComplete()
      Check whether the server is ready to accept requests, i.e. whether setStartupComplete() has been called
      Returns:
      true if setStartupComplete() has been called, false otherwise
    • setShutdownRequested

      public void setShutdownRequested()
      Mark that a shutdown has been requested and the server is shutting down
    • getShutdownRequested

      public boolean getShutdownRequested()
      Check whether the server is shutting down, i.e. whether setShutdownRequested() has been called
      Returns:
      true if setShutdownRequested() has been called, false otherwise