PHP Class Mmoreram\RSQueueBundle\Collector\RSQueueCollector

All these methods are subscribed to custom RSQueueBundle events
Inheritance: extends Symfony\Component\HttpKernel\DataCollector\DataCollector
Show file Open project: mmoreram/rsqueue-bundle

Public Methods

Method Description
__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.

Method Details

__construct() public method

Also initializes total value to 0
public __construct ( )

collect() public method

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() public method

Return collector name
public getName ( ) : string
return string Collector name

getProducer() public method

Get producer collection
public getProducer ( ) : Array
return Array

getPublisher() public method

Get publisher collection
public getPublisher ( ) : Array
return Array

getTotal() public method

Get total of queue interactions
public getTotal ( ) : integer
return integer

onProducerAction() public method

Add to collect data a new producer action
public onProducerAction ( Mmoreram\RSQueueBundle\Event\RSQueueProducerEvent $event ) : QueueCollector
$event Mmoreram\RSQueueBundle\Event\RSQueueProducerEvent Event fired
return QueueCollector self Object

onPublisherAction() public method

Add to collect data a new publisher action
public onPublisherAction ( Mmoreram\RSQueueBundle\Event\RSQueuePublisherEvent $event ) : QueueCollector
$event Mmoreram\RSQueueBundle\Event\RSQueuePublisherEvent Event fired
return QueueCollector self Object