Package com.crawljax.core
Class CrawljaxRunner
- java.lang.Object
-
- com.crawljax.core.CrawljaxRunner
-
- All Implemented Interfaces:
Callable<CrawlSession>
public class CrawljaxRunner extends Object implements Callable<CrawlSession>
Runs crawljax given a certainCrawljaxConfiguration. Runcall()to start a crawl.
-
-
Field Summary
Fields Modifier and Type Field Description private CrawljaxConfigurationconfigprivate CrawlControllercontrollerprivate ExitNotifier.ExitStatusreason
-
Constructor Summary
Constructors Constructor Description CrawljaxRunner(CrawljaxConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrawlSessioncall()Runs Crawljax with the given configuration.ExitNotifier.ExitStatusgetReason()private voidreadFormDataFromFile()Reads input data from a JSON file in the output directory.voidstop()Stops Crawljax.
-
-
-
Field Detail
-
config
private final CrawljaxConfiguration config
-
controller
private CrawlController controller
-
reason
private ExitNotifier.ExitStatus reason
-
-
Constructor Detail
-
CrawljaxRunner
public CrawljaxRunner(CrawljaxConfiguration config)
-
-
Method Detail
-
readFormDataFromFile
private void readFormDataFromFile()
Reads input data from a JSON file in the output directory.
-
call
public CrawlSession call()
Runs Crawljax with the given configuration.- Specified by:
callin interfaceCallable<CrawlSession>- Returns:
- The
CrawlSessiononce the Crawl is done.
-
stop
public void stop()
Stops Crawljax. It will try to shutdown gracefully and run thePostCrawlingPlugins.
-
getReason
public ExitNotifier.ExitStatus getReason()
- Returns:
- The
ExitNotifier.ExitStatusCrawljax stopped ornullif it hasn't stopped yet.
-
-