PHP Class Mmoreram\RSQueueBundle\Collector\RSQueueCollector

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

Méthodes publiques

Méthode 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 méthode

Also initializes total value to 0
public __construct ( )

collect() public méthode

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 méthode

Return collector name
public getName ( ) : string
Résultat string Collector name

getProducer() public méthode

Get producer collection
public getProducer ( ) : Array
Résultat Array

getPublisher() public méthode

Get publisher collection
public getPublisher ( ) : Array
Résultat Array

getTotal() public méthode

Get total of queue interactions
public getTotal ( ) : integer
Résultat integer

onProducerAction() public méthode

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

onPublisherAction() public méthode

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