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.
-
CLEARED
- Crawler's state was cleared.
-
PAUSED
- Crawler was paused.
-
STARTED
- Crawler started.
-
STOPPED
- Crawler ran out of links to crawl
-
TIMED_OUT
- Crawler timeout expired.
-
CrawlEvent(Crawler, int)
- Make a CrawlEvent.
-
getCrawler()
- Get crawler that generated the event
-
getID()
- Get event id.
STARTED
public static final int STARTED
- Crawler started.
STOPPED
public static final int STOPPED
- Crawler ran out of links to crawl
CLEARED
public static final int CLEARED
- Crawler's state was cleared.
TIMED_OUT
public static final int TIMED_OUT
- Crawler timeout expired.
PAUSED
public static final int PAUSED
- Crawler was paused.
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.)
getCrawler
public Crawler getCrawler()
- Get crawler that generated the event
- Returns:
- crawler
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