Class JWeaverCrawlerImpl
java.lang.Object
org.jweaver.crawler.internal.runner.JWeaverCrawlerImpl
- All Implemented Interfaces:
JWeaverCrawler
A concrete implementation of
JWeaverCrawler
providing web crawling functionality.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jweaver.crawler.JWeaverCrawler
JWeaverCrawler.Builder
-
Constructor Summary
ConstructorDescriptionJWeaverCrawlerImpl
(JWeaverBuilderImpl builder) Constructs a new JWeaverCrawlerImpl instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Runs the executions sequentially.void
This should be the preferred choice to run the crawler.
-
Constructor Details
-
JWeaverCrawlerImpl
Constructs a new JWeaverCrawlerImpl instance.- Parameters:
builder
- The builder containing necessary parameters to construct the crawler.
-
-
Method Details
-
run
public void run()Description copied from interface:JWeaverCrawler
Runs the executions sequentially.Consider using
JWeaverCrawler.runParallel()
for improved performance.- Specified by:
run
in interfaceJWeaverCrawler
-
runParallel
public void runParallel()Description copied from interface:JWeaverCrawler
This should be the preferred choice to run the crawler.Runs the different JWeaverTask in parallel using Virtual Threads, crawling multiple uris (of different hosts) concurrently.
- Specified by:
runParallel
in interfaceJWeaverCrawler
-