Class: RbEAI::GetTask
Instance Attribute Summary
Attributes inherited from IOTask
#files, #location, #pattern, #rate
Attributes inherited from Task
#name, #nextTask, #size, #status, #wflow
Instance Method Summary collapse
- #doJob(resultQueue, obj) ⇒ Object
-
#initialize(wflow, xmlFull, xmlDoc) ⇒ GetTask
constructor
A new instance of GetTask.
Methods inherited from Task
#getItemsNext, #persist, #persistFtp, #persistStr
Constructor Details
Instance Method Details
#doJob(resultQueue, obj) ⇒ Object
240 241 242 243 244 245 246 |
# File 'lib/rbeai/TasksLogic.rb', line 240 def doJob(resultQueue, obj) files = @logic.getFiles() files.each do |file| resultQueue.enq("#{file}") sleep(@rate.to_i) end end |