Package org.apache.catalina.ha.deploy
Class WarWatcher
- java.lang.Object
- 
- org.apache.catalina.ha.deploy.WarWatcher
 
- 
 public class WarWatcher extends java.lang.ObjectThe 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.- Author:
- Peter Rossbach
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classWarWatcher.WarFilterFile name filter for war filesprotected static classWarWatcher.WarInfoFile information on existing WAR files
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.Map<java.lang.String,WarWatcher.WarInfo>currentStatusCurrently deployed filesprotected FileChangeListenerlistenerParent to be notified of changesprotected java.io.FilewatchDirDirectory to watch for war files
 - 
Constructor SummaryConstructors Constructor Description WarWatcher(FileChangeListener listener, java.io.File watchDir)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddWarInfo(java.io.File warfile)add cluster war to the watcher statevoidcheck()check for modification and send notification to listenervoidclear()clear watcher state
 
- 
- 
- 
Field Detail- 
watchDirprotected final java.io.File watchDir Directory to watch for war files
 - 
listenerprotected final FileChangeListener listener Parent to be notified of changes
 - 
currentStatusprotected final java.util.Map<java.lang.String,WarWatcher.WarInfo> currentStatus Currently deployed files
 
- 
 - 
Constructor Detail- 
WarWatcherpublic WarWatcher(FileChangeListener listener, java.io.File watchDir) 
 
- 
 
-