++ed by:
VTFRVL PALIK KEEDI BINJOY POTATOGIM

5 PAUSE users
3 non-PAUSE users.

Алексей Пастухов
and 1 contributors

NAME

Gearman::Objects - a parent class for Gearman::Client and Gearman::Worker

METHODS

job_servers([$job_servers])

Initialize the list of job servers. $job_serversshould be an array reference, hash reference or scalar.

return [job_servers]

set_job_servers($js)

set job_servers attribute by canonicalized $js

canonicalize_job_servers($js)

$js a string, hash reference or array reference of aforementioned.

Hash reference should contain at least host key.

All keys: host, port (4730 on default), use_ssl, ca_file, cert_file, key_file, socket_cb

return [canonicalized list]

func($func)

return join $prefix_separator, $prefix, $func

prefix([$prefix])

getter/setter

prefix_separator([$separator])

getter/setter

default: "\t"

If gearmand uses memcached persistent queue type override default separator to insure jobs recovery

socket($js, [$timeout])

depends on use_ssl prepare IO::Socket::IP or IO::Socket::SSL

  • $host_port peer address

  • $timeout default: 1

return depends on use_ssl IO::Socket::(IP|SSL) on success

sock_nodelay($sock)

set TCP_NODELAY on $sock, die on failure