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() |
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
|
FileChangeListener |
getListener() |
File |
getWatchDir() |
void |
setListener(FileChangeListener listener) |
void |
setWatchDir(File watchDir) |
protected File watchDir
protected FileChangeListener listener
protected Map<String,WarWatcher.WarInfo> currentStatus
public WarWatcher()
public WarWatcher(FileChangeListener listener, File watchDir)
public void check()
protected void addWarInfo(File warfile)
warfile
- The WAR to addpublic 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.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.