org.apache.oodt.cas.crawl.daemon
Class CrawlDaemon

java.lang.Object
  extended by org.apache.oodt.cas.crawl.daemon.CrawlDaemon

public class CrawlDaemon
extends Object

Version:
$Revision$

A daemon utility class for ProductCrawlers 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

Constructor Summary
CrawlDaemon(int wait, ProductCrawler crawler, int port)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrawlDaemon

public CrawlDaemon(int wait,
                   ProductCrawler crawler,
                   int port)
Method Detail

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-2013
Apache OODT. All Rights Reserved.