Job.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Interface for Danga's Gearman job scheduling system

PHP version 5.1.0+

LICENSE: This source file is subject to the New BSD license that is available through the world-wide-web at the following URI: http://www.opensource.org/licenses/bsd-license.php. If you did not receive a copy of the New BSD License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

Author
Joe Stump  
Category
Net  
Copyright
2007-2008 Digg.com, Inc.  
License
New BSD License  
Link
http://pear.php.net/package/Net_Gearman  
Link
http://www.danga.com/gearman/  
Package
ShSo\Net\Gearman  
Version
CVS: $Id$  

Constants

>VConstant  NET_GEARMAN_JOB_CLASS_PREFIX = "ShSo\\Net\\Gearman\\Examples\\"
Package
ShSo\Net\Gearman  

\ShSo\Net\Gearman\Job

abstract
Package: ShSo\Net\Gearman
Job creation class
See
ShSo\Net\Gearman\Worker  
Author
Joe Stump  
Category
Net  
Copyright
2007-2008 Digg.com, Inc.  
License
New BSD License  
Link
http://www.danga.com/gearman/  
Version
Release: @package_version@  

Methods

methodpublicfactory(string $job, object $conn, string $handle, string $initParams = array()) : object
static

Create an instance of a job

The ShSo\Net\Geraman\Worker class creates connections to multiple job servers and then fires off jobs using this function. It hands off the connection which made the request for the job so that the job can communicate its status from there on out.

Parameters
NameTypeDescription
$jobstring

Name of job (func in Gearman terms)

$connobject

Instance of ShSo\Net\Gearman\Connection

$handlestring

Gearman job handle of job

$initParamsstring

initialisation parameters for job

Returns
TypeDescription
objectInstance of ShSo\Net\Gearman\Job\Common child
Throws
ExceptionDescription
\ShSo\Net\Gearman\ShSo\Net\Gearman\Exception
Details
See
 
Documentation was generated by phpDocumentor 2.8.5.