Class CrawlSession


  • @Singleton
    public class CrawlSession
    extends Object
    Contains all data concerned with this crawl. There is one CrawlSession per crawl. Even if there are multiple EmbeddedBrowsers configured.
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • crawlPaths

        private final Collection<List<Eventable>> crawlPaths
        This ConcurrentLinkedQueue holds all the Paths that are executed during the CrawlSession so far.
      • startTime

        private final long startTime
        Denote the time the CrawlSession Started in ms since 1970.
      • registry

        private final com.codahale.metrics.MetricRegistry registry
    • Method Detail

      • setFragmentManager

        public void setFragmentManager​(FragmentManager fragmentManager)
      • getStateFlowGraph

        public StateFlowGraph getStateFlowGraph()
        Returns:
        the stateFlowGraph
      • addCrawlPath

        public void addCrawlPath​(CrawlPath crawlPath)
        Parameters:
        crawlPath - the eventable list
      • getInitialState

        public StateVertex getInitialState()
        Returns:
        the initialState
      • getStartTime

        public long getStartTime()
        Returns:
        the startTime
      • removeCrawlPath

        protected void removeCrawlPath​(List<Eventable> path)
        Remove the current path from the set of crawlPaths.
        Parameters:
        path - the path to be removed
      • getRegistry

        public com.codahale.metrics.MetricRegistry getRegistry()