| Gearman-Driver documentation | view source | Contained in the Gearman-Driver distribution. |
Gearman::Driver::Job - Handles the POE magic
This class is responsible for starting/stopping processes as well as handling all pipes (STDOUT/STDERR/STDIN) of the processes. All events are written to a logfile. Possible events are:
The current interface may only be interesting for people subclassing Gearman::Driver or for people writing commands/extensions for Gearman::Driver::Console.
Reference to the Gearman::Driver instance.
The job's name.
ArrayRef of Gearman::Driver::Job::Method objects.
Maximum number of concurrent processes this job may have.
Minimum number of concurrent processes this job may have.
This attribute stores a key/value pair containing:
$pid => $job
It provides following methods:
count_processes()delete_process($pid)get_process($pid)get_processes()get_pids()set_process($pid = $job)>Instance of Gearman::Driver::Adaptor.
Instance of POE::Session.
Each time this job is called it stores time() in this attribute.
Each time this job failed it stores time() in this attribute.
Each time this job failed it stores the error message in this attribute.
Reference to the worker object.
Starts/forks/adds another process of this job.
Removes/kills one process of this job.
See Gearman::Driver.
See Gearman::Driver.
| Gearman-Driver documentation | view source | Contained in the Gearman-Driver distribution. |