| Constructor and Description |
|---|
CrawlerContext(EmbeddedBrowser browser,
CrawljaxConfiguration config,
javax.inject.Provider<CrawlSession> sessionProvider,
ExitNotifier exitNotifier,
com.codahale.metrics.MetricRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
EmbeddedBrowser |
getBrowser() |
CrawljaxConfiguration |
getConfig() |
StateVertex |
getCurrentState() |
com.codahale.metrics.MetricRegistry |
getRegistry() |
CrawlSession |
getSession() |
void |
stop()
Tells Crawljax to stop with Exit status
ExitStatus#STOPPED. |
@Inject public CrawlerContext(EmbeddedBrowser browser, CrawljaxConfiguration config, javax.inject.Provider<CrawlSession> sessionProvider, ExitNotifier exitNotifier, com.codahale.metrics.MetricRegistry registry)
public EmbeddedBrowser getBrowser()
EmbeddedBrowser that caused the given Plugin to fire.public CrawlSession getSession()
CrawlSessionpublic CrawljaxConfiguration getConfig()
CrawljaxConfiguration for this crawl.public void stop()
ExitStatus#STOPPED. This is equivalent to
calling CrawljaxRunner.stop().public StateVertex getCurrentState()
StateVertex or null when the Crawler isn't
initialized yet.public com.codahale.metrics.MetricRegistry getRegistry()
Copyright © 2007-2013. All Rights Reserved.