public class WarWatcher
extends java.lang.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 java.util.Map<java.lang.String,WarWatcher.WarInfo> |
currentStatus
Currently deployed files
|
protected FileChangeListener |
listener
Parent to be notified of changes
|
protected java.io.File |
watchDir
Directory to watch for war files
|
Constructor and Description |
---|
WarWatcher(FileChangeListener listener,
java.io.File watchDir) |
Modifier and Type | Method and Description |
---|---|
protected void |
addWarInfo(java.io.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 java.io.File watchDir
protected final FileChangeListener listener
protected final java.util.Map<java.lang.String,WarWatcher.WarInfo> currentStatus
public WarWatcher(FileChangeListener listener, java.io.File watchDir)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.