ch.busyboxes.agoo.service
Interface WatcherTaskService

All Known Implementing Classes:
WatcherTaskServiceImpl

public interface WatcherTaskService

Service running tasks

Author:
julien@busyboxes.ch

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
 

Method Detail

runNextTask

void runNextTask()
Executes the next pending task


addScanFolderTask

void addScanFolderTask(java.lang.Long folderId)
Creates a new task to scan a folder

Parameters:
folderId - the folder id to be scanned

addCheckFileTask

void addCheckFileTask(java.lang.Long fileId)
Creates a new task to check a file

Parameters:
fileId - the file id to be checked


Copyright © 2009. All Rights Reserved.