|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface URLQueue
This interface defines the functionaltity needed for the url queue. Different serving strategies can be defined by writing a class which implements this interface
Method Summary | |
---|---|
QueueEntry |
dequeue()
Get the next entry from the queue |
int |
getNumberOfPendingQueueEntries(RobotTask robotTask)
Get the number of entries belonging to the robotTask |
int |
getNumberOfPendingQueueEntries(SimpleUri uri)
The number of queueEntries from different tasks waiting to download this url |
java.util.Vector |
getPendingQueueEntries(RobotTask robotTask)
Get vector with all entries belonging to the robotTask |
java.util.Vector |
getPendingQueueEntries(SimpleUri uri)
The vector with all queueEntries from different tasks waiting to download this url |
QueueEntry |
getPendingURL(SimpleUri uri,
RobotTask robotTask)
Get the entry belonging to robotTask and waiting to download url |
boolean |
isPendingURL(SimpleUri uri,
RobotTask robotTask)
Checks, if there is an entry belonging to robotTask, which is waiting to download url |
void |
queue(QueueEntry qe)
Adds a new entry to the queue |
void |
removeAllQueueEntries(RobotTask robotTask)
Remove all queueEntries belonging to this task |
void |
removeQueueEntry(QueueEntry qe)
Remove the an entrie from the queue |
int |
size()
Get the number of entries waiting in the queue |
Method Detail |
---|
void queue(QueueEntry qe)
qe
- The new entryQueueEntry dequeue()
int size()
int getNumberOfPendingQueueEntries(RobotTask robotTask)
robotTask
- only entries of this task are counted
java.util.Vector getPendingQueueEntries(RobotTask robotTask)
robotTask
- only entries of this task are added to the vector
void removeAllQueueEntries(RobotTask robotTask)
robotTask
- only entries of this task are removedint getNumberOfPendingQueueEntries(SimpleUri uri)
url
- Only queueEntries with this url are counted
java.util.Vector getPendingQueueEntries(SimpleUri uri)
url
- Only queueEntries with this url are added to the vector
boolean isPendingURL(SimpleUri uri, RobotTask robotTask)
url
- The url to checkrobotTask
- Only entries of this task are checked
QueueEntry getPendingURL(SimpleUri uri, RobotTask robotTask)
url
- The url to checkrobotTask
- Only entries of this task are checked
void removeQueueEntry(QueueEntry qe)
qe
- The entry to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |