|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscone.robot.GenericURLQueue
public abstract class GenericURLQueue
Implementation of a generic queue
| Field Summary | |
|---|---|
protected int |
numberOfElements
|
protected java.util.Vector |
queue
|
| Constructor Summary | |
|---|---|
GenericURLQueue()
The constructor |
|
| Method Summary | |
|---|---|
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 of the specified robotTask |
void |
removeQueueEntry(QueueEntry qe)
Remove an entry from the queue |
int |
size()
Get the number of entries waiting in the queue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface scone.robot.URLQueue |
|---|
dequeue |
| Field Detail |
|---|
protected java.util.Vector queue
protected int numberOfElements
| Constructor Detail |
|---|
public GenericURLQueue()
| Method Detail |
|---|
public void queue(QueueEntry qe)
queue in interface URLQueueqe - The new entrypublic int size()
size in interface URLQueuepublic int getNumberOfPendingQueueEntries(RobotTask robotTask)
getNumberOfPendingQueueEntries in interface URLQueuerobotTask - only entries of this task are counted
public java.util.Vector getPendingQueueEntries(RobotTask robotTask)
getPendingQueueEntries in interface URLQueuerobotTask - only entries of this task are added to the vector
public void removeAllQueueEntries(RobotTask robotTask)
removeAllQueueEntries in interface URLQueuerobotTask - removes all queue entries of this taskpublic int getNumberOfPendingQueueEntries(SimpleUri uri)
getNumberOfPendingQueueEntries in interface URLQueueurl - Only queueEntries with this url are counted
public java.util.Vector getPendingQueueEntries(SimpleUri uri)
getPendingQueueEntries in interface URLQueueurl - Only queueEntries with this url are added to the vector
public boolean isPendingURL(SimpleUri uri,
RobotTask robotTask)
isPendingURL in interface URLQueueurl - The url to checkrobotTask - Only entries of this task are checked
public QueueEntry getPendingURL(SimpleUri uri,
RobotTask robotTask)
getPendingURL in interface URLQueueurl - The url to checkrobotTask - Only entries of this task are checked
public void removeQueueEntry(QueueEntry qe)
removeQueueEntry in interface URLQueueqe - The entry to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||