info.aduna.infosource.crawl
Interface CrawlingListener


public interface CrawlingListener

CrawlingListeners are notified by a CrawlingRepository about its crawling progress.


Field Summary
static int CRAWL_COMPLETED
          Used to indicate that a crawl was successfully performed.
static int CRAWL_STOPPED_BY_REQUEST
          Used to indicate that a crawl was only partially completed because of an external request for interruption.
static int FATAL_EXCEPTION_WHILE_CRAWLING
          Used to indicate that a crawl was only partially completed because of one or more exceptions during crawling.
 
Method Summary
 void clearCrawlResultsFinished()
          Signals that the CrawlingRepository has finished clearing its crawl results.
 void clearCrawlResultsStarted()
          Signals that the CrawlingRepository has started clearing its crawl results.
 void crawlFinished(int exitCode)
          Signals that the CrawlingRepository has finished crawling.
 void crawlingObject(String url)
          Signals that the CrawlingRepository has started crawling the object represented by the specified URL.
 void crawlStarted()
          Signals that the CrawlingRepository has started to crawl its DataSource.
 void finishingCrawl()
          Signals that the CrawlingRepository has finished crawling the last URI and is wrapping things up.
 void newObjectCrawled(org.semanticdesktop.aperture.accessor.DataObject object)
          Signals that the CrawlingRepository has identified a new object that will be represented by the specified URI.
 void objectNotModified(String url)
          Signals that the CrawlingRepository has detected that the object represented by the specified URI has not changed.
 void objectRemoved(String url)
          Signals that the CrawlingRepository has detected that the object represented by the specified URI is no longer available.
 void objectUpdated(org.semanticdesktop.aperture.accessor.DataObject object)
          Signals that the CrawlingRepository has identified and crawled a changed object, represented by the specified URI.
 void processingChangedObject(org.semanticdesktop.aperture.accessor.DataObject object)
          Signals that the CrawlingRepository has identifier a changed object and is starting to process its contents.
 void processingNewObject(org.semanticdesktop.aperture.accessor.DataObject object)
          Signals that the CrawlingRepository has identified a new object and is starting to process its contents.
 

Field Detail

CRAWL_COMPLETED

static final int CRAWL_COMPLETED
Used to indicate that a crawl was successfully performed.

See Also:
Constant Field Values

CRAWL_STOPPED_BY_REQUEST

static final int CRAWL_STOPPED_BY_REQUEST
Used to indicate that a crawl was only partially completed because of an external request for interruption.

See Also:
Constant Field Values

FATAL_EXCEPTION_WHILE_CRAWLING

static final int FATAL_EXCEPTION_WHILE_CRAWLING
Used to indicate that a crawl was only partially completed because of one or more exceptions during crawling. This does not indicate exceptions on individual messages. This is rather used for larger-scale errors such as unknown hosts, connection time outs, etc., which involve collections of data objects.

See Also:
Constant Field Values
Method Detail

crawlStarted

void crawlStarted()
Signals that the CrawlingRepository has started to crawl its DataSource.


crawlingObject

void crawlingObject(String url)
Signals that the CrawlingRepository has started crawling the object represented by the specified URL.


processingNewObject

void processingNewObject(org.semanticdesktop.aperture.accessor.DataObject object)
Signals that the CrawlingRepository has identified a new object and is starting to process its contents.


processingChangedObject

void processingChangedObject(org.semanticdesktop.aperture.accessor.DataObject object)
Signals that the CrawlingRepository has identifier a changed object and is starting to process its contents.


newObjectCrawled

void newObjectCrawled(org.semanticdesktop.aperture.accessor.DataObject object)
Signals that the CrawlingRepository has identified a new object that will be represented by the specified URI.


objectUpdated

void objectUpdated(org.semanticdesktop.aperture.accessor.DataObject object)
Signals that the CrawlingRepository has identified and crawled a changed object, represented by the specified URI.


objectNotModified

void objectNotModified(String url)
Signals that the CrawlingRepository has detected that the object represented by the specified URI has not changed.


objectRemoved

void objectRemoved(String url)
Signals that the CrawlingRepository has detected that the object represented by the specified URI is no longer available.


finishingCrawl

void finishingCrawl()
Signals that the CrawlingRepository has finished crawling the last URI and is wrapping things up.


crawlFinished

void crawlFinished(int exitCode)
Signals that the CrawlingRepository has finished crawling.


clearCrawlResultsStarted

void clearCrawlResultsStarted()
Signals that the CrawlingRepository has started clearing its crawl results.


clearCrawlResultsFinished

void clearCrawlResultsFinished()
Signals that the CrawlingRepository has finished clearing its crawl results.



Copyright © 1997-2008 Aduna. All Rights Reserved.