Package net.targetr.rc.monitoring.health
Class WebSocketHealth
java.lang.Object
net.targetr.rc.monitoring.health.WebSocketHealth
Continuously streams server host to a WebSocket.
- Author:
- Dr Michael Gardiner
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketHealth(HttpRequest httpReq) Constructs a new handler to stream health information via WebSocket. -
Method Summary
Modifier and TypeMethodDescriptionInitiates the WebSocket upgrade response.
-
Constructor Details
-
WebSocketHealth
Constructs a new handler to stream health information via WebSocket.- Parameters:
httpReq- the incoming upgrade request
-
-
Method Details
-
generateResponse
Initiates the WebSocket upgrade response.- Returns:
- the WebSocket response
- Throws:
IOException- if an error occurs during upgrade
-