Class ScriptSiteHealthCheck
java.lang.Object
org.craftercms.engine.service.health.AbstractHealthCheck
org.craftercms.engine.service.health.ScriptSiteHealthCheck
- All Implemented Interfaces:
HealthCheck
HealthCheck implementation that runs a script in the site.-
Field Summary
Fields inherited from class org.craftercms.engine.service.health.AbstractHealthCheck
contextManager, logger -
Constructor Summary
ConstructorsConstructorDescriptionScriptSiteHealthCheck(SiteContextManager contextManager, String scriptPath, boolean disableVariableRestrictions) -
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
-
ScriptSiteHealthCheck
@ConstructorProperties({"contextManager","scriptPath","disableVariableRestrictions"}) public ScriptSiteHealthCheck(SiteContextManager contextManager, String scriptPath, boolean disableVariableRestrictions)
-
-
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.
-