Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 1 (11.1.2.0.0)

E14433-02


oracle.search.sdk.crawler
Interface QueueService


public interface QueueService

QueueService is an interface used by a crawler plugin to submit or retrieve URL-related data.


Method Summary
 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()
           

 

Method Detail

enqueue

int enqueue(DocumentMetadata docNode)
Parameters:
docNode - the document metadata
Returns:
0 if the queueing is successful, or 1 if this document is already in the queue.

enqueue

int enqueue(String displayUrl,
            String accessUrl,
            int depth)
Parameters:
displayUrl - - the display URL
accessUrl - - the access URL, which can be null
depth - - the depth of the document
Returns:
0 if the queueing is successful, or 1 if this document is already in the queue.

enqueueExistingURLs

void enqueueExistingURLs()

enqueueExistingURLs

void enqueueExistingURLs(int statusCode)
Parameters:
statusCode - the document status code

enqueueNotIndexedURLs

void enqueueNotIndexedURLs()

isQueueEmpty

boolean isQueueEmpty()
Returns:
A value of true if the queue is empty, or false if not.

isEnqueued

boolean isEnqueued(String displayURL)
check whether the given URL is in the queue or not
Returns:
true if the URL exist in the queue, false if not

getNextItem

DocumentMetadata getNextItem()

getQueueSize

int getQueueSize()
get the size of the queue
Returns:
the queue size

purgeQueue

void purgeQueue()
clean up the queue

purgeQueue

void purgeQueue(int statusCode)
Parameters:
statusCode - the document status code

stopQueueService

void stopQueueService()

removeUrlNotInQueue

void removeUrlNotInQueue()

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 1 (11.1.2.0.0)

E14433-02


Copyright © 2006, 2010, Oracle and/or its affiliates. All rights reserved.