No cache version.


Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

The GearmanClient class

(PECL gearman >= 0.5.0)

Introduction

Represents a class for connecting to a Gearman job server and making requests to perform some function on provided data. The function performed must be one registered by a Gearman worker and the data passed is opaque to the job server.

PHP: GearmanClient - Manual Home of Manuel PHP  Contents Haut

Class synopsis

GearmanClient {
/* Methods */
public addOptions ( int $options ) : bool
public addServer ([ string $host = 127.0.0.1 [, int $port = 4730 ]] ) : bool
public addServers ([ string $servers = 127.0.0.1:4730 ] ) : bool
public addTask ( string $function_name , string $workload [, mixed &$context [, string $unique ]] ) : GearmanTask
public addTaskBackground ( string $function_name , string $workload [, mixed &$context [, string $unique ]] ) : GearmanTask
public addTaskHigh ( string $function_name , string $workload [, mixed &$context [, string $unique ]] ) : GearmanTask
public addTaskHighBackground ( string $function_name , string $workload [, mixed &$context [, string $unique ]] ) : GearmanTask
public addTaskLow ( string $function_name , string $workload [, mixed &$context [, string $unique ]] ) : GearmanTask
public addTaskLowBackground ( string $function_name , string $workload [, mixed &$context [, string $unique ]] ) : GearmanTask
public addTaskStatus ( string $job_handle [, string &$context ] ) : GearmanTask
public clearCallbacks ( void ) : bool
public clone ( void ) : GearmanClient
public __construct ( void )
public context ( void ) : string
public data ( void ) : string
public do ( string $function_name , string $workload [, string $unique ] ) : string
public doBackground ( string $function_name , string $workload [, string $unique ] ) : string
public doHigh ( string $function_name , string $workload [, string $unique ] ) : string
public doHighBackground ( string $function_name , string $workload [, string $unique ] ) : string
public doJobHandle ( void ) : string
public doLow ( string $function_name , string $workload [, string $unique ] ) : string
public doLowBackground ( string $function_name , string $workload [, string $unique ] ) : string
public doNormal ( string $function_name , string $workload [, string $unique ] ) : string
public doStatus ( void ) : array
public echo ( string $workload ) : bool
public error ( void ) : string
public getErrno ( void ) : int
public jobStatus ( string $job_handle ) : array
public ping ( string $workload ) : bool
public removeOptions ( int $options ) : bool
public returnCode ( void ) : int
public runTasks ( void ) : bool
public setClientCallback ( callable $callback ) : void
public setCompleteCallback ( callable $callback ) : bool
public setContext ( string $context ) : bool
public setCreatedCallback ( string $callback ) : bool
public setData ( string $data ) : bool
public setDataCallback ( callable $callback ) : bool
public setExceptionCallback ( callable $callback ) : bool
public setFailCallback ( callable $callback ) : bool
public setOptions ( int $options ) : bool
public setStatusCallback ( callable $callback ) : bool
public setTimeout ( int $timeout ) : bool
public setWarningCallback ( callable $callback ) : bool
public setWorkloadCallback ( callable $callback ) : bool
public timeout ( void ) : int
}

PHP: GearmanClient - Manual Home of Manuel PHP  Contents Haut

Table of Contents

Find a PHP function

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-class.gearmanclient.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : http://php.net

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut