Class WarWatcher


  • public class WarWatcher
    extends Object
    The WarWatcher watches the deployDir for changes made to the directory (adding new WAR files->deploy or remove WAR files->undeploy) and notifies a listener of the changes made.
    Version:
    1.1
    Author:
    Peter Rossbach
    • Field Detail

      • watchDir

        protected final File watchDir
        Directory to watch for war files
    • Method Detail

      • check

        public void check()
        check for modification and send notification to listener
      • addWarInfo

        protected void addWarInfo​(File warfile)
        add cluster war to the watcher state
        Parameters:
        warfile - The WAR to add
      • clear

        public void clear()
        clear watcher state