| Package | Description |
|---|---|
| ch.sourcepond.io.fileobserver.impl.directory | |
| ch.sourcepond.io.fileobserver.impl.fs | |
| ch.sourcepond.io.fileobserver.impl.listener |
| Modifier and Type | Method and Description |
|---|---|
void |
Directory.forceInform(EventDispatcher pDispatcher)
Iterates over the files contained by this directory and creates tasks which will be executed
sometime in the future.
|
void |
Directory.informCreatedOrInitial(EventDispatcher pDispatcher,
Directory pNewRootOrNull,
Path pFile,
Runnable pDoneCallback) |
void |
Directory.informDiscard(EventDispatcher pDispatcher,
Path pFile,
Runnable pDoneCallback)
Iterates over the listeners specified and informs them that the file specified has
been discarded through their
PathChangeListener.discard(DispatchKey) method. |
void |
Directory.informIfChanged(EventDispatcher pDispatcher,
Directory pNewRootOrNull,
Path pFile,
Runnable pDoneCallback,
boolean pIsCreated)
Triggers the
PathChangeListener.modified(PathChangeEvent) on all listeners specified if the
file represented by the path specified has been changed i.e. |
void |
Directory.informIfChanged(EventDispatcher pDispatcher,
Path pFile,
Runnable pDoneCallback,
boolean pIsCreated)
Triggers the
PathChangeListener.modified(PathChangeEvent) on all listeners specified if the
file represented by the path specified has been changed i.e. |
void |
Directory.removeWatchedDirectory(EventDispatcher pDispatcher,
ch.sourcepond.io.fileobserver.spi.WatchedDirectory pWatchedDirectory)
Removes the watched-directory specified from this directory instance and informs
the listeners specified through their
PathChangeListener.discard(DispatchKey). |
| Modifier and Type | Method and Description |
|---|---|
void |
DedicatedFileSystem.forceInform(EventDispatcher pDispatcher)
Iterates through all registered directories and passes all their files to the
PathChangeListener.modified(PathChangeEvent) of the observer specified. |
| Modifier and Type | Class and Description |
|---|---|
class |
DiffEventDispatcher |
| Modifier and Type | Method and Description |
|---|---|
EventDispatcher |
ListenerManager.addListener(ch.sourcepond.io.fileobserver.api.PathChangeListener pObserver) |
EventDispatcher |
ListenerManager.getDefaultDispatcher() |
Copyright © 2017 SourcePond. All rights reserved.