Class DeploymentEventsWatcher

java.lang.Object
org.craftercms.engine.util.deployment.DeploymentEventsWatcher
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>

public class DeploymentEventsWatcher extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
Utility class that runs on a cron job (configurable) and checks every site to see if they have a deployment events file (by default deployment-events.properties, which should contain timestamps sent by the Deployer indicating requests for clearing the site cache and/or rebuilding the context.
Author:
avasquez
  • Field Details

  • Constructor Details

    • DeploymentEventsWatcher

      public DeploymentEventsWatcher()
  • Method Details

    • setDeploymentEventsFileUrl

      public void setDeploymentEventsFileUrl(String deploymentEventsFileUrl)
    • setSiteContextManager

      public void setSiteContextManager(SiteContextManager siteContextManager)
    • checkForEvents

      public void checkForEvents()
    • checkForSiteEvents

      public void checkForSiteEvents(SiteContext siteContext)
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>