|
VIBE v5.1.6
Search Engine
|
Public Member Functions | |
| WebCrawler (ThreadSafeInvertedIndex index, WorkQueue queue, String seed, int max) | |
| void | processLink (URI seed) |
| void | processLink () |
| String | toString () |
Static Public Attributes | |
| static final Logger | log = LogManager.getLogger() |
Class responsible for crawling the web in the search engine.
| edu.usfca.cs272.WebCrawler.WebCrawler | ( | ThreadSafeInvertedIndex | index, |
| WorkQueue | queue, | ||
| String | seed, | ||
| int | max ) |
Creates a new WebCrawler.
| index | the invertedIndex to build. |
| queue | the workqueue. |
| seed | the seed uri. |
| max | the maximum number of webpages to crawl. |
| void edu.usfca.cs272.WebCrawler.processLink | ( | ) |
Process the seed uri
| void edu.usfca.cs272.WebCrawler.processLink | ( | URI | seed | ) |
Processes links. Recursively processes any links on the webpage if they haven't already been processed.
| seed | the base uri |
|
static |
Logger for this class.