X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=trunk%2Fcrawler%2Fkissweb%2Fsrc%2Forg%2Fwamblee%2Fcrawler%2Fkiss%2Fscheduling%2FCrawlerScheduler.java;h=fefb8d9841aff0b60e06fe60646ba976eb7d423d;hb=4819218c6211c7ff0bcd4646c10b891abfc1a020;hp=e529da074d410d008f5376d7a0e44f7af9539061;hpb=1aa8a4b42297af33fe68811cacba7a3721b9ea2d;p=utils diff --git a/trunk/crawler/kissweb/src/org/wamblee/crawler/kiss/scheduling/CrawlerScheduler.java b/trunk/crawler/kissweb/src/org/wamblee/crawler/kiss/scheduling/CrawlerScheduler.java index e529da07..fefb8d98 100644 --- a/trunk/crawler/kissweb/src/org/wamblee/crawler/kiss/scheduling/CrawlerScheduler.java +++ b/trunk/crawler/kissweb/src/org/wamblee/crawler/kiss/scheduling/CrawlerScheduler.java @@ -17,16 +17,32 @@ package org.wamblee.crawler.kiss.scheduling; /** - * + * Interface to the scheduler specific for working with the crawler. */ public interface CrawlerScheduler { + /** + * Initializes the scheduler. + * @throws Exception In case of problems. + */ void initialize() throws Exception; + /** + * Checks if the crawler is running. + * @return True iff the crawler is running. + * @throws Exception In case of problems. + */ boolean isCrawlerRunning() throws Exception; - + + /** + * Schedules the crawler for immediate execution. + * @throws Exception In case of problems. + */ void scheduleNow() throws Exception; + /** + * Shuts down the scheduler. + * @throws Exception In case of problems. + */ void shutdown() throws Exception; - }