gov.nasa.pds.harvest.crawler.daemon
Class HarvestDaemon

java.lang.Object
  extended by gov.nasa.jpl.oodt.cas.crawl.daemon.CrawlDaemon
      extended by gov.nasa.pds.harvest.crawler.daemon.HarvestDaemon

public class HarvestDaemon
extends gov.nasa.jpl.oodt.cas.crawl.daemon.CrawlDaemon

Class that provides the capability to make the Harvest Tool run continuously via a daemon.

Author:
mcayanan

Constructor Summary
HarvestDaemon(int wait, PDSProductCrawler crawler, int port)
          Constructor
 
Method Summary
 PDSProductCrawler getCrawler()
          Get the crawler being used.
 void startCrawling()
          Starts the crawling mechanism.
 
Methods inherited from class gov.nasa.jpl.oodt.cas.crawl.daemon.CrawlDaemon
getAverageCrawlTime, getMilisCrawling, getNumCrawls, getWaitInterval, isRunning, setCrawler, setMilisCrawling, setNumCrawls, setWaitInterval, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestDaemon

public HarvestDaemon(int wait,
                     PDSProductCrawler crawler,
                     int port)
Constructor

Parameters:
wait - The time in seconds to wait in between crawls.
crawler - The PDSProductCrawler to be used.
port - The port nunmber to be used.
Method Detail

startCrawling

public void startCrawling()
Starts the crawling mechanism.

Overrides:
startCrawling in class gov.nasa.jpl.oodt.cas.crawl.daemon.CrawlDaemon

getCrawler

public PDSProductCrawler getCrawler()
Get the crawler being used.

Overrides:
getCrawler in class gov.nasa.jpl.oodt.cas.crawl.daemon.CrawlDaemon


Copyright © 2010-2011 Planetary Data System. All Rights Reserved.