Package com.sshtools.common.logger
Class FileWatchingService
java.lang.Object
java.lang.Thread
com.sshtools.common.logger.FileWatchingService
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoOnChange(Path path) static FileWatchingServicebooleanvoidregister(Path path, FileWatchingCallback callback) voidrun()voidMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
FileWatchingService
- Throws:
IOException
-
-
Method Details
-
getInstance
- Throws:
IOException
-
isStopped
public boolean isStopped() -
stopThread
public void stopThread() -
register
- Throws:
IOException
-
doOnChange
-
run
public void run()
-