public class WarWatcher extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
WarWatcher.WarFilter
File name filter for war files
|
protected static class |
WarWatcher.WarInfo
File information on existing WAR files
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
WarWatcher(FileChangeListener listener,
File watchDir) |
Modifier and Type | Method and Description |
---|---|
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
|
protected final File watchDir
protected final FileChangeListener listener
protected final Map<String,WarWatcher.WarInfo> currentStatus
public WarWatcher(FileChangeListener listener, File watchDir)
public void check()
protected void addWarInfo(File warfile)
warfile
- public void clear()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.