Class SiteHealthCheckServiceImpl
java.lang.Object
org.craftercms.engine.service.impl.SiteHealthCheckServiceImpl
- All Implemented Interfaces:
SiteHealthCheckService
Default
SiteHealthCheckService
implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSiteHealthCheckServiceImpl
(SiteListResolver siteListResolver, Collection<HealthCheck> healthChecks) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine if current engine has valid healthy sites Engine has valid healthy sites when: 1.boolean
healthCheck
(String site) Performs the health checks for the given site.
-
Field Details
-
siteListResolver
-
healthChecks
-
-
Constructor Details
-
SiteHealthCheckServiceImpl
@ConstructorProperties({"siteListResolver","healthChecks"}) public SiteHealthCheckServiceImpl(SiteListResolver siteListResolver, Collection<HealthCheck> healthChecks)
-
-
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 interfaceSiteHealthCheckService
- Returns:
- true if engine has healthy sites, false otherwise
-
healthCheck
Description copied from interface:SiteHealthCheckService
Performs the health checks for the given site.- Specified by:
healthCheck
in interfaceSiteHealthCheckService
- Parameters:
site
- the site to check.- Returns:
- true if all the health checks pass, false otherwise.
-