Class: GRI::UScheduler

Inherits:
Scheduler show all
Defined in:
lib/gri/scheduler.rb

Instance Attribute Summary

Attributes inherited from Scheduler

#fake_descr_hash, #queue, #writers

Instance Method Summary collapse

Methods inherited from Scheduler

#finalize, #initialize, #process1

Constructor Details

This class inherits a constructor from GRI::Scheduler

Instance Method Details

#process_queueObject



64
65
66
67
68
69
70
71
# File 'lib/gri/scheduler.rb', line 64

def process_queue
  while @loop.collectors.size < 5
    host, options = queue.shift
    break unless host
    @metrics[:nometrics] = 1 if host =~ /^GRIMETRICS/
    process1 'tra', host, options
  end
end