PHP Класс Mmoreram\RSQueueBundle\Collector\RSQueueCollector

All these methods are subscribed to custom RSQueueBundle events
Наследование: extends Symfony\Component\HttpKernel\DataCollector\DataCollector
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) Construct method for initializate all data
collect ( Request $request, Response $response, Exception $exception = null ) Collects data for the given Request and Response.
getName ( ) : string Return collector name
getProducer ( ) : Array Get producer collection
getPublisher ( ) : Array Get publisher collection
getTotal ( ) : integer Get total of queue interactions
onProducerAction ( Mmoreram\RSQueueBundle\Event\RSQueueProducerEvent $event ) : QueueCollector Subscribed to RSQueueProducer event.
onPublisherAction ( Mmoreram\RSQueueBundle\Event\RSQueuePublisherEvent $event ) : QueueCollector Subscribed to RSQueuePublisher event.

Описание методов

__construct() публичный Метод

Also initializes total value to 0
public __construct ( )

collect() публичный Метод

Collects data for the given Request and Response.
public collect ( Request $request, Response $response, Exception $exception = null )
$request Symfony\Component\HttpFoundation\Request A Request instance
$response Symfony\Component\HttpFoundation\Response A Response instance
$exception Exception An Exception instance

getName() публичный Метод

Return collector name
public getName ( ) : string
Результат string Collector name

getProducer() публичный Метод

Get producer collection
public getProducer ( ) : Array
Результат Array

getPublisher() публичный Метод

Get publisher collection
public getPublisher ( ) : Array
Результат Array

getTotal() публичный Метод

Get total of queue interactions
public getTotal ( ) : integer
Результат integer

onProducerAction() публичный Метод

Add to collect data a new producer action
public onProducerAction ( Mmoreram\RSQueueBundle\Event\RSQueueProducerEvent $event ) : QueueCollector
$event Mmoreram\RSQueueBundle\Event\RSQueueProducerEvent Event fired
Результат QueueCollector self Object

onPublisherAction() публичный Метод

Add to collect data a new publisher action
public onPublisherAction ( Mmoreram\RSQueueBundle\Event\RSQueuePublisherEvent $event ) : QueueCollector
$event Mmoreram\RSQueueBundle\Event\RSQueuePublisherEvent Event fired
Результат QueueCollector self Object