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.
Peter Rossbach
  • Field Details

    • watchDir

      protected final File watchDir
      Directory to watch for war files
    • listener

      protected final FileChangeListener listener
      Parent to be notified of changes
    • currentStatus

      protected final Map<String,WarWatcher.WarInfo> currentStatus
      Currently deployed files
  • Constructor Details

  • Method Details

    • 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
      warfile - The WAR to add
    • clear

      public void clear()
      clear watcher state