|
Oracle Secure Enterprise Search Java API Reference 10g Release 1 (10.1.8.2) E10465-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
QueueService is an interface used by a crawler plugin to submit/retrieve URL-related data.
Method Summary | |
int |
enqueue(DocumentMetadata docNode) enqueue a document to the queue. |
int |
enqueue(String displayUrl, String accessUrl, int depth) enqueue a URL to the queue. |
void |
enqueueExistingURLs() put all previously crawled URLs into the queue. |
void |
enqueueExistingURLs(int statusCode) enqueue URLs that have the specified status code |
void |
enqueueNotIndexedURLs() put all previously crawled URLs that are not indexed into the queue. |
DocumentMetadata |
getNextItem() get the next URL from the queue. |
int |
getQueueSize() get the size of the queue |
boolean |
isEnqueued(String displayURL) check whether the given URL is in the queue or not |
boolean |
isQueueEmpty() check whether the queue is empty |
void |
purgeQueue() clean up the queue |
void |
purgeQueue(int statusCode) remove documents from the queue with the specified status code |
void |
removeUrlNotInQueue() remove any previously crawled URL that is not in the queue |
void |
stopQueueService() Stopping the queue service operation; any pending getNextItem request will be replied with null result |
Method Detail |
public int enqueue(DocumentMetadata docNode)
docNode
- the document metadatapublic int enqueue(String displayUrl, String accessUrl, int depth)
displayUrl
- the display URLaccessUrl
- the access URL, can be nulldepth
- depth of the documentpublic void enqueueExistingURLs()
public void enqueueExistingURLs(int statusCode)
statusCode
- the document status codepublic void enqueueNotIndexedURLs()
public boolean isQueueEmpty()
public boolean isEnqueued(String displayURL)
public DocumentMetadata getNextItem()
public int getQueueSize()
public void purgeQueue()
public void purgeQueue(int statusCode)
statusCode
- the document status codepublic void stopQueueService()
public void removeUrlNotInQueue()
|
Oracle Secure Enterprise Search Java API Reference 10g Release 1 (10.1.8.2) E10465-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |