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
ConstructorsConstructorDescriptionJWeaverCrawlerImpl(JWeaverBuilderImpl builder) Constructs a new JWeaverCrawlerImpl instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Runs the executions sequentially.voidThis 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:JWeaverCrawlerRuns the executions sequentially.Consider using
JWeaverCrawler.runParallel()for improved performance.- Specified by:
runin interfaceJWeaverCrawler
-
runParallel
public void runParallel()Description copied from interface:JWeaverCrawlerThis 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:
runParallelin interfaceJWeaverCrawler
-