Dispatcher

Methods Summary
public
# __construct( Omeka\Job\DispatchStrategy\StrategyInterface $dispatchStrategy , Doctrine\ORM\EntityManager $entityManager , Zend\Log\Logger $logger , Zend\Authentication\AuthenticationService $auth )
Set the dispatch strategy.
public
public
# dispatch( string $class , mixed $args = NULL, Omeka\Job\DispatchStrategy\StrategyInterface $strategy = NULL )
Dispatch a job. Composes a Job entity and uses the configured strategy if no strategy is passed.
public
# send( Omeka\Entity\Job $job , Omeka\Job\DispatchStrategy\StrategyInterface $strategy )
Send a job via a strategy.
public
# stop( int $jobId )
Set a job to be stopped. This does nothing but change the job status to STATUS_STOPPING. It's up to individual job implementations to stop performing by listening to the status change, usually from within an iteration.
Properties Summary
protected Omeka\Job\DispatchStrategy\StrategyInterface $dispatchStrategy
# NULL
protected Doctrine\ORM\EntityManager $entityManager
# NULL
protected Zend\Log\Logger $logger
# NULL
protected Zend\Authentication\AuthenticationService $auth
# NULL