Package org.apache.catalina.ha.deploy
Class WarWatcher
java.lang.Object
org.apache.catalina.ha.deploy.WarWatcher
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.
- Author:
- Peter Rossbach
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classFile name filter for war filesprotected static classFile information on existing WAR files
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<String,WarWatcher.WarInfo> Currently deployed filesprotected final FileChangeListenerParent to be notified of changesprotected final FileDirectory to watch for war files
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddWarInfo(File warfile) add cluster war to the watcher statevoidcheck()check for modification and send notification to listenervoidclear()clear watcher state
- 
Field Details- 
watchDirDirectory to watch for war files
- 
listenerParent to be notified of changes
- 
currentStatusCurrently deployed files
 
- 
- 
Constructor Details- 
WarWatcher
 
- 
- 
Method Details- 
checkpublic void check()check for modification and send notification to listener
- 
addWarInfoadd cluster war to the watcher state- Parameters:
- warfile- The WAR to add
 
- 
clearpublic void clear()clear watcher state
 
-