cz.cuni.pogamut.posh.explorer
Interface CrawlerListener<T>

Package class diagram package CrawlerListener
Type Parameters:
T - what kind of data should crawler look for and pass to the listeners.

public interface CrawlerListener<T>

Listener for Crawler and its subclasses.

Author:
Honza

Method Summary
 void crawledData(Crawler<T> crawler, Collection<T> data)
          Crawler has found new data, and they are now passed to the listeners.
 void finished(Crawler<T> crawler, boolean error)
          Yay, crawler has finished!.
 void started(Crawler<T> crawler)
          Crawling has started, the crawler is working.
 

Method Detail

started

void started(Crawler<T> crawler)
Crawling has started, the crawler is working.

Parameters:
crawler - crawler that has started executing.

crawledData

void crawledData(Crawler<T> crawler,
                 Collection<T> data)
Crawler has found new data, and they are now passed to the listeners.

Parameters:
crawler - crawler that has crawled new data
data -

finished

void finished(Crawler<T> crawler,
              boolean error)
Yay, crawler has finished!. No new data will be fed to the listener.

Parameters:
crawler - crawler that has finished.
error - did crawler finsih because of error?


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.