Omeka_Job_Dispatcher_Adapter_ZendQueue

class Omeka_Job_Dispatcher_Adapter_ZendQueue

Package: Job\Dispatcher\Adapter

Dispatcher for Zend_Queue.

This would be particularly useful for installations that want to interfacewith ActiveMQ or Zend Server’s Job Queue via Zend_Queue. Note that usingthe ‘Array’ adapter should only be used for testing, as all jobs passed toit will be thrown away.

Required options include ‘adapter’ and ‘options’, whichcorrespond to the first and second arguments to Zend_Queue’s constructorrespectively.

For example, it would be configured like so in config.ini:

jobs.dispatcher = "Omeka_Job_Dispatcher_ZendQueue"
jobs.adapterOptions.adapter = "PlatformJobQueue"
jobs.adapterOptions.options.host = "127.0.0.1"
jobs.adapterOptions.options.password = "foobar"
property _queue
property _options
setQueueName($name)

Note that some Zend_Queue implementations understand the concept of named queues, while others do not.

Parameters:
  • $name (unknown) –
send($encodedJob, $metadata)
Parameters:
  • $encodedJob (unknown) –
  • $metadata (unknown) –
_queue()
__construct(array|null $options)
Parameters:
  • $options (array|null) – Optional Options to instantiate in the adapter.
_setOptions($options)
Parameters:
  • $options (unknown) –
getOption(string $name)

Retrieve an option by name as it was passed to the constructor of the adapter.

Parameters:
  • $name (string) –
hasOption(string $name)

Whether or not the given option has been set.

Parameters:
  • $name (string) –