Top Fields Constructors Methods
fr.brouillard.oss.cssfx.impl.monitoring

public Class PathsWatcher

extends Object
Class Inheritance
Imports
com.sun.nio.file.SensitivityWatchEventModifier, java.io.IOException, java.nio.file.FileSystems, .Path, .StandardWatchEventKinds, .WatchEvent, .WatchKey, .WatchService, java.util.HashMap, .LinkedList, .List, .Map

Field Summary

Modifier and TypeField and Description
private Map<String, Map<String, List<Runnable>>>
private Thread
private WatchService

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
monitor(Path directory, Path sourceFile, Runnable action)

public void
stop()

public void
unregister(Path directory, Path sourceFile, Runnable action)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

filesActionsback to summary
private Map<String, Map<String, List<Runnable>>> filesActions
watcherThreadback to summary
private Thread watcherThread
watchServiceback to summary
private WatchService watchService

Constructor Detail

PathsWatcherback to summary
public PathsWatcher()

Method Detail

monitorback to summary
public void monitor(Path directory, Path sourceFile, Runnable action)
stopback to summary
public void stop()
unregisterback to summary
public void unregister(Path directory, Path sourceFile, Runnable action)
watchback to summary
public void watch()