The GearmanClient classはじめに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. クラス概要
GearmanClient
/* メソッド */
public __construct()
public bool addOptions(int
$option )public bool addServer(string
$host = null , int $port = 0, bool $setupExceptionHandler = true )public bool addServers(string
$servers = null , bool $setupExceptionHandler = true )public GearmanTaskfalse addTask(
string $function_name ,stringintfloat $workload ,mixed $context = null ,stringnull $unique_key = null ) public GearmanTaskfalse addTaskBackground(
string $function_name ,stringintfloat $workload ,mixed $context = null ,stringnull $unique_key = null ) public GearmanTaskfalse addTaskHigh(
string $function_name ,stringintfloat $workload ,mixed $context = null ,stringnull $unique_key = null ) public GearmanTaskfalse addTaskHighBackground(
string $function_name ,stringintfloat $workload ,mixed $context = null ,stringnull $unique_key = null ) public GearmanTaskfalse addTaskLow(
string $function_name ,stringintfloat $workload ,mixed $context = null ,stringnull $unique_key = null ) public GearmanTaskfalse addTaskLowBackground(
string $function_name ,stringintfloat $workload ,mixed $context = null ,stringnull $unique_key = null ) public GearmanTaskfalse addTaskStatus(string
$job_handle , mixed $context = null )public bool clearCallbacks()
public string context()
public string doBackground(string
$function , string $workload , stringnull $unique = null )public string doHigh(string
$function , string $workload , stringnull $unique = null )public string doHighBackground(string
$function , string $workload , stringnull $unique = null )public string doJobHandle()
public string doLow(string
$function , string $workload , stringnull $unique = null )public string doLowBackground(string
$function , string $workload , stringnull $unique = null )public string doNormal(string
$function , string $workload , stringnull $unique = null )public array doStatus()
public stringfalse error()
public int getErrno()
public array jobStatus(string
$job_handle )public bool ping(string
$workload )public bool removeOptions(int
$option )public int returnCode()
public bool runTasks()
public bool setCompleteCallback(callable
$callback )public bool setContext(string
$data )public bool setCreatedCallback(callable
$callback )public bool setDataCallback(callable
$callback )public bool setExceptionCallback(callable
$callback )public bool setFailCallback(callable
$callback )public bool setOptions(int
$option )public bool setStatusCallback(callable
$callback )public bool setTimeout(int
$timeout )public bool setWarningCallback(callable
$callback )public bool setWorkloadCallback(callable
$callback )public int timeout()
public bool wait()
|