reference/gearman/gearmanworker/addserver.xml
3c0b61c45a5dabe46865510311e57b77ea3dddb7
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="gearmanworker.addserver" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>GearmanWorker::addServer</refname>
...
...
@@ -9,10 +8,11 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<methodsynopsis role="GearmanWorker">
13
12
<modifier>public</modifier> <type>bool</type><methodname>GearmanWorker::addServer</methodname>
14
-
<methodparam choice="opt"><type>string</type><parameter>host</parameter><initializer>127.0.0.1</initializer></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>4730</initializer></methodparam>
13
+
<methodparam choice="opt"><type>string</type><parameter>host</parameter><initializer>&null;</initializer></methodparam>
14
+
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>0</initializer></methodparam>
15
+
<methodparam choice="opt"><type>bool</type><parameter>setupExceptionHandler</parameter><initializer>&true;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
Adds a job server to this worker. This goes into a list of servers than can be used to run jobs.
...
...
@@ -79,7 +79,6 @@ $worker->addServer("10.0.0.2", 7003);
79
79
</refsect1>
80
80

81
81
</refentry>
82
-

83
82
<!-- Keep this comment at the end of the file
84
83
Local variables:
85
84
mode: sgml
86
85