| java.lang.Object websphinx.LinkEvent
LinkEvent | public class LinkEvent (Code) | | Link event. A LinkEvent is issued when the crawler
starts or stops retrieving a link, and when it makes
a decision about a link.
|
ALREADY_VISITED | final public static int ALREADY_VISITED(Code) | | Link has already been visited during the crawl, so it was skipped.
|
DOWNLOADED | final public static int DOWNLOADED(Code) | | Link has been retrieved
|
ERROR | final public static int ERROR(Code) | | An error occurred in retrieving the page.
The error can be obtained from getException().
|
NONE | final public static int NONE(Code) | | No event occured on this link yet. Never delivered in a LinkEvent,
but may be returned by link.getStatus().
|
QUEUED | final public static int QUEUED(Code) | | Link was accepted by walk() and is waiting to be downloaded
|
RETRIEVING | final public static int RETRIEVING(Code) | | Link is being retrieved
|
SKIPPED | final public static int SKIPPED(Code) | | Link was rejected by shouldVisit()
|
TOO_DEEP | final public static int TOO_DEEP(Code) | | Link was accepted by walk() but exceeds the maximum depth from the start set.
|
VISITED | final public static int VISITED(Code) | | Link has been thoroughly processed by crawler
|
eventName | final public static String[] eventName(Code) | | Map from id code (RETRIEVING) to name ("retrieving")
|
LinkEvent | public LinkEvent(Crawler crawler, int id, Link link)(Code) | | Make a LinkEvent.
Parameters: crawler - Crawler that generated this event Parameters: id - event code, like LinkEvent.RETRIEVING Parameters: link - Link on which this event occurred |
LinkEvent | public LinkEvent(Crawler crawler, int id, Link link, Throwable exception)(Code) | | Make a LinkEvent for an error.
Parameters: crawler - Crawler that generated this event Parameters: id - Event code, usually ERROR Parameters: link - Link on which this event occurred Parameters: exception - Throwable |
getCrawler | public Crawler getCrawler()(Code) | | Get crawler that generated the event
crawler |
getException | public Throwable getException()(Code) | | Get exception related to this event. Valid when ID == ERROR.
exception object |
getID | public int getID()(Code) | | Get event id
id |
getLink | public Link getLink()(Code) | | Get link to which this event occurred.
link |
getName | public String getName()(Code) | | Get event name (string equivalent to its ID)
id |
toString | public String toString()(Code) | | Convert this event to a String describing it.
|
|
|