All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class websphinx.CrawlEvent

java.lang.Object
   |
   +----websphinx.CrawlEvent

public class CrawlEvent
extends Object
Crawling event. CrawlEvents are broadcast when the crawler starts, stops, or clears its state.


Variable Index

 o CLEARED
Crawler's state was cleared.
 o PAUSED
Crawler was paused.
 o STARTED
Crawler started.
 o STOPPED
Crawler ran out of links to crawl
 o TIMED_OUT
Crawler timeout expired.

Constructor Index

 o CrawlEvent(Crawler, int)
Make a CrawlEvent.

Method Index

 o getCrawler()
Get crawler that generated the event
 o getID()
Get event id.

Variables

 o STARTED
 public static final int STARTED
Crawler started.

 o STOPPED
 public static final int STOPPED
Crawler ran out of links to crawl

 o CLEARED
 public static final int CLEARED
Crawler's state was cleared.

 o TIMED_OUT
 public static final int TIMED_OUT
Crawler timeout expired.

 o PAUSED
 public static final int PAUSED
Crawler was paused.

Constructors

 o CrawlEvent
 public CrawlEvent(Crawler crawler,
                   int id)
Make a CrawlEvent.

Parameters:
crawler - Crawler that generated this event
id - event id (one of STARTED, STOPPED, etc.)

Methods

 o getCrawler
 public Crawler getCrawler()
Get crawler that generated the event

Returns:
crawler
 o getID
 public int getID()
Get event id.

Returns:
one of STARTED, STOPPED, CLEARED, TIMED_OUT, or PAUSED.

All Packages  Class Hierarchy  This Package  Previous  Next  Index