update internal queue system to use arbitrary jobs
commitbc0f247091f009e4f116564ae7a96dde7eab8314
authordormando <dormando@f67b2e87-0811-0410-a7e0-dd94e48410d6>
Sun, 11 Jan 2009 23:41:16 +0000 (11 23:41 +0000)
committerdormando <dormando@f67b2e87-0811-0410-a7e0-dd94e48410d6>
Sun, 11 Jan 2009 23:41:16 +0000 (11 23:41 +0000)
tree5f3000398ee38c6d3768565040de806f3111a237
parentb01b3aaf381c9d9dc05fa0b81bac860ac3a7ea7c
update internal queue system to use arbitrary jobs

more like gearman's can(), a worker can state it's bored for different types
of work, and it will then get such different types of work.

also updated JobMaster so it sends a single command to fetch queue depths,
which should simplify and speed things up a bit.

git-svn-id: http://code.sixapart.com/svn/mogilefs/trunk@1268 f67b2e87-0811-0410-a7e0-dd94e48410d6
lib/MogileFS/Connection/Worker.pm
lib/MogileFS/ProcManager.pm
lib/MogileFS/Worker.pm
lib/MogileFS/Worker/Fsck.pm
lib/MogileFS/Worker/JobMaster.pm
lib/MogileFS/Worker/Replicate.pm