Package net.ionite.docval.server
Class HealthService
java.lang.Object
net.ionite.docval.server.HealthService
The HealthService tracks information (startup/startup
complete/shutdown) about the server status, if enabled.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether the server is shutting down, i.e.booleanCheck whether the server is ready to accept requests, i.e.voidMark that a shutdown has been requested and the server is shutting downvoidMark that the startup has been completed, and the server is ready to accept requests
-
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
-