Class AbstractHealthCheck
java.lang.Object
org.craftercms.engine.service.health.AbstractHealthCheck
- All Implemented Interfaces:
HealthCheck
- Direct Known Subclasses:
ScriptSiteHealthCheck,SiteContextHealthCheck
Basic implementation of
HealthCheck with logging.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SiteContextManagerprotected final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckHealth(String site) Performs a site health check.protected abstract booleandoCheckHealth(String site) Performs the actual health check.
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
contextManager
-
-
Constructor Details
-
AbstractHealthCheck
-
-
Method Details
-
checkHealth
Description copied from interface:HealthCheckPerforms a site health check.- Specified by:
checkHealthin interfaceHealthCheck- Parameters:
site- the site to check.- Returns:
- true if the given site passes the check, false otherwise.
-
doCheckHealth
Performs the actual health check.- Parameters:
site- the site to check.- Returns:
- true if the site is healthy, false otherwise.
-