| Modifier and Type | Method and Description |
|---|---|
void |
crawl(List<CrawleableUri> uris)
Crawls the given URIs and sends URIs that have been found while crawling to
the frontier.
|
int |
getId()
Gives the unique id of the worker.
|
String |
getUri()
Gives the unique URI of the worker.
|
void |
performCrawling(CrawleableUri uri)
Crawls the given URI and adds new URIs that have been found while crawling to
the given list of new URIs.
|
boolean |
sendsAliveMessages()
Indicates whether the worker sends alive messages in order to convince the
Frontier that he is still alive. |
void |
setTerminateFlag(boolean terminateFlag) |
void crawl(List<CrawleableUri> uris)
uris - the URIs that should be crawledvoid performCrawling(CrawleableUri uri)
uri - the URI that should be crawledString getUri()
boolean sendsAliveMessages()
Frontier that he is still alive.int getId()
void setTerminateFlag(boolean terminateFlag)
Copyright © 2017–2019. All rights reserved.