PHP 클래스 Mmoreram\RSQueueBundle\Collector\RSQueueCollector

All these methods are subscribed to custom RSQueueBundle events
상속: extends Symfony\Component\HttpKernel\DataCollector\DataCollector
파일 보기 프로젝트 열기: mmoreram/rsqueue-bundle

공개 메소드들

메소드 설명
__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