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;
-
}