|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.remoteclient.taskplanning.retrieving.RetrieveQueue
public class RetrieveQueue
| Constructor Summary | |
|---|---|
RetrieveQueue(java.lang.String hName)
|
|
| Method Summary | |
|---|---|
ITaskPlanner |
getTaskPlanner()
Returns the task planner currently defined by this queue. |
java.util.Vector |
getTasks()
Returns the set of tasks in a Vector (thread-safe). |
protected URLRetrieveTask |
getURLPreviousRequest(URLRequest request)
|
boolean |
isEmpty()
Returns true if the Queue has no (more) jobs to do. |
void |
pause()
Causes the execution of this queue to be paused. |
IRunnableTask |
put(IRunnableTask task)
Adds a new task to the queue. |
void |
resume()
Causes the execution of this queue to be resumed. |
void |
setTaskPlanner(ITaskPlanner planner)
Sets the TaskPlanner that will decide which of the tasks in the queue will be executed next. |
IRunnableTask |
take()
Returns the next task by calling the task planner's nextTask() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RetrieveQueue(java.lang.String hName)
| Method Detail |
|---|
public IRunnableTask put(IRunnableTask task)
IQueue
put in interface IQueuepublic IRunnableTask take()
IQueue
take in interface IQueuepublic boolean isEmpty()
IQueue
isEmpty in interface IQueuepublic ITaskPlanner getTaskPlanner()
IQueue
getTaskPlanner in interface IQueuepublic void setTaskPlanner(ITaskPlanner planner)
IQueue
setTaskPlanner in interface IQueuepublic void pause()
IQueue
pause in interface IQueuepublic void resume()
IQueue
resume in interface IQueuepublic java.util.Vector getTasks()
IQueue
getTasks in interface IQueueprotected URLRetrieveTask getURLPreviousRequest(URLRequest request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||