POEx::WorkerPool::Role::WorkerPool::Worker::Guts - A role that provides common semantics for Worker guts


POEx-WorkerPool documentation  | view source Contained in the POEx-WorkerPool distribution.

Index


NAME

Top

POEx::WorkerPool::Role::WorkerPool::Worker::Guts - A role that provides common semantics for Worker guts

VERSION

Top

version 1.102740

PUBLIC_METHODS

Top

process_job

 (DoesJob $job) is Event

process_job takes the initialized job and calls ->execute_step on the job. If there is more than one step, another process_job will be queued up via POE with the same job as the argument. Each step along the way returns a JobStatus which is then sent on to send_message which communicates with the parent process

send_message

 (JobStatus $status) is Event

send_messge communicates with the parent process each JobStatus it receives.

PROTECTED_METHODS

Top

after _start

 is Event

_start is advised to buid the communication wheel back to the parent process and also register a signal handler for DIE so we can communicate exceptions back to the parent

init_job

 (DoesJob $job, WheelID $wheel) is Event

init_job is the InputEvent on the ReadWrite wheel that accepts input from the parent process. It attempts to call ->init_job on the job it receives. If that is successful it will then proceed on to send a return message of PXWP_JOB_START and yield to process_job()

die_signal

 (Str $signal, HashRef $stuff) is Event

die_signal is our signal handler if something unexpected happens.

AUTHOR

Top

Nicholas R. Perez <nperez@cpan.org>

COPYRIGHT AND LICENSE

Top


POEx-WorkerPool documentation  | view source Contained in the POEx-WorkerPool distribution.