ARLO Adapt
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
arlo.QueueTask Class Reference
Inheritance diagram for arlo.QueueTask:
Inheritance graph
[legend]

Public Member Functions

boolean runQueue (Vector< NesterUser > restrictedUsers)
 

Protected Member Functions

boolean _runQueue (String taskName, Vector< NesterUser > restrictedUsers)
 Get and execute a job from the queue. More...
 

Static Protected Member Functions

static NesterJob getTaskFromQueue (String jobTypeString, Integer user_id)
 Try to get a job from the queue. More...
 

Member Function Documentation

boolean arlo.QueueTask._runQueue ( String  taskName,
Vector< NesterUser restrictedUsers 
)
protected

Get and execute a job from the queue.

Originally, we executed the whole queue for this task before returning. However, now we execute one at a time to jump back to the beginning of the queue and look for higher priority tasks.

Parameters
taskNameThe job name stored in tools_jobtypes. This limits the search to only one job type at a time.
restrictedUsersIf null, search for jobs from any user; else, search from only specified users. NOTE: Not currently implemented.
Returns
true if a job was found and executed, false otherwise.
static NesterJob arlo.QueueTask.getTaskFromQueue ( String  jobTypeString,
Integer  user_id 
)
staticprotected

Try to get a job from the queue.

Parameters
jobTypeStringThe job name stored in tools_jobtypes. This limits the search to only one job type at a time.
user_idIf null, search for jobs from any user; else, search from only specified user.
Returns
null if no task found. If a job is found and secured, return aNesterJob object
boolean arlo.QueueTask.runQueue ( Vector< NesterUser restrictedUsers)

The documentation for this class was generated from the following file: