|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.busyboxes.agoo.service.impl.WatcherTaskServiceImpl
public class WatcherTaskServiceImpl
Implementation of the task runner service
Constructor Summary | |
---|---|
WatcherTaskServiceImpl()
|
Method Summary | |
---|---|
void |
addCheckFileTask(java.lang.Long fileId)
Creates a new task to check a file |
void |
addScanFolderTask(java.lang.Long folderId)
Creates a new task to scan a folder |
void |
runNextTask()
Executes the next pending task |
void |
setWatchedFileService(WatchedFileService watchedFileService)
Sets the watched file service |
void |
setWatchedFolderService(WatchedFolderService watchedFolderService)
Sets the watched folder service |
void |
setWatcherTaskDAO(WatcherTaskDAO watcherTaskDAO)
Sets the watcher task DAO |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WatcherTaskServiceImpl()
Method Detail |
---|
public void runNextTask()
WatcherTaskService
runNextTask
in interface WatcherTaskService
WatcherTaskService.runNextTask()
public void addScanFolderTask(java.lang.Long folderId)
WatcherTaskService
addScanFolderTask
in interface WatcherTaskService
folderId
- the folder id to be scannedWatcherTaskService.addScanFolderTask(Long)
public void setWatcherTaskDAO(WatcherTaskDAO watcherTaskDAO)
watcherTaskDAO
- the watcherTaskDAO to setpublic void setWatchedFolderService(WatchedFolderService watchedFolderService)
watchedFolderService
- the watchedFolderService to setpublic void setWatchedFileService(WatchedFileService watchedFileService)
watchedFileService
- the watchedFileService to setpublic void addCheckFileTask(java.lang.Long fileId)
WatcherTaskService
addCheckFileTask
in interface WatcherTaskService
fileId
- the file id to be checkedWatcherTaskService.addCheckFileTask(Long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |