public class CrawlerHealth extends Object
CrawlDaemon
Constructor and Description |
---|
CrawlerHealth()
Default Constructor.
|
CrawlerHealth(String crawlerName,
int numCrawls,
double avgCrawlTime)
Constructs a new CrawlerHealth with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
getAvgCrawlTime() |
String |
getCrawlerName() |
int |
getNumCrawls() |
void |
setAvgCrawlTime(double avgCrawlTime) |
void |
setCrawlerName(String crawlerName) |
void |
setNumCrawls(int numCrawls) |
public CrawlerHealth()
public CrawlerHealth(String crawlerName, int numCrawls, double avgCrawlTime)
crawlerName
- Name of the Crawler.numCrawls
- The number of crawls performed.avgCrawlTime
- The average time (in seconds) that a Crawler spends during each
crawl.public double getAvgCrawlTime()
public void setAvgCrawlTime(double avgCrawlTime)
avgCrawlTime
- the avgCrawlTime to setpublic String getCrawlerName()
public void setCrawlerName(String crawlerName)
crawlerName
- the crawlerName to setpublic int getNumCrawls()
public void setNumCrawls(int numCrawls)
numCrawls
- the numCrawls to setCopyright © 1999–2017 Apache OODT. All rights reserved.