Package jadex.commons
Class FileWatcher
- java.lang.Object
- 
- jadex.commons.FileWatcher
 
- 
 public class FileWatcher extends java.lang.ObjectWatcher for files, written to be backwards compatible. TODO: Implement polling.
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanrunningFlag if running.protected java.lang.ThreadthreadThe watch thread.protected java.io.FilewatchedfileThe watched file.
 - 
Constructor SummaryConstructors Constructor Description FileWatcher(java.lang.String filepath, java.lang.Runnable run, boolean forcepoll)Creates the watcher.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()Overrideprotected voidpollingMode(java.lang.Runnable run)Use polling mode.voidstop()Stops the monitoring.
 
- 
- 
- 
Method Detail- 
stoppublic void stop() Stops the monitoring.
 - 
pollingModeprotected void pollingMode(java.lang.Runnable run) Use polling mode.- Parameters:
- run- The user runnable.
 
 - 
finalizeprotected void finalize() throws java.lang.ThrowableOverride- Overrides:
- finalizein class- java.lang.Object
- Throws:
- java.lang.Throwable
 
 
- 
 
-