@Singleton public class CrawlSession extends Object
CrawlSession per crawl. Even if
there are multiple EmbeddedBrowsers configured.| Constructor and Description |
|---|
CrawlSession(CrawljaxConfiguration config,
StateFlowGraph stateFlowGraph,
StateVertex state,
com.codahale.metrics.MetricRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCrawlPath(List<Eventable> crawlPath) |
CrawljaxConfiguration |
getConfig() |
Collection<List<Eventable>> |
getCrawlPaths() |
StateVertex |
getInitialState() |
com.codahale.metrics.MetricRegistry |
getRegistry() |
long |
getStartTime() |
StateFlowGraph |
getStateFlowGraph() |
protected void |
removeCrawlPath(List<Eventable> path)
Remove the current path from the set of crawlPaths.
|
@Inject public CrawlSession(CrawljaxConfiguration config, StateFlowGraph stateFlowGraph, StateVertex state, com.codahale.metrics.MetricRegistry registry)
public StateFlowGraph getStateFlowGraph()
public Collection<List<Eventable>> getCrawlPaths()
public void addCrawlPath(List<Eventable> crawlPath)
crawlPath - the eventable listpublic StateVertex getInitialState()
public long getStartTime()
protected void removeCrawlPath(List<Eventable> path)
public CrawljaxConfiguration getConfig()
public com.codahale.metrics.MetricRegistry getRegistry()
Copyright © 2007-2013. All Rights Reserved.