PHP Doku:: The GearmanWorker class - class.gearmanworker.html
Verlauf / Chronik / History:
(1)
anzeigen
ausblenden
The GearmanWorker class
Sie sind hier:
Doku-Startseite
≥
PHP-Handbuch
≥
Funktionsreferenz
≥
Sonstige Dienste
≥
Gearman
≥
The GearmanWorker class
Ein Service von Reinhard Neidl -
Webprogrammierung
.
Gearman
<<
GearmanTask::uuid
GearmanWorker::addFunction
>>
∧
PHP-Handbuch
∧
Funktionsreferenz
∧
Sonstige Dienste
∧
Gearman
The GearmanClient class
The GearmanJob class
The GearmanTask class
The GearmanWorker class
Vordefinierte Konstanten
Beispiele
Installation/Konfiguration
Einführung
UnterSeiten:
∨
GearmanWorker::addFunction
∨
GearmanWorker::addOptions
∨
GearmanWorker::addServer
∨
GearmanWorker::addServers
∨
GearmanWorker::clone
∨
GearmanWorker::__construct
∨
GearmanWorker::echo
∨
GearmanWorker::error
∨
GearmanWorker::getErrno
∨
GearmanWorker::options
∨
GearmanWorker::register
∨
GearmanWorker::removeOptions
∨
GearmanWorker::returnCode
∨
GearmanWorker::setOptions
∨
GearmanWorker::setTimeout
∨
GearmanWorker::timeout
∨
GearmanWorker::unregister
∨
GearmanWorker::unregisterAll
∨
GearmanWorker::wait
∨
GearmanWorker::work
The GearmanWorker class
Einführung
Description of the class.
Klassenbeschreibung
GearmanWorker
{
/* Methoden */
public
bool
addFunction
(
string
$function_name
,
callback
$function
[,
mixed
&$context
[,
int
$timeout
]] )
public
bool
addOptions
(
int
$option
)
public
bool
addServer
([
string
$host
= 127.0.0.1
[,
int
$port
= 4730
]] )
public
bool
addServers
(
string
$servers
= 127.0.0.1:4730
)
public
void
clone
(
void
)
__construct
(
void
)
public
bool
echo
(
string
$workload
)
public
string
error
(
void
)
public
int
getErrno
(
void
)
public
int
options
(
void
)
public
bool
register
(
string
$function_name
[,
int
$timeout
] )
public
bool
removeOptions
(
int
$option
)
public
int
returnCode
(
void
)
public
bool
setOptions
(
int
$option
)
public
bool
setTimeout
(
int
$timeout
)
public
int
timeout
(
void
)
public
bool
unregister
(
string
$function_name
)
public
bool
unregisterAll
(
void
)
public
bool
wait
(
void
)
public
bool
work
(
void
)
}
Inhaltsverzeichnis
GearmanWorker::addFunction
— Register and add callback function
GearmanWorker::addOptions
— Add worker options
GearmanWorker::addServer
— Add a job server
GearmanWorker::addServers
— Add job servers
GearmanWorker::clone
— Create a copy of the worker
GearmanWorker::__construct
— Create a GearmanWorker instance
GearmanWorker::echo
— Test job server response
GearmanWorker::error
— Get the last error encountered
GearmanWorker::getErrno
— Get errno
GearmanWorker::options
— Get worker options
GearmanWorker::register
— Register a function with the job server
GearmanWorker::removeOptions
— Remove worker options
GearmanWorker::returnCode
— Get last Gearman return code
GearmanWorker::setOptions
— Set worker options
GearmanWorker::setTimeout
— Set socket I/O activity timeout
GearmanWorker::timeout
— Get socket I/O activity timeout
GearmanWorker::unregister
— Unregister a function name with the job servers
GearmanWorker::unregisterAll
— Unregister all function names with the job servers
GearmanWorker::wait
— Wait for activity from one of the job servers
GearmanWorker::work
— Wait for and perform jobs
Keine BenutzerBeiträge.
-
Beiträge aktualisieren...