|
|
@@ -54,17 +54,17 @@
|
|
|
</para>
|
|
|
|
|
|
<sect3 id="zend.queue.adapters.configuration.Apachemq">
|
|
|
- <title>ApacheMQ - <classname>Zend_Queue_Adapter_Apachemq</classname></title>
|
|
|
+ <title>ApacheMQ - Zend_Queue_Adapter_Apachemq</title>
|
|
|
|
|
|
<para>
|
|
|
- Options here listed here are known requirements. Not all
|
|
|
+ Options here listed here are known requirements. Not all
|
|
|
messaging servers require username or password.
|
|
|
</para>
|
|
|
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['name'] = '/temp/queue1';</code>
|
|
|
+ <emphasis>$options['name'] = '/temp/queue1';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
@@ -75,11 +75,11 @@
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['host'] = 'host.domain.tld';</code>
|
|
|
+ <emphasis>$options['driverOptions']['host'] = 'host.domain.tld';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['host'] = '127.0.0.1';</code>
|
|
|
+ <emphasis>$options['driverOptions']['host'] = '127.0.0.1';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
@@ -93,7 +93,7 @@
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['port'] = 61613;</code>
|
|
|
+ <emphasis>$options['driverOptions']['port'] = 61613;</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>Default setting for port is 61613.</para>
|
|
|
@@ -101,57 +101,58 @@
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['username'] = 'username';</code>
|
|
|
+ <emphasis>$options['driverOptions']['username'] = 'username';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- Optional for some messaging servers. Read the manual
|
|
|
+ Optional for some messaging servers. Read the manual
|
|
|
for your messaging server.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['password'] = 'password';</code>
|
|
|
+ <emphasis>$options['driverOptions']['password'] = 'password';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- Optional for some messaging servers. Read the manual
|
|
|
+ Optional for some messaging servers. Read the manual
|
|
|
for your messaging server.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['timeout_sec'] = 2;</code>
|
|
|
+ <emphasis>$options['driverOptions']['timeout_sec'] = 2;</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['timeout_usec'] = 0;</code>
|
|
|
+ <emphasis>$options['driverOptions']['timeout_usec'] = 0;</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- This is the amount of time that Zend_Queue_Adapter_Activemq
|
|
|
- will wait for read activity on a socket before returning
|
|
|
- no messages.
|
|
|
+ This is the amount of time that
|
|
|
+ <classname>Zend_Queue_Adapter_Activemq</classname> will wait for
|
|
|
+ read activity on a socket before returning no messages.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
</itemizedlist>
|
|
|
</sect3>
|
|
|
|
|
|
<sect3 id="zend.queue.adapters.configuration.Db">
|
|
|
- <title>Db - <code>Zend_Queue_Adapter_Db</code></title>
|
|
|
+ <title>Db - Zend_Queue_Adapter_Db</title>
|
|
|
|
|
|
<para>
|
|
|
Driver options are checked for a few required options such
|
|
|
- as <code>type</code>, <code>host</code>, <code>username</code>,
|
|
|
- <code>password</code>, and <code>dbname</code>. You may pass along
|
|
|
+ as <emphasis>type</emphasis>, <emphasis>host</emphasis>,
|
|
|
+ <emphasis>username</emphasis>, <emphasis>password</emphasis>,
|
|
|
+ and <emphasis>dbname</emphasis>. You may pass along
|
|
|
additional parameters for <methodname>Zend_DB::factory()</methodname> as parameters
|
|
|
- in <code>$options['driverOptions']</code>. An example of an additional
|
|
|
- option not listed here, but could be passed would be <code>port</code>.
|
|
|
+ in <varname>$options['driverOptions']</varname>. An example of an additional
|
|
|
+ option not listed here, but could be passed would be <emphasis>port</emphasis>.
|
|
|
</para>
|
|
|
|
|
|
- <programlisting role="php"><![CDATA[
|
|
|
+ <programlisting language="php"><![CDATA[
|
|
|
$options = array(
|
|
|
'driverOptions' => array(
|
|
|
'host' => 'db1.domain.tld',
|
|
|
@@ -175,7 +176,7 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['name'] = 'queue1';</code>
|
|
|
+ <emphasis>$options['name'] = 'queue1';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
@@ -185,25 +186,25 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['type'] = 'Pdo';</code>
|
|
|
+ <emphasis>$options['driverOptions']['type'] = 'Pdo';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- <code>type</code> is the adapter you wish to have
|
|
|
- <methodname>Zend_Db::factory</methodname> use. This is
|
|
|
+ <emphasis>type</emphasis> is the adapter you wish to have
|
|
|
+ <methodname>Zend_Db::factory()</methodname> use. This is
|
|
|
the first parameter for the
|
|
|
- <methodname>Zend::Db::factory()</methodname> class
|
|
|
+ <methodname>Zend_Db::factory()</methodname> class
|
|
|
method call.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['host'] = 'host.domain.tld';</code>
|
|
|
+ <emphasis>$options['driverOptions']['host'] = 'host.domain.tld';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['host'] = '127.0.0.1';</code>
|
|
|
+ <emphasis>$options['driverOptions']['host'] = '127.0.0.1';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>You may set host to an IP address or a hostname.</para>
|
|
|
@@ -213,19 +214,19 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['username'] = 'username';</code>
|
|
|
+ <emphasis>$options['driverOptions']['username'] = 'username';</emphasis>
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['password'] = 'password';</code>
|
|
|
+ <emphasis>$options['driverOptions']['password'] = 'password';</emphasis>
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['dbname'] = 'dbname';</code>
|
|
|
+ <emphasis>$options['driverOptions']['dbname'] = 'dbname';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
@@ -237,12 +238,12 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
</sect3>
|
|
|
|
|
|
<sect3 id="zend.queue.adapters.configuration.memcacheq">
|
|
|
- <title>MemcacheQ - <classname>Zend_Queue_Adapter_Memcacheq</classname></title>
|
|
|
+ <title>MemcacheQ - Zend_Queue_Adapter_Memcacheq</title>
|
|
|
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['name'] = 'queue1';</code>
|
|
|
+ <emphasis>$options['name'] = 'queue1';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
@@ -252,11 +253,11 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['host'] = 'host.domain.tld';</code>
|
|
|
+ <emphasis>$options['driverOptions']['host'] = 'host.domain.tld';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['host'] = '127.0.0.1;'</code>
|
|
|
+ <emphasis>$options['driverOptions']['host'] = '127.0.0.1;'</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>You may set host to an IP address or a hostname.</para>
|
|
|
@@ -266,7 +267,7 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['driverOptions']['port'] = 22201;</code>
|
|
|
+ <emphasis>$options['driverOptions']['port'] = 22201;</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>The default setting for port is 22201.</para>
|
|
|
@@ -275,12 +276,12 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
</sect3>
|
|
|
|
|
|
<sect3 id="zend.queue.adapters.configuration.array">
|
|
|
- <title>Array - <classname>Zend_Queue_Adapter_Array</classname></title>
|
|
|
+ <title>Array - Zend_Queue_Adapter_Array</title>
|
|
|
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>$options['name'] = 'queue1';</code>
|
|
|
+ <emphasis>$options['name'] = 'queue1';</emphasis>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
@@ -307,40 +308,40 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
|
|
|
<para>
|
|
|
While Apache's ActiveMQ will support multiple subscriptions, the
|
|
|
- <classname>Zend_Queue</classname> does not. You must create a
|
|
|
+ <classname>Zend_Queue</classname> does not. You must create a
|
|
|
new <classname>Zend_Queue</classname> object for each individual
|
|
|
subcription.
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- ActiveMQ queue/topic names must begine with one of:
|
|
|
+ ActiveMQ queue/topic names must begin with one of:
|
|
|
</para>
|
|
|
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>/queue/</code>
|
|
|
+ <filename>/queue/</filename>
|
|
|
</para>
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>/topic/</code>
|
|
|
+ <filename>/topic/</filename>
|
|
|
</para>
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>/temp-queue/</code>
|
|
|
+ <filename>/temp-queue/</filename>
|
|
|
</para>
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>/temp-topic/</code>
|
|
|
+ <filename>/temp-topic/</filename>
|
|
|
</para>
|
|
|
</listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<para>
|
|
|
- For example: <code>/queue/testing</code>
|
|
|
+ For example: <filename>/queue/testing</filename>
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
@@ -350,21 +351,21 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>create()</code> - create queue.
|
|
|
+ <methodname>create()</methodname> - create queue.
|
|
|
Calling this function will throw an exception.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>delete()</code> - delete queue.
|
|
|
+ <methodname>delete()</methodname> - delete queue.
|
|
|
Calling this function will throw an exception.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>getQueues()</code> - list queues.
|
|
|
+ <methodname>getQueues()</methodname> - list queues.
|
|
|
Calling this function will throw an exception.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
@@ -375,8 +376,8 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
<title>Zend_Db</title>
|
|
|
|
|
|
<para>
|
|
|
- The database <code>CREATE TABLE ( ... )</code> SQL statement
|
|
|
- can be found in <filename>Zend/Queue/Adapter/Db/queue.sql</filename>.
|
|
|
+ The database <emphasis>CREATE TABLE ( ... )</emphasis> <acronym>SQL</acronym>
|
|
|
+ statement can be found in <filename>Zend/Queue/Adapter/Db/queue.sql</filename>.
|
|
|
</para>
|
|
|
</sect3>
|
|
|
|
|
|
@@ -384,20 +385,20 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
<title>MemcacheQ</title>
|
|
|
|
|
|
<para>
|
|
|
- Memcache can be downloaded from
|
|
|
- <ulink url="http://www.danga.com/memcached/">http://www.danga.com/memcached/</ulink>.
|
|
|
+ Memcache can be downloaded from <ulink
|
|
|
+ url="http://www.danga.com/memcached/">http://www.danga.com/memcached/</ulink>.
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- MemcacheQ can be downloaded from
|
|
|
- A <ulink url="http://memcachedb.org/memcacheq/">http://memcachedb.org/memcacheq/</ulink>.
|
|
|
+ MemcacheQ can be downloaded from <ulink
|
|
|
+ url="http://memcachedb.org/memcacheq/">http://memcachedb.org/memcacheq/</ulink>.
|
|
|
</para>
|
|
|
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>deleteMessage()</code> - Messages are deleted upon
|
|
|
- reception from the queue. calling this function would
|
|
|
+ <methodname>deleteMessage()</methodname> - Messages are deleted upon
|
|
|
+ reception from the queue. Calling this function would
|
|
|
have no effect. Calling this function will throw an
|
|
|
error.
|
|
|
</para>
|
|
|
@@ -405,9 +406,9 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <code>count() or count($adapter)</code> - MemcacheQ does
|
|
|
- not support a method for counting the number of items in
|
|
|
- a queue. Calling this function will throw an error.
|
|
|
+ <methodname>count()</methodname> or <methodname>count($adapter)</methodname>
|
|
|
+ - MemcacheQ does not support a method for counting the number of items in
|
|
|
+ a queue. Calling this function will throw an error.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
</itemizedlist>
|
|
|
@@ -417,8 +418,8 @@ $queue = Zend_Queue::factory('Db', $options);
|
|
|
<title>Array (local)</title>
|
|
|
|
|
|
<para>
|
|
|
- The Array queue is a PHP <code>array()</code> in local memory.
|
|
|
- The <classname>Zend_Queue_Adapter_Array</classname> is good for
|
|
|
+ The Array queue is a <acronym>PHP</acronym> <methodname>array()</methodname>
|
|
|
+ in local memory. The <classname>Zend_Queue_Adapter_Array</classname> is good for
|
|
|
unit testing.
|
|
|
</para>
|
|
|
</sect3>
|