org.apache.oodt.cas.crawl.daemon
Class CrawlDaemon
java.lang.Object
org.apache.oodt.cas.crawl.daemon.CrawlDaemon
public class CrawlDaemon extends Object
Version:
$Revision$
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.
.
Author:
mattmann
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
CrawlDaemon
public CrawlDaemon (int wait,
ProductCrawler crawler,
int port)
startCrawling
public void startCrawling ()
getAverageCrawlTime
public double getAverageCrawlTime ()
getCrawler
public ProductCrawler getCrawler ()
Returns: the crawler
setCrawler
public void setCrawler (ProductCrawler crawler)
Parameters: crawler - the crawler to set
getMilisCrawling
public int getMilisCrawling ()
Returns: the milisCrawling
setMilisCrawling
public void setMilisCrawling (long milisCrawling)
Parameters: milisCrawling - the milisCrawling to set
getNumCrawls
public int getNumCrawls ()
Returns: the numCrawls
setNumCrawls
public void setNumCrawls (int numCrawls)
Parameters: numCrawls - the numCrawls to set
isRunning
public boolean isRunning ()
Returns: the running
stop
public boolean stop ()
Parameters: running - the running to set
getWaitInterval
public int getWaitInterval ()
Returns: the waitInterval
setWaitInterval
public void setWaitInterval (long waitInterval)
Parameters: waitInterval - the waitInterval to set
Copyright © 1999-2012 Apache OODT . All Rights Reserved.