Class SiteHealthCheckServiceImpl

java.lang.Object
org.craftercms.engine.service.impl.SiteHealthCheckServiceImpl
All Implemented Interfaces:
SiteHealthCheckService

public class SiteHealthCheckServiceImpl extends Object implements SiteHealthCheckService
Default SiteHealthCheckService implementation.
  • Field Details

  • Constructor Details

  • Method Details

    • healthCheck

      public boolean healthCheck()
      Description copied from interface: SiteHealthCheckService
      Determine if current engine has valid healthy sites Engine has valid healthy sites when: 1. There are no sites at all 2. There is one or more valid healthy site
      Specified by:
      healthCheck in interface SiteHealthCheckService
      Returns:
      true if engine has healthy sites, false otherwise
    • healthCheck

      public boolean healthCheck(String site)
      Description copied from interface: SiteHealthCheckService
      Performs the health checks for the given site.
      Specified by:
      healthCheck in interface SiteHealthCheckService
      Parameters:
      site - the site to check.
      Returns:
      true if all the health checks pass, false otherwise.