Displaying 2 results from an estimated 2 matches for "get_worker_by_class".
2006 Jul 03
6
Req: Workers as singletons
...is
I mean that every call to the new_worker method returns the same
instance of said worker. This can be done transparently either by
adding a new argument to new_worker (something like :singleton =>
true) or adding a new method, like I did in my installation of
BackgrounDrb:
def get_worker_by_class(klass)
klasse = klass.to_s.split(''_'').inject('''') { |total,part| total
<< part.capitalize }
@jobs.each do |e|
@logger.debug e.inspect
if e[1].class.name == klasse
return e[0]
end
end
return...
2008 Jan 29
5
Authoritative Documentation
...mentation.
There''s an API online at backgroundrb.rubyforge.org, but I don''t see
the methods available for MiddleMan, etc.
Right now, I''m trying to figure out how to get a list of all running
workers. Poking through the source code, I see a function entitled
"get_worker_by_class", but there is little to no documentation
available. The documentation does refer to query_all_workers, but I
can''t find it anywhere in the source code.
I understand that cool technologies often race ahead of the
documentation writers. But am I misunderstanding something? Perha...