Class WebSocketSystemHealthCheckService
java.lang.Object
org.qubership.atp.environments.service.websocket.WebSocketSystemHealthCheckService
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketSystemHealthCheckService(SystemService systemService, HealthcheckFeignClient hcFeignClient) Creates service which calls ATP Healthcheck and receives server statuses. -
Method Summary
Modifier and TypeMethodDescriptioncheckHealth(UUID projectId, UUID environmentId, UUID systemId) Checks health of connections in provided system at ATP Healthcheck and saves to system.
-
Constructor Details
-
WebSocketSystemHealthCheckService
public WebSocketSystemHealthCheckService(SystemService systemService, HealthcheckFeignClient hcFeignClient) Creates service which calls ATP Healthcheck and receives server statuses.- Parameters:
systemService- service for saving results of checking.hcFeignClient- API to go to ATP Healthcheck.
-
-
Method Details
-
checkHealth
Checks health of connections in provided system at ATP Healthcheck and saves to system.- Parameters:
projectId- projectIdenvironmentId- environmentIdsystemId- systemId- Returns:
- DTO of saved system.
- Throws:
IOException- if JSON error during ATP Healthcheck response parsing occur.
-