Class SiteContextHealthCheck
java.lang.Object
org.craftercms.engine.service.health.AbstractHealthCheck
org.craftercms.engine.service.health.SiteContextHealthCheck
- All Implemented Interfaces:
HealthCheck
HealthCheck implementation that checks if a site has a valid context.-
Field Summary
Fields inherited from class org.craftercms.engine.service.health.AbstractHealthCheck
contextManager, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoCheckHealth(String site) Performs the actual health check.Methods inherited from class org.craftercms.engine.service.health.AbstractHealthCheck
checkHealth
-
Constructor Details
-
SiteContextHealthCheck
@ConstructorProperties("contextManager") public SiteContextHealthCheck(SiteContextManager contextManager)
-
-
Method Details
-
doCheckHealth
Description copied from class:AbstractHealthCheckPerforms the actual health check.- Specified by:
doCheckHealthin classAbstractHealthCheck- Parameters:
site- the site to check.- Returns:
- true if the site is healthy, false otherwise.
-