ProducerConsumer send query

For an overview of the ProducerConsumer please see: ProducerConsumer: overview.

Overview

The function of the send query method in the ProducerConsumer is to send a query from a consumer to a producer and consists of the following operations:
  • Find a slot within a free overlay to use for querying an event on the specified link
  • Map the consumer's element and link number to the producer's element and link number
  • Send the query message to the producer

Processing sequence

The sending of a query by the ProducerConsumer task is depicted in the following sequence diagram:

mtf-core-prodcons-sendquery.png

The send query consists of the following steps:
  • Call QuerySent() on the ProducerConsumerElement to attempt to allocate an overlay and return the slot index if successful
  • Convert the specified link number from absolute to relative
  • Call MapConsumerToProducer() to use the IConnectionMapping class for the active connection to map the consumer element and link number to the producer element and link number
  • Create the QueryMsg message object containing the producer element and link numbers
  • Call TaskManager.QueueMessage() to send the query message to the producer
  • Return true if a slot was allocated and message sent, otherwise false

Last edited Sep 29, 2012 at 10:08 AM by jaorme, version 7

Comments

No comments yet.