com.sapportals.wcm.service.crawler

Interface ICrawlerPushedDeltaResultReceiver

All Superinterfaces:
ICrawlerPushedResultReceiver, ICrawlerResultReceiver

Deprecated. as of NW04. The crawler service was replaced by the xcrawler service com.sapportals.wcm.service.xcrawler

public interface ICrawlerPushedDeltaResultReceiver
extends ICrawlerPushedResultReceiver

A result receiver which handles found resources as a delta to a formerly found list of resource one by one. Note: The receivers must implement a default constructor to have them created by the crawler service after a system (re)start.

Copyright 2004 SAP AG


Field Summary
 
Fields inherited from interface com.sapportals.wcm.service.crawler.ICrawlerPushedResultReceiver
RESULT_CANCEL, RESULT_ERROR_DELETE, RESULT_ERROR_EXCLUDE, RESULT_ERROR_RETRY, RESULT_IGNORED, RESULT_OK
 
Method Summary
 int onCrawlChanged(IResource resource)
          Deprecated. Inform the receiver about a changed resource.
 int onCrawlDeleted(RID resourceID)
          Deprecated. Inform the receiver about a deleted resource.
 int onCrawlNew(IResource resource)
          Deprecated. Inform the receiver about a newly found resource.
 int onCrawlUnvisited(IResource resource)
          Deprecated. Inform the receiver about a unvisited resource (a resource that has been crawled before, but has not been referenced by other resources beginning at the given start resources and is still accessable).
 int onCrawlUnvisitedChanged(IResource resource)
          Deprecated. Inform the receiver about a unvisited resource (a resource that has been crawled before, but has not been referenced by other resources beginning at the given start resources and is still accessable and has changed).
 int onCrawlUnvisitedDeleted(RID resourceID)
          Deprecated. Inform the receiver about a unvisited resource (a resource that has been crawled before, but has not been referenced by other resources beginning at the given start resources and is already deleted).
 
Methods inherited from interface com.sapportals.wcm.service.crawler.ICrawlerPushedResultReceiver
onCrawlDown, onCrawlNext, onCrawlUp
 
Methods inherited from interface com.sapportals.wcm.service.crawler.ICrawlerResultReceiver
getCrawlerContext, getCrawlerName, onCrawlException, onCrawlStart, onCrawlStop
 

Method Detail

onCrawlNew

public int onCrawlNew(IResource resource)
               throws WcmException
Deprecated. 
Inform the receiver about a newly found resource. This method is called between the calls to getCrawlerContext() and onCrawlStop().

Returns:
a boolean true if the crawler should continue with the delta crawling, false if crawling should be stopped.
Throws:
WcmException

onCrawlChanged

public int onCrawlChanged(IResource resource)
                   throws WcmException
Deprecated. 
Inform the receiver about a changed resource. This method is called between the calls to getCrawlerContext() and onCrawlStop().

Returns:
a boolean true if the crawler should continue with the delta crawling, false if crawling should be stopped.
Throws:
WcmException

onCrawlDeleted

public int onCrawlDeleted(RID resourceID)
                   throws WcmException
Deprecated. 
Inform the receiver about a deleted resource. This method is called between the calls to getCrawlerContext() and onCrawlStop() and after calls to onCrawlNew() and onCrawlChanged().

Returns:
a boolean true if the crawler should continue with the delta crawling, false if crawling should be stopped.
Throws:
WcmException

onCrawlUnvisited

public int onCrawlUnvisited(IResource resource)
                     throws WcmException
Deprecated. 
Inform the receiver about a unvisited resource (a resource that has been crawled before, but has not been referenced by other resources beginning at the given start resources and is still accessable). This method is called between the calls to getCrawlerContext() and onCrawlStop() and after calls to onCrawlNew() and onCrawlChanged().

Returns:
a boolean true if the crawler should continue with the delta crawling, false if crawling should be stopped.
Throws:
WcmException

onCrawlUnvisitedChanged

public int onCrawlUnvisitedChanged(IResource resource)
                            throws WcmException
Deprecated. 
Inform the receiver about a unvisited resource (a resource that has been crawled before, but has not been referenced by other resources beginning at the given start resources and is still accessable and has changed). This method is called between the calls to getCrawlerContext() and onCrawlStop() and after calls to onCrawlNew() and onCrawlChanged().

Returns:
a boolean true if the crawler should continue with the delta crawling, false if crawling should be stopped.
Throws:
WcmException

onCrawlUnvisitedDeleted

public int onCrawlUnvisitedDeleted(RID resourceID)
                            throws WcmException
Deprecated. 
Inform the receiver about a unvisited resource (a resource that has been crawled before, but has not been referenced by other resources beginning at the given start resources and is already deleted). This method is called between the calls to getCrawlerContext() and onCrawlStop() and after calls to onCrawlNew() and onCrawlChanged().

Returns:
a boolean true if the crawler should continue with the delta crawling, false if crawling should be stopped.
Throws:
WcmException


Copyright 2006 SAP AG Complete Copyright Notice