ch.busyboxes.agoo.service.impl
Class WatcherTaskServiceImpl

java.lang.Object
  extended by ch.busyboxes.agoo.service.impl.WatcherTaskServiceImpl
All Implemented Interfaces:
WatcherTaskService

public class WatcherTaskServiceImpl
extends java.lang.Object
implements WatcherTaskService

Implementation of the task runner service

Author:
julien@busyboxes.ch

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

WatcherTaskServiceImpl

public WatcherTaskServiceImpl()
Method Detail

runNextTask

public void runNextTask()
Description copied from interface: WatcherTaskService
Executes the next pending task

Specified by:
runNextTask in interface WatcherTaskService
See Also:
WatcherTaskService.runNextTask()

addScanFolderTask

public void addScanFolderTask(java.lang.Long folderId)
Description copied from interface: WatcherTaskService
Creates a new task to scan a folder

Specified by:
addScanFolderTask in interface WatcherTaskService
Parameters:
folderId - the folder id to be scanned
See Also:
WatcherTaskService.addScanFolderTask(Long)

setWatcherTaskDAO

public void setWatcherTaskDAO(WatcherTaskDAO watcherTaskDAO)
Sets the watcher task DAO

Parameters:
watcherTaskDAO - the watcherTaskDAO to set

setWatchedFolderService

public void setWatchedFolderService(WatchedFolderService watchedFolderService)
Sets the watched folder service

Parameters:
watchedFolderService - the watchedFolderService to set

setWatchedFileService

public void setWatchedFileService(WatchedFileService watchedFileService)
Sets the watched file service

Parameters:
watchedFileService - the watchedFileService to set

addCheckFileTask

public void addCheckFileTask(java.lang.Long fileId)
Description copied from interface: WatcherTaskService
Creates a new task to check a file

Specified by:
addCheckFileTask in interface WatcherTaskService
Parameters:
fileId - the file id to be checked
See Also:
WatcherTaskService.addCheckFileTask(Long)


Copyright © 2009. All Rights Reserved.