- java.lang.Object
-
- net.morimekta.tiny.server.http.TinyHttpHandler
-
- net.morimekta.tiny.server.http.TinyHealthHttpHandler
-
- All Implemented Interfaces:
HttpHandler
public final class TinyHealthHttpHandler extends TinyHttpHandler
Simple HTTP handler for getting the healthiness of the entire tiny server.
-
-
Constructor Summary
Constructors Constructor Description TinyHealthHttpHandler(Map<String,TinyHealth.HealthCheck> healthChecks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(HttpExchange exchange)Handle a GET request.
-
-
-
Constructor Detail
-
TinyHealthHttpHandler
public TinyHealthHttpHandler(Map<String,TinyHealth.HealthCheck> healthChecks)
- Parameters:
healthChecks- Map of healthiness checks to be checked by the service.
-
-
Method Detail
-
doGet
protected void doGet(HttpExchange exchange) throws IOException
Description copied from class:TinyHttpHandlerHandle a GET request.- Overrides:
doGetin classTinyHttpHandler- Parameters:
exchange- The HTTP exchange.- Throws:
IOException- If failed to handle the request.
-
-