Package deu.cse.spring_webmail.james
Class JamesAdminHealth
java.lang.Object
deu.cse.spring_webmail.james.JamesAdminHealth
James Admin Health Check
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis Api lists all the available health checks.Check all components
-
Field Details
-
restTemplate
org.springframework.web.client.RestTemplate restTemplate -
jamesWebAdminUrl
James Web Admin URL -
jamesWebAdminPort
James Web Admin Port
-
-
Constructor Details
-
JamesAdminHealth
public JamesAdminHealth()
-
-
Method Details
-
checkAllComponents
Check all componentsThis endpoint is simple for now and is just returning the http status code corresponding to the state of checks (see below). The user has to check in the logs in order to have more information about failing checks.
-
allHealthCheck
This Api lists all the available health checks.- Returns:
- HealthDto
-