public class CrawlDaemon extends Object
A daemon utility class for ProductCrawler
s that allows a regular
ProductCrawler to be run as a daemon, and statistics about crawling to be
kept. The daemon is an XML-RPC accessible web service.
Modifier and Type | Field and Description |
---|---|
static double |
DOUBLE |
Constructor and Description |
---|
CrawlDaemon(int wait,
ProductCrawler crawler,
int port) |
Modifier and Type | Method and Description |
---|---|
double |
getAverageCrawlTime() |
ProductCrawler |
getCrawler() |
int |
getMilisCrawling() |
int |
getNumCrawls() |
int |
getWaitInterval() |
boolean |
isRunning() |
void |
setCrawler(ProductCrawler crawler) |
void |
setMilisCrawling(long milisCrawling) |
void |
setNumCrawls(int numCrawls) |
void |
setWaitInterval(long waitInterval) |
void |
startCrawling() |
boolean |
stop() |
public static final double DOUBLE
public CrawlDaemon(int wait, ProductCrawler crawler, int port)
public void startCrawling()
public double getAverageCrawlTime()
public ProductCrawler getCrawler()
public void setCrawler(ProductCrawler crawler)
crawler
- the crawler to setpublic int getMilisCrawling()
public void setMilisCrawling(long milisCrawling)
milisCrawling
- the milisCrawling to setpublic int getNumCrawls()
public void setNumCrawls(int numCrawls)
numCrawls
- the numCrawls to setpublic boolean isRunning()
public boolean stop()
public int getWaitInterval()
public void setWaitInterval(long waitInterval)
waitInterval
- the waitInterval to setCopyright © 1999–2017 Apache OODT. All rights reserved.