PHP 클래스 AppserverIo\Appserver\MessageQueue\QueueManager

저자: Tim Wagner ([email protected])
저자: Markus Stockbauer ([email protected])
저자: Bernhard Wick ([email protected])
상속: extends AppserverIo\Appserver\Core\AbstractManager, implements AppserverIo\Psr\Pms\QueueContextInterface
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

공개 메소드들

메소드 설명
createSenderForQueue ( string $lookupName, string $sessionId = null ) : AppserverIo\Messaging\QueueSender Return a new sender for the message queue with the passed lookup name.
getIdentifier ( ) : string Initializes the manager instance.
getManagerSettings ( ) : AppserverIo\Appserver\MessageQueue\QueueManagerSettingsInterface Return's the queue settings.
getQueues ( ) : array Returns the array with queue names and the MessageListener class names as values.
getResourceLocator ( ) : AppserverIo\Psr\Pms\ResourceLocatorInterface Return the resource locator instance.
hasQueue ( AppserverIo\Psr\Pms\QueueInterface $queue ) : boolean Returns TRUE if the application is related with the passed queue instance.
initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Has been automatically invoked by the container after the application instance has been created.
injectManagerSettings ( AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface $managerSettings ) : void Injects the queue settings.
injectMessages ( AppserverIo\Storage\GenericStackable $messages ) : void Injects the storage for the messages.
injectQueues ( AppserverIo\Storage\GenericStackable $queues ) : void Injects the storage for the queues.
injectResourceLocator ( AppserverIo\Psr\Pms\ResourceLocatorInterface $resourceLocator ) : void Injects the resource locator that locates the requested queue.
injectWorkers ( AppserverIo\Storage\GenericStackable $workers ) : void Injects the storage for the workers.
locate ( AppserverIo\Psr\Pms\QueueInterface $queue ) : AppserverIo\Psr\Pms\QueueInterface Tries to locate the queue that handles the request and returns the instance if one can be found.
lookup ( string $lookupName, string $sessionId = null, array $args = [] ) : AppserverIo\Psr\Pms\QueueInterface Runs a lookup for the message queue with the passed lookup name and session ID.
stop ( ) : void Shutdown the session manager instance.
updateMonitor ( AppserverIo\Psr\Pms\MessageInterface $message ) : void Updates the message monitor.

보호된 메소드들

메소드 설명
registeMessageQueue ( AppserverIo\Appserver\Core\Api\Node\MessageQueueNodeInterface $messageQueueNode ) : void Deploys the message queue described by the passed node.
registerMessageQueues ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void Deploys the message queues.

메소드 상세

createSenderForQueue() 공개 메소드

Return a new sender for the message queue with the passed lookup name.
public createSenderForQueue ( string $lookupName, string $sessionId = null ) : AppserverIo\Messaging\QueueSender
$lookupName string The lookup name of the queue to return a sender for
$sessionId string The session-ID to be passed to the queue session
리턴 AppserverIo\Messaging\QueueSender The sender instance

getIdentifier() 공개 메소드

Initializes the manager instance.
또한 보기: AppserverIo\Psr\Application\ManagerInterface::initialize()
public getIdentifier ( ) : string
리턴 string

getManagerSettings() 공개 메소드

Return's the queue settings.
public getManagerSettings ( ) : AppserverIo\Appserver\MessageQueue\QueueManagerSettingsInterface
리턴 AppserverIo\Appserver\MessageQueue\QueueManagerSettingsInterface The queue settings

getQueues() 공개 메소드

Returns the array with queue names and the MessageListener class names as values.
public getQueues ( ) : array
리턴 array The registered queues

getResourceLocator() 공개 메소드

Return the resource locator instance.
public getResourceLocator ( ) : AppserverIo\Psr\Pms\ResourceLocatorInterface
리턴 AppserverIo\Psr\Pms\ResourceLocatorInterface The resource locator instance

hasQueue() 공개 메소드

Returns TRUE if the application is related with the passed queue instance.
public hasQueue ( AppserverIo\Psr\Pms\QueueInterface $queue ) : boolean
$queue AppserverIo\Psr\Pms\QueueInterface The queue the application has to be related to
리턴 boolean TRUE if the application is related, else FALSE

initialize() 공개 메소드

Has been automatically invoked by the container after the application instance has been created.
또한 보기: AppserverIo\Psr\Application\ManagerInterface::initialize()
public initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
리턴 void

injectManagerSettings() 공개 메소드

Injects the queue settings.
public injectManagerSettings ( AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface $managerSettings ) : void
$managerSettings AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface The queue settings
리턴 void

injectMessages() 공개 메소드

Injects the storage for the messages.
public injectMessages ( AppserverIo\Storage\GenericStackable $messages ) : void
$messages AppserverIo\Storage\GenericStackable An storage for the messages
리턴 void

injectQueues() 공개 메소드

Injects the storage for the queues.
public injectQueues ( AppserverIo\Storage\GenericStackable $queues ) : void
$queues AppserverIo\Storage\GenericStackable An storage for the queues
리턴 void

injectResourceLocator() 공개 메소드

Injects the resource locator that locates the requested queue.
public injectResourceLocator ( AppserverIo\Psr\Pms\ResourceLocatorInterface $resourceLocator ) : void
$resourceLocator AppserverIo\Psr\Pms\ResourceLocatorInterface The resource locator
리턴 void

injectWorkers() 공개 메소드

Injects the storage for the workers.
public injectWorkers ( AppserverIo\Storage\GenericStackable $workers ) : void
$workers AppserverIo\Storage\GenericStackable An storage for the workers
리턴 void

locate() 공개 메소드

Tries to locate the queue that handles the request and returns the instance if one can be found.
public locate ( AppserverIo\Psr\Pms\QueueInterface $queue ) : AppserverIo\Psr\Pms\QueueInterface
$queue AppserverIo\Psr\Pms\QueueInterface The queue request
리턴 AppserverIo\Psr\Pms\QueueInterface The requested queue instance

lookup() 공개 메소드

Runs a lookup for the message queue with the passed lookup name and session ID.
public lookup ( string $lookupName, string $sessionId = null, array $args = [] ) : AppserverIo\Psr\Pms\QueueInterface
$lookupName string The queue lookup name
$sessionId string The session ID
$args array The arguments passed to the queue
리턴 AppserverIo\Psr\Pms\QueueInterface The requested queue instance

registeMessageQueue() 보호된 메소드

Deploys the message queue described by the passed node.
protected registeMessageQueue ( AppserverIo\Appserver\Core\Api\Node\MessageQueueNodeInterface $messageQueueNode ) : void
$messageQueueNode AppserverIo\Appserver\Core\Api\Node\MessageQueueNodeInterface The node that describes the message queue
리턴 void

registerMessageQueues() 보호된 메소드

Deploys the message queues.
protected registerMessageQueues ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application instance
리턴 void

stop() 공개 메소드

Shutdown the session manager instance.
public stop ( ) : void
리턴 void \AppserverIo\Psr\Application\ManagerInterface::stop()

updateMonitor() 공개 메소드

Updates the message monitor.
public updateMonitor ( AppserverIo\Psr\Pms\MessageInterface $message ) : void
$message AppserverIo\Psr\Pms\MessageInterface The message to update the monitor for
리턴 void