|
Apache Tomcat 7.0.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.ha.deploy.WarWatcher
public class 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
Nested Class Summary | |
---|---|
protected static class |
WarWatcher.WarFilter
File name filter for war files |
protected static class |
WarWatcher.WarInfo
File information on existing WAR files |
Field Summary | |
---|---|
protected Map<String,WarWatcher.WarInfo> |
currentStatus
Currently deployed files |
protected FileChangeListener |
listener
Parent to be notified of changes |
protected File |
watchDir
Directory to watch for war files |
Constructor Summary | |
---|---|
WarWatcher()
|
|
WarWatcher(FileChangeListener listener,
File watchDir)
|
Method Summary | |
---|---|
protected void |
addWarInfo(File warfile)
add cluster war to the watcher state |
void |
check()
check for modification and send notification to listener |
void |
clear()
clear watcher state |
FileChangeListener |
getListener()
|
File |
getWatchDir()
|
void |
setListener(FileChangeListener listener)
|
void |
setWatchDir(File watchDir)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File watchDir
protected FileChangeListener listener
protected Map<String,WarWatcher.WarInfo> currentStatus
Constructor Detail |
---|
public WarWatcher()
public WarWatcher(FileChangeListener listener, File watchDir)
Method Detail |
---|
public void check()
protected void addWarInfo(File warfile)
warfile
- public void clear()
public File getWatchDir()
public void setWatchDir(File watchDir)
watchDir
- The watchDir to set.public FileChangeListener getListener()
public void setListener(FileChangeListener listener)
listener
- The listener to set.
|
Apache Tomcat 7.0.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |