| Modifier and Type | Class and Description |
|---|---|
protected class |
ProjectFileChangeTracker.FileInfo
Class to store information about files (last modification time & File
pointer)
|
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ProjectFileChangeTracker.FileInfo> |
files
The names of the files to observe for changes.
|
protected ProjectController |
mediator |
protected boolean |
paused |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ProjectFileChangeTracker(ProjectController mediator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(String location)
Adds a new file to watch
|
protected void |
check() |
protected void |
doOnChange() |
protected void |
doOnRemove() |
void |
pauseWatching()
Tells watcher to pause watching for some time.
|
void |
reconfigure()
Reloads files to watch from the project.
|
void |
removeAllFiles()
Turns off watching for all files
|
void |
removeFile(String location)
Turns off watching for a specified file
|
void |
resumeWatching()
Resumes watching for files
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected Map<String,ProjectFileChangeTracker.FileInfo> files
protected boolean paused
protected ProjectController mediator
public ProjectFileChangeTracker(ProjectController mediator)
public void reconfigure()
protected void doOnChange()
protected void doOnRemove()
public void addFile(String location)
location - path of filepublic void removeFile(String location)
location - path of filepublic void removeAllFiles()
protected void check()
public void pauseWatching()
public void resumeWatching()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.