public class FileWatcherUDP extends FileWatcher
Constructor and Description |
---|
FileWatcherUDP(Logger logger,
long millis,
HostItem server,
HostItem tracker,
java.lang.String baseDirectory)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
registerTracker()
Register server on tracker
|
protected void |
writeLog(java.lang.Exception e,
LogLevel logLevel)
Implementation of writeLog
|
protected void |
writeLog(java.lang.String text,
LogLevel logLevel)
Implementation of writeLog
|
getFileList, getSha512Map, initSha512, run, setStop, setThread, trigger, updateFileList
public FileWatcherUDP(Logger logger, long millis, HostItem server, HostItem tracker, java.lang.String baseDirectory)
logger
- Loggermillis
- Time interval before recheckserver
- HostItem for the servertracker
- HostItem for the trackerbaseDirectory
- Directory to search filesprotected void writeLog(java.lang.String text, LogLevel logLevel)
writeLog
in class FileWatcher
text
- Text to loglogLevel
- level of loggingprotected void writeLog(java.lang.Exception e, LogLevel logLevel)
writeLog
in class FileWatcher
e
- exception to loglogLevel
- level of loggingprotected void registerTracker()
registerTracker
in class FileWatcher