Spread::Queue::ManagedWorker - utility class for Spread::Queue::Manager
Tracks each worker that is registered with the queue manager. Retains worker state.
Eventually add activity metrics (# messages assigned, uptime, utilization, etc.).
Worker controls this by sending a 'ready' message to the queue manager.
Set by manager, after a message is transmitted to a ready worker.
When a 'working' message is received from an assigned worker.
'terminated' message has been received from worker, or an expected status update has not been received so queue manager marks the worker as dead.
If an assigned worker is terminated, then the task that was assigned to that worker will be re-assigned to another worker.
Jason W. May <email@example.com>
Copyright (C) 2002 Jason W. May. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The license for the Spread software can be found at http://www.spread.org/license