Package com.norconex.crawler.core.event
Class CrawlerEvent
java.lang.Object
java.util.EventObject
com.norconex.commons.lang.event.Event
com.norconex.crawler.core.event.CrawlerEvent
- All Implemented Interfaces:
Serializable
A crawler event.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCrawlerEvent.CrawlerEventBuilder<C extends CrawlerEvent,B extends CrawlerEvent.CrawlerEventBuilder<C, B>> Nested classes/interfaces inherited from class com.norconex.commons.lang.event.Event
Event.EventBuilder<C extends Event,B extends Event.EventBuilder<C, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringFired just before a command starts executing.static final StringFired just after a command finishes executing.static final StringThe crawler is about to begin crawling.static final StringThe crawler completed crawling execution normally (without being stopped).static final Stringstatic final StringFired just before a crawl session is initialized.static final StringFired just after a crawl session has been closed.static final StringIssued when a request to stop the crawler has been sent.static final StringIssued when a request to stop the crawler has been received.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringA document was successfully retrieved for processing.static final StringFired just before document finalization begins.static final StringFired just after document finalization ends.static final StringA document was imported.static final StringA document metadata fields were successfully retrieved.static final StringA document post-import processor was executed properly.static final StringA document pre-import processor was executed properly.static final StringA document was processed (successfully or not).static final StringFired just before document processing begins.static final StringFired just after document processing ends.static final StringA document reference was queued in the data store for processing.static final StringA document was rejected because the status obtained when trying to obtain it was not accepted (e.g., 500 HTTP error code).static final StringA document was rejected since another document with a different reference was already processed with the same digital signature ( checksum).static final StringA document was rejected because an error occurred when processing it.static final StringA document was rejected by a filters.static final StringA document was rejected by the Importer module.static final StringA document was rejected because it could not be found (e.g., no longer exists at a given location).static final StringA document could not be re-crawled because it is not yet ready to be re-crawled.static final StringA document was rejected because it is located too deep.static final StringA document was rejected as it was not modified since last time it was crawled.Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CrawlerEvent.CrawlerEventBuilder<?, ?> builder()protected booleanbooleanThe command class firing aCRAWLER_COMMAND_BEGINorCRAWLER_COMMAND_ENDevent, ornullfor all other events.Gets the document being processed associated with this event.inthashCode()toString()Methods inherited from class com.norconex.commons.lang.event.Event
getException, getMessage, getName, is, isMethods inherited from class java.util.EventObject
getSource
-
Field Details
-
CRAWLER_CRAWL_BEGIN
The crawler is about to begin crawling.- See Also:
-
CRAWLER_CRAWL_END
The crawler completed crawling execution normally (without being stopped). This event is triggered before the crawler resources are released.- See Also:
-
CRAWLER_STOP_REQUEST_BEGIN
Issued when a request to stop the crawler has been sent.- See Also:
-
CRAWLER_STOP_REQUEST_END
Issued when a request to stop the crawler has been received.- See Also:
-
CRAWLER_CLEAN_BEGIN
- See Also:
-
CRAWLER_CLEAN_END
- See Also:
-
CRAWLER_STORE_EXPORT_BEGIN
- See Also:
-
CRAWLER_STORE_EXPORT_END
- See Also:
-
CRAWLER_STORE_IMPORT_BEGIN
- See Also:
-
CRAWLER_STORE_IMPORT_END
- See Also:
-
CRAWLER_ERROR
- See Also:
-
CRAWLER_SESSION_BEGIN
Fired just before a crawl session is initialized. The event source is theCrawlerConfig.- See Also:
-
CRAWLER_SESSION_END
Fired just after a crawl session has been closed. The event source is theCrawlerConfig.- See Also:
-
CRAWLER_COMMAND_BEGIN
Fired just before a command starts executing. ThegetCommandClass()field carries the command type.- See Also:
-
CRAWLER_COMMAND_END
Fired just after a command finishes executing. ThegetCommandClass()field carries the command type.- See Also:
-
REJECTED_FILTER
A document was rejected by a filters.- See Also:
-
REJECTED_UNMODIFIED
A document was rejected as it was not modified since last time it was crawled.- See Also:
-
REJECTED_DUPLICATE
A document was rejected since another document with a different reference was already processed with the same digital signature ( checksum).- See Also:
-
REJECTED_PREMATURE
A document could not be re-crawled because it is not yet ready to be re-crawled.- See Also:
-
REJECTED_NOTFOUND
A document was rejected because it could not be found (e.g., no longer exists at a given location).- See Also:
-
REJECTED_BAD_STATUS
A document was rejected because the status obtained when trying to obtain it was not accepted (e.g., 500 HTTP error code).- See Also:
-
REJECTED_TOO_DEEP
A document was rejected because it is located too deep.- See Also:
-
REJECTED_IMPORT
A document was rejected by the Importer module.- See Also:
-
REJECTED_ERROR
A document was rejected because an error occurred when processing it.- See Also:
-
DOCUMENT_PREIMPORTED
A document pre-import processor was executed properly.- See Also:
-
DOCUMENT_IMPORTED
A document was imported.- See Also:
-
DOCUMENT_POSTIMPORTED
A document post-import processor was executed properly.- See Also:
-
DOCUMENT_METADATA_FETCHED
A document metadata fields were successfully retrieved.- See Also:
-
DOCUMENT_FETCHED
A document was successfully retrieved for processing.- See Also:
-
DOCUMENT_QUEUED
A document reference was queued in the data store for processing.- See Also:
-
DOCUMENT_PROCESSED
A document was processed (successfully or not).- See Also:
-
DOCUMENT_PROCESSING_BEGIN
Fired just before document processing begins. The event source is theDoc.- See Also:
-
DOCUMENT_PROCESSING_END
Fired just after document processing ends. The event source is theDoc.- See Also:
-
DOCUMENT_FINALIZING_BEGIN
Fired just before document finalization begins. The event source is theDoc.- See Also:
-
DOCUMENT_FINALIZING_END
Fired just after document finalization ends. The event source is theDoc.- See Also:
-
-
Constructor Details
-
CrawlerEvent
-
-
Method Details
-
getCrawlSession
-
toString
-
builder
-
getCrawlEntry
Gets the document being processed associated with this event. CRAWLER_* events will return anulldoc. -
getCommandClass
The command class firing aCRAWLER_COMMAND_BEGINorCRAWLER_COMMAND_ENDevent, ornullfor all other events. -
equals
-
canEqual
-
hashCode
public int hashCode()
-