Class ScriptSiteHealthCheck

java.lang.Object
org.craftercms.engine.service.health.AbstractHealthCheck
org.craftercms.engine.service.health.ScriptSiteHealthCheck
All Implemented Interfaces:
HealthCheck

public class ScriptSiteHealthCheck extends AbstractHealthCheck
HealthCheck implementation that runs a script in the site.
  • Constructor Details

    • ScriptSiteHealthCheck

      @ConstructorProperties({"contextManager","scriptPath","disableVariableRestrictions"}) public ScriptSiteHealthCheck(SiteContextManager contextManager, String scriptPath, boolean disableVariableRestrictions)
  • Method Details

    • doCheckHealth

      protected boolean doCheckHealth(String site)
      Description copied from class: AbstractHealthCheck
      Performs the actual health check.
      Specified by:
      doCheckHealth in class AbstractHealthCheck
      Parameters:
      site - the site to check.
      Returns:
      true if the site is healthy, false otherwise.