|
Oracle Secure Enterprise Search Java API Reference 11g Release 2 (11.2.2.2.0) E35072-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueueService
QueueService is an interface used by a crawler plugin to submit or retrieve URL-related data.
Field Summary | |
---|---|
static int |
FIFO to de-queue documents in the same order as en-queued |
static int |
LIFO to de-queue documents in reverse order as en-queued |
static int |
UNORDERED to de-queue documents in no specific order |
Method Summary | |
---|---|
void |
deleteDocument(String displayURL) remove a document from the queue with the specified display URL |
void |
deleteDocument(String displayURL, boolean isMarked) remove a document from the queue with the specified display URL |
int |
enqueue(DocumentMetadata docNode) If the display URL does not exist in the data source, it is created and put into the queue. |
int |
enqueue(String displayUrl, String accessUrl, int depth) If the display URL does not exist in the data source, it is created and put into the queue. |
void |
enqueueExistingURLs() |
void |
enqueueExistingURLs(int statusCode) |
void |
enqueueNotIndexedURLs() |
DocumentMetadata |
getNextItem() |
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() |
void |
purgeQueue() clean up the queue |
void |
purgeQueue(int statusCode) |
void |
removeUrlNotInQueue() |
void |
stopQueueService() |
Field Detail |
---|
static final int UNORDERED
static final int FIFO
static final int LIFO
Method Detail |
---|
int enqueue(DocumentMetadata docNode)
docNode
- the document metadataint enqueue(String displayUrl, String accessUrl, int depth)
displayUrl
- - the display URLaccessUrl
- - the access URL, which can be nulldepth
- - the depth of the documentvoid enqueueExistingURLs()
void enqueueExistingURLs(int statusCode)
statusCode
- the document status codevoid enqueueNotIndexedURLs()
boolean isQueueEmpty()
boolean isEnqueued(String displayURL)
DocumentMetadata getNextItem()
int getQueueSize()
void purgeQueue()
void purgeQueue(int statusCode)
statusCode
- the document status codevoid deleteDocument(String displayURL)
displayURL
- the document display URLvoid deleteDocument(String displayURL, boolean isMarked)
displayURL
- the document display URLisMarked
- the flag indicating whether to mark it in statistic or notvoid stopQueueService()
void removeUrlNotInQueue()
|
Oracle Secure Enterprise Search Java API Reference 11g Release 2 (11.2.2.2.0) E35072-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |