Class JamesAdminHealth

java.lang.Object
deu.cse.spring_webmail.james.JamesAdminHealth

@Component public class JamesAdminHealth extends Object
James Admin Health Check
  • Field Details

    • restTemplate

      org.springframework.web.client.RestTemplate restTemplate
    • jamesWebAdminUrl

      @Value("${james.admin.host}") String jamesWebAdminUrl
      James Web Admin URL
    • jamesWebAdminPort

      @Value("${james.admin.port}") Integer jamesWebAdminPort
      James Web Admin Port
  • Constructor Details

    • JamesAdminHealth

      public JamesAdminHealth()
  • Method Details

    • checkAllComponents

      public HealthDto checkAllComponents()
      Check all components

      This 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

      public HealthDto allHealthCheck()
      This Api lists all the available health checks.
      Returns:
      HealthDto