public class FolderWatcher extends Observable implements FolderListener
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Entry> |
cache |
protected Location |
location |
| Constructor and Description |
|---|
FolderWatcher(Location location) |
FolderWatcher(String... path) |
| Modifier and Type | Method and Description |
|---|---|
void |
folderChanged(Collection<Entry> added,
Collection<String> removed,
boolean full)
Provide changes to the listener
|
Map<String,Entry> |
getCache() |
Collection<Entry> |
getList() |
Location |
getLocation() |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic FolderWatcher(String... path)
public FolderWatcher(Location location)
public void folderChanged(Collection<Entry> added, Collection<String> removed, boolean full)
FolderListenerIf either no items were added or removed the corresponding list must still be not null. The lists may not be altered by the listener implementations and may by unmodifiable.
folderChanged in interface FolderListeneradded - the folder entries that were addedremoved - the folder entries that where removedfull - true if this is not a change but a full
transmission, in this case the removed parameter
must be empty or null.public Location getLocation()
public Collection<Entry> getList()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.