Class WarDeployer

java.lang.Object
org.red5.server.tomcat.WarDeployer
All Implemented Interfaces:
DisposableBean, InitializingBean

public class WarDeployer extends Object implements InitializingBean, DisposableBean
This service provides the means to auto-deploy a war.
Author:
Paul Gregoire (mondain@gmail.com)
  • Field Details

    • log

      private org.slf4j.Logger log
    • deploying

      private static AtomicBoolean deploying
    • scheduler

      private ScheduledExecutorService scheduler
    • future

    • checkInterval

      private int checkInterval
      How often to check for new war files
    • webappFolder

      private String webappFolder
      Deployment directory
    • expandWars

      private boolean expandWars
      Expand WAR files in the webapps directory prior to start up
  • Constructor Details

    • WarDeployer

      public WarDeployer()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface InitializingBean
      Throws:
      Exception
    • deploy

      public void deploy(boolean startApplication)
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface DisposableBean
      Throws:
      Exception
    • setCheckInterval

      public void setCheckInterval(int checkInterval)
    • getCheckInterval

      public int getCheckInterval()
    • getWebappFolder

      public String getWebappFolder()
    • setWebappFolder

      public void setWebappFolder(String webappFolder)
    • setExpandWars

      public void setExpandWars(boolean expandWars)
      Whether or not to expand war files prior to start up.
      Parameters:
      expandWars - to expand or not
    • getLoader

      public LoaderMXBean getLoader()
      Returns the LoaderMBean.
      Returns:
      LoadeerMBean
    • undeploy

      public void undeploy(String name)