PHP
The GearmanClient class
The GearmanClient class
(No version information available, might only be in Git)
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.
Class synopsis
GearmanClient {
public bool addServer ([
string $host
= 127.0.0.1 [,
int $port
= 4730 ]] )
public bool addServers ([
string $servers
= 127.0.0.1:4730 ] )
public GearmanTask addTask (
string $function_name
,
string $workload
[,
mixed &$context
[,
string $unique
]] )
public GearmanTask addTaskBackground (
string $function_name
,
string $workload
[,
mixed &$context
[,
string $unique
]] )
public GearmanTask addTaskHigh (
string $function_name
,
string $workload
[,
mixed &$context
[,
string $unique
]] )
public GearmanTask addTaskLow (
string $function_name
,
string $workload
[,
mixed &$context
[,
string $unique
]] )
public GearmanTask addTaskStatus (
string $job_handle
[,
string &$context
] )
public GearmanClient clone (
void )
public string data (
void )
public string do (
string $function_name
,
string $workload
[,
string $unique
] )
public string doBackground (
string $function_name
,
string $workload
[,
string $unique
] )
public string doHigh (
string $function_name
,
string $workload
[,
string $unique
] )
public string doHighBackground (
string $function_name
,
string $workload
[,
string $unique
] )
public string doLow (
string $function_name
,
string $workload
[,
string $unique
] )
public string doLowBackground (
string $function_name
,
string $workload
[,
string $unique
] )
public string doNormal (
string $function_name
,
string $workload
[,
string $unique
] )
public bool echo (
string $workload
)
public string error (
void )
public array jobStatus (
string $job_handle
)
public bool ping (
string $workload
)
public bool setData (
string $data
)
}
Table of Contents
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 375 / 158798896. Delta: 0.04349 с